cheng029 发表于 2012-8-30 11:30:02

PHP Warning: exec() has been disabled for security reasons in /home/wwwroot/...

安装cacti的时候
执行命令/usr/local/php/bin/php -q /home/wwwroot/cactinew/poller.php--force
报错PHP Warning:exec() has been disabled for security reasons in /home/wwwroot/cactinew/lib/poller.php on line 126
这时候只需要修改/usr/local/php/etc/pnp.ini文件中的disable_functions = 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

把exec删除就好了

不正狼 发表于 2013-3-13 17:45:20

沙发!沙发!

asfsd 发表于 2013-5-15 23:07:32

路边的野花不要,踩。

西湖鱼 发表于 2013-5-16 15:00:04

鸳鸳相抱何时了,鸯在一边看热闹。

fateame 发表于 2013-5-17 13:32:09

有事秘书干,没事干秘书!

q528 发表于 2013-5-18 04:18:03

饭在锅里,我在床上*^_^*

chunjihong 发表于 2013-5-18 16:50:03

如果跟导师讲不清楚,那么就把他搞胡涂吧!
页: [1]
查看完整版本: PHP Warning: exec() has been disabled for security reasons in /home/wwwroot/...