You are on page 1of 2

Bo mt php c bn

Sau lot tut ci t apache th cc bn c th ci t cho mnh mt


vps kh hon chnh. Trong bi ny mnh s hng dn cc bn cu hnh
file php.ini tng cng bo mt tt hn.
M file /etc/php.ini
- Tm
expose_php = On
Sa thnh
expose_php =Of
- Tm
allow_url_fopen = On
Sa thnh
allow_url_fopen = Of
- Tm
safe_mode = Of
Sa thnh
safe_mode = On
- Tm
disable_function =
Tin hnh dis cc func sau
pcntl_exec,system,exec,passthru,popen,proc_close,
proc_open,proc_get_status,proc_nice,
show_source,proc_terminate,highlight_file,escapeshellcmd,define_syslo
g_variables,posix_getpwuid,apache_child_terminate,posix_kill,posix_mk
fifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,posix_unam
e,ftp_exec,ftp_connect,ftp_login,ftp_get,ftp_put,ftp_nb_fput,ftp_raw,ftp_
rawlist,ini_alter,ini_restore,syslog,openlog,define_syslog_variables,apac
he_setenv,mysql_pconnect,eval,fputs,shell_exec,curl_exec,curl_multi_e
xec,dl,fsockopen,parse_ini_file,symlink,mail
v d:
disable_function = pcntl_exec,system,exec,passthru,popen,proc_close,
proc_open,proc_get_status,proc_nice,

show_source,proc_terminate,highlight_file,escapeshellcmd,define_syslo
g_variables,posix_getpwuid,apache_child_terminate,posix_kill,posix_mk
fifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,posix_unam
e,ftp_exec,ftp_connect,ftp_login,ftp_get,ftp_put,ftp_nb_fput,ftp_raw,ftp_
rawlist,ini_alter,ini_restore,syslog,openlog,define_syslog_variables,apac
he_setenv,mysql_pconnect,eval,fputs,shell_exec,curl_exec,curl_multi_e
xec,dl,fsockopen,parse_ini_file,symlink,mail
p/s: Cc bn c th ty chnh cc func sao cho khng b li khi
chy site
Ngun: http://quylevhb.blogspot.com/2015/01/bao-mat-php-coban.html#ixzz3VfXtjEOA

You might also like