[英]Cakephp with Rackspace cloud database
I'm thinking about moving one of my clients mysql db to Rackspace could databases. 我正在考虑将我的一个客户端mysql db移至Rackspace可能的数据库。 Application is using Cakephp.. I would like to know if someone has experience doing so or will this work just by editing host/user/pass in the database.php file? 应用程序正在使用Cakephp ..我想知道是否有人有这样做的经验,还是仅通过编辑database.php文件中的host / user / pass就能完成这项工作?
I havn't done so but Rackspace has a tutorial about doing so : 我还没有这样做,但是Rackspace有一个关于这样做的教程:
http://www.rackspace.com/knowledge_center/article/installing-cakephp-on-cloud-sites http://www.rackspace.com/knowledge_center/article/installing-cakephp-on-cloud-sites
It seems pretty simple, so you should not have any problems 看起来很简单,所以您应该没有任何问题
Steps for cake 蛋糕的步骤
- Locate the .htaccess file in the content directory. 在内容目录中找到.htaccess文件。 After "RewriteEngine on", add a new line with "RewriteBase /" to the .htaccess file and save the file back to the site. 在“ RewriteEngine on”之后,将带有“ RewriteBase /”的新行添加到.htaccess文件中,然后将文件保存回站点。 You will need to repeat this step for the rewrite rules in the .htaccess files in the app and app/webroot directories. 您将需要对app和app / webroot目录中的.htaccess文件中的重写规则重复此步骤。
- Load the site in your browser. 在浏览器中加载网站。 You will notice several warnings concerning the installation. 您会注意到有关安装的几个警告。 The first warning will be the following: Notice (1024): Please change the value of Security.salt in app/config/core.php to a salt value specific to your application [CORE/cake/libs/debugger.php, line 556]. 第一个警告如下:通知(1024):请将app / config / core.php中的Security.salt值更改为特定于您的应用程序的盐值[CORE / cake / libs / debugger.php,第556行]。
- Open app/config/core.php file and search for Security.salt. 打开app / config / core.php文件并搜索Security.salt。 Change its value to whatever characters or string you would like, then save and close the file. 将其值更改为所需的任何字符或字符串,然后保存并关闭文件。
- In the app/config/directory in FTP, rename the database.php.default file to be database.php. 在FTP的app / config /目录中,将database.php.default文件重命名为database.php。
- Open app/config/database.php and scroll down to the bottom of the page to find the database connection information. 打开app / config / database.php并向下滚动到页面底部以查找数据库连接信息。 Enter your database host name, user name, password and hostname, then save and close the file. 输入数据库主机名,用户名,密码和主机名,然后保存并关闭文件。
- Reload your site in your browser. 在浏览器中重新加载您的网站。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.