0
我幾乎設法在CentOS服務器上部署CakePHP應用程序,但它仍然需要很少的配置。我在/etc/httpd/conf/httpd.conf中啓用了mod_rewrite並重新啓動了apache-server。如何在CentOS上部署CakePHP應用程序?
然後,我已經把蛋糕核心庫在/ home /用戶/ CakePHP的核心/
我得到的消息「500內部錯誤」當我嘗試通過Web瀏覽器來訪問這個頁面。
在Apache的日誌,我發現了以下消息:
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
它說什麼「權限被拒絕」 ......我向他們應該給的權限在哪裏?我給tmp/-folder「apache:apache」...有什麼想法?