我刚刚在Ubuntu上安装了XAMPP,在我的网站页面上遇到了这个错误……
Warning: require_once(core/init.php): failed to open stream: Permission denied in
/opt/lampp/htdocs/lr/start.php on line 44
Fatal error: require_once(): Failed opening required 'core/init.php' (include_path='.:/opt
/lampp/lib/php') in /opt/lampp/htdocs/lr/start.php on line 44然后,我运行了几行代码,用下面的代码更改了/opt/lampp/htdocs和php.ini文件的权限
sudo chmod 777 filename问题是我仍然收到来自php的错误。所以我的问题是,我遗漏了哪些文件应该是可执行的,以便我可以运行我的代码。
发布于 2012-09-01 07:36:27
我将检查以下各项,以确定require_once()返回致命错误的原因:
https://stackoverflow.com/questions/12223556
复制相似问题