今天又重新部署了下easyhadoop,结果apache后台服务器报这个错误:
[Fri Dec 13 10:32:41 2013] [notice] SIGHUP received. Attempting to restart
[Fri Dec 13 10:32:41 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Dec 13 10:32:41 2013] [notice] Digest: done
[Fri Dec 13 10:32:41 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Fri Dec 13 10:33:00 2013] [error] [client 192.168.137.119] PHP Warning: require_once(/var/www/html/system/core/CodeIgniter.php): failed to open stream: Permission denied in /var/www/html/index.php on line 202
[Fri Dec 13 10:33:00 2013] [error] [client 192.168.137.119] PHP Fatal error: require_once(): Failed opening required '/var/www/html/system/core/CodeIgniter.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/index.php on line 202
结果搞了很久,哎,其实就是权限问题,我就不明白了,我都是一模一样的安装,系统都是一样的,居然安装后的权限不一样。仔细查看下,还居然真是权限不一样,晕。参考这里 http://stackoverflow.com/questions/5326531/php-warning-unknown-failed-to-open-stream
直接运行:
chmod -R 755 /var/www
即可,默认是root用户;
分享,成长,快乐
转载请注明blog地址:http://blog.csdn.net/fansy1990