Setting up cakephp 2.0 on bluehost

时光怂恿深爱的人放手 提交于 2019-12-11 04:49:57

问题


Hi I just thought I would share this here I am new to cakephp and I had just finished my site locally And wanted to push it to my production server @ bluehost

After I pushed it I was receiving a 500 error After 2 day of "no dice" I got it to work here is what I did:

1) cut and paste the contents of the webroot folder to the root folder then I opened the new index.php file and changed the following:

if (!defined('ROOT')) {
    define('ROOT', dirname(dirname(dirname(__FILE__))).DS.'public_html'.DS.'my-site');
}

and

if (!defined('APP_DIR')) {
    define('APP_DIR',DS.'app');
}

Done! Hope this helps


回答1:


I believe what you're referring to specified in the CakePHP book under Advanced Installation.



来源:https://stackoverflow.com/questions/10543350/setting-up-cakephp-2-0-on-bluehost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!