Đầu tiên login dô root account
các bạn mở file "php.ini" trong pico editor
Mã:
[ pico /usr/local/lib/php.ini ]
tìm "safe_mode"
Mã:
[ Ctrl + W and type "safe_mode" ]
đổi Off thành On
Mã:
[ "safe_mode = Off" to "safe_mode = On" ]
tìm "disabled_functions"
Mã:
[ Ctrl + W and type "disabled_functions" ]
và add theo functions
Mã:
[system, exec, shell_exec, passthru, pcntl_exec, putenv, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, popen, pclose, set_time_limit, ini_alter, virtual, openlog, escapeshellcmd, escapeshellarg, dl, curl_exec, parse_ini_file, show_source]
sau đó save lại
retart lại Apache web server
Mã:
[ /etc/init.d/httpd restart ]
done. bây h hết sợ hack local rồi nhá

)
chú ý nên backup php.ini trước khi bắt đầu.
Sưu tầm.