php报错Permission denied的解决一法

发布时间:2019-09-23编辑:脚本学堂
php中报错Permission denied,查看apache的错误日志error_log。#cd /usr/local/apache2/logs/ (13)Permission denied: exec of '....index.php' failed

php中报错Permission denied,查看apache的错误日志error_log。
#cd /usr/local/apache2/logs/
(13)Permission denied: exec of '....index.php' failed

加上可执行权限即可:
#chmod +x index.php