在bluehost上设置cakephp 2.0 [英] Setting up cakephp 2.0 on bluehost

查看:119
本文介绍了在bluehost上设置cakephp 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我只是想在这里分享这里
我是新的cakephp和我刚刚完成我的网站本地
并希望推送到我的生产服务器@ bluehost

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

在我推送它之后,我收到一个500错误
在没有骰子的2天后,我得到它的工作
这里是我做了:

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)将webroot文件夹的内容剪切并粘贴到根文件夹
,然后打开新的index.php文件并更改以下内容:

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');
}

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

完成!
希望这有帮助

Done! Hope this helps

推荐答案

我相信你在CakePHP书中指定的高级安装

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

这篇关于在bluehost上设置cakephp 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆