[英]How to deploy CakePHP-application on CentOS?
I almost managed to deploy a CakePHP-application on CentOS-server, but it still needs little configuration. 我几乎设法在CentOS服务器上部署了CakePHP应用程序,但是它仍然需要很少的配置。 I have enabled mod_rewrite in /etc/httpd/conf/httpd.conf and restarted apache-server.
我在/etc/httpd/conf/httpd.conf中启用了mod_rewrite并重新启动了apache-server。
Then I have put Cake core library in /home/user/cakephp-core/ 然后我将Cake核心库放在/ home / user / cakephp-core /
I get message "500 internal error" when i try to go to this page through web-browser. 当我尝试通过网络浏览器转到此页面时,收到消息“ 500内部错误”。
In apache-logs I found following messages: 在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
it says something about "permission denied"... to whom I should give permissions and where? 它说了一些有关“拒绝权限”的信息……我应该授予谁权限,在哪里? I gave "apache:apache" to tmp/-folder... Any ideas?
我将“ apache:apache”给了tmp / -folder ...有什么想法吗?
Simply read the log and try to understand it. 只需阅读日志并尝试理解它。
It pretty clearly tells you what has insufficient permissions. 它很清楚地告诉您什么权限不足。 The linux command to set permissions is chmod .
设置权限的linux命令是chmod 。 You also want to make sure, as the text already tells you, that your CakePHP core include path is correct.
正如文本已经告诉您的那样,您还想确保CakePHP核心包含路径正确。 Double check that too.
也要仔细检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.