Linux+Apache+MySQL+PHP5的安装配置
浏览器访问:http://10.1.4.44 8、php配置 个人习惯,修改配置文件首先要备份。 [root@server ~]# cp /etc/php.ini /etc/php.inibak #备份 [root@server ~]# vim /etc/php.ini #编辑 小提示: :set nu #显示行号 :set nonu #取消行号 pgUp #上一页 pgDn #下一页 946 ;date.timezone = PRC #在946行 把前面的分号去掉,改为date.timezone = PRC 386 disable_functions = #在386行 添加disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname列出PHP可以禁用的函数,如果某些程序需要用到这个函数,可以删除,取消禁用。 432 expose_php = On #在432行 修改为:expose_php = Off禁止显示php版本的信息 745 magic_quotes_gpc = Off #在745行 修改为:magic_quotes_gpc = On打开magic_quotes_gpc来防止SQL注入 229 short_open_tag = Off #在229行 修改为short_open_tag = On,支持php短标签 (编辑:应用网_丽江站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |