PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : کمک در ویرایش فایل php.ini



premier
August 8th, 2011, 13:32
سلام دوستان
من با دستور nano وارد فایل php.ini شدم و مشخصاتی را اضافه کردم ولی انگار این تنظیمات اضافه نشده !
کسی است که نحوه ویرایش کردن فایل php.ini را دقیق بده ؟

من میخواهم تنظیمات زیر در اون اضافه بشه


allow_call_time_pass_reference = Off (It need to be in On)
disable_functions = exec,passthru,shell_exec, etc (It need to be in no value)
display_errors = Off (It need to be in On)
max_execution_time = 30 (It need to be in 0)
open_basedir = /home/httpd/delkhun.ir/httpdocs (It need to be in no value)
session.gc_maxlifetime = 1440 (It need to be in 14000)

REXNET
August 8th, 2011, 17:29
پس از تغییر در این فایل می بایست وب سرور Apache رو Restart کنید:


service httpd restart

premier
August 9th, 2011, 03:22
دوستان من فایلم را اینگونه ویرایش کردم آیا درست ویرایش کردم؟



; allow_call_time_pass_reference
allow_call_time_pass_reference = On
; disable_functions
disable_functions = no
; display_errors
display_errors = On
; max_execution_time
max_execution_time = 0
; open_basedir
open_basedir = no
; session.gc_maxlifetime
session.gc_maxlifetime = 14000

lahijsoft
August 9th, 2011, 09:53
باید مقادیر قبلی رو ویرایش کنید نه اینکه اضافه کنید بهش!

premier
August 10th, 2011, 03:29
پس از تغییر در این فایل می بایست وب سرور Apache رو Restart کنید:


service httpd restart

عزیز این دستور را میدم stop میکنه ولی رفرش نمیکنه
دستور دیگه نداره؟

REXNET
August 10th, 2011, 03:37
شاید بصورت مخفی انجام میده... ارور که نداد؟!

این هم بزنی انجام میده:


service httpd reload

premier
August 11th, 2011, 03:32
برای disable کردن این مقدار باید چی زد؟


disable_functions exec,passthru,shell_exec,system,proc_open,popen,cu rl_exec,curl_multi_exec,parse_ini_file,show_source

REXNET
August 11th, 2011, 03:43
باید این خط رو کامنت کنید، اولش یک # اضافه کنید. توجه کنید که همش باید توی یک خط قرار گرفته باشه.

premier
August 11th, 2011, 13:44
یعنی اینطوری


disable_functions= #exec,passthru,shell_exec,system,proc_open,popen,c url_exec,curl_multi_exec,parse_ini_file,show_sourc e

REXNET
August 11th, 2011, 14:18
یعنی اینطوری


disable_functions= #exec,passthru,shell_exec,system,proc_open,popen,c url_exec,curl_multi_exec,parse_ini_file,show_sourc e

نه، بدین شکل:


#disable_functions= exec,passthru,shell_exec,system,proc_open,popen,cu rl_exec,curl_multi_exec,parse_ini_file,show_source