您现在的位置是:首页 > 网站优化 > 服务器知识 > 服务器知识
linux 开启 禁用 system exec 服务的方法
爱牛网络2019-11-13 10:22【服务器知识】人已围观
简介 禁用方法如下: 打开php.ini文件, 查找到 disable_functions ,添加需禁用的函数名,如下: phpinfo,eval,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter, ini_alter,ini_r
禁用方法如下:
打开php.ini文件,
查找到 disable_functions ,添加需禁用的函数名,如下:
phpinfo,eval,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,
ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen
开启方法如下:
打开php.ini文件,
查找到 disable_functions ,添加需禁用的函数名,如下: phpinfo,eval,passthru,chroot,scandir,chgrp,chown,shell_exec,proc_open,
proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,
fsocket,fsockopen
删除exec,system,保存,重新启动PHP服务。