繁体   English   中英

如何在CentOS上部署CakePHP应用程序?

[英]How to deploy CakePHP-application on CentOS?

我几乎设法在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 ...有什么想法吗?

只需阅读日志并尝试理解它。

它很清楚地告诉您什么权限不足。 设置权限的linux命令是chmod 正如文本已经告诉您的那样,您还想确保CakePHP核心包含路径正确。 也要仔细检查。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM