我几乎设法在 CentOS 服务器上部署了一个 CakePHP 应用程序,但它仍然需要很少的配置。我在 /etc/httpd/conf/httpd.conf 中启用了 mod_rewrite 并重新启动了 apache-server。
然后我把 Cake 核心库放在 /home/user/cakephp-core/
当我尝试通过网络浏览器访问此页面时,我收到消息“500 内部错误”。
在 apache-logs 中,我发现了以下消息:
PHP Warning: include(/$HOME/cakephp-core/lib/Cake/bootstrap.php): failed to open stream: Permission denied in /srv/www/site/public_html/main/index.php on line 96
PHP Warning: include(): Failed opening '/$HOME/cakephp-core/lib/Cake/bootstrap.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /srv/www/site/public_html/main/index.php on line 96
PHP Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /srv/www/site/public_html/main/index.php on line 101
它说的是“权限被拒绝”......我应该给谁权限以及在哪里?我把“apache:apache”给了 tmp/-folder……有什么想法吗?