良玉的博客 点点滴滴,积水成河_良玉的博客_页游、手游linux运维工程师之路

PHP Warning: exec() has been disabled for security reasons in

PHP Warning:  exec() has been disabled for security reasons in /home/cacti/lib/poller.php on line 126
PHP Warning:  popen() has been disabled for security reasons in /home/cacti/lib/rrd.php on line 52
原因:在php.ini中存在 disable_functions配置,默认配置中,cli执行函数都是被 禁止的,如果需要的话,需要在php.ini中将 disable_functions = exec , popen, system …. ,将你需要执行的函数从列表中删掉在重启web服务即可 。


阅读全文...

MYSQL的WARNINGS 和 ERRORS查询细节

1、SHOW ERRORS 语句只是显示上一个语句的错误,不同时显示警告以及注意事项。
举个例子:

mysql> show dfdafsadf
    -> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'dfdaf
sadf' at line 1

阅读全文...