刚安装完wordpress主题,报这个错误。
错误如下:

Warning: exec() has been disabled for security reasons in /var/www/wwwroot/name.php on line 2

中文意思:
警告: /var/www/wwwroot/name.php 第二行 的exec() 函数已经由于安全原因被禁止。
这是因为在 php.ini 配置文件里面有disable_function 这个选项 后面是禁用的php函数,打开PHP.INI,找到disable_function=phpinfo,passthru,exec,system,popen,escapeshellcmd,escapeshellarg,shell_exec
解决方法:
打开php安装路径 打开php.ini文件
则把disable_function=phpinfo,passthru,exec,system,popen,escapeshellcmd,escapeshellarg,shell_exec
里面的 exec, 删除 并保存 重启php-fcgi
我使用的是lnmp一键安装包,只要/root/lnmp reload即可。
其他参数报错的话,解决办法相同。