Install CakePHP on Cloud Sites
Note: This article is written for our Cloud Sites Control Panel. You can get to it from the Cloud Control Panel by clicking Rackspace Cloud in the upper-left corner and selecting Cloud Sites. You can also navigate directly to https://manage.rackspacecloud.com/.
This article will show you how to install CakePHP 1.2.x onto your site with Cloud Sites.
This article assumes you have already done the following:
- Selected PHP as your default technology
- Set up a MySQL database in the Classic Control Panel
- Uploaded the CakePHP application files to your site in the content directory
For information on how to do this, see the following articles:
- How do I change my site’s default technology?
- How do I add a MySQL database to my site?
- How do I add content to my website?
- Locate the
.htaccessfile in the content directory. After
RewriteEngine on, add a new line with
RewriteBase /” to the
.htaccessfile and save the file back to the site. You will need to repeat this step for the rewrite rules in the
.htaccessfiles in the app and app/webroot directories.
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].
- Open the
app/config/core.phpfile and search for
Security.salt. Change its value to the characters or string you prefer, then save and close the file.
- In the app/config/directory in FTP, rename the
database.php.defaultfile to be
- Open app/config/database.php and scroll down to the bottom of the page to find the database connection information. Enter your database host name, user name, password and hostname, then save and close the file.
- Reload your site in your browser. The CakePHP installation is complete
If you have problems getting CakePHP to work in a subdirectory, read the information in the following article: http://cookingwithcakephp.blogspot.com/2008/04/installing-cakephp-into-subdirectory.html
Continue the conversation in the Rackspace Community.
©2016 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License