The Centos Linux 6.4 setup based on requirements:
httpd 2.2.15-28x
php-5.3.3-27x
php-pdo-5.3.3-27x
mysql-5.169x
Step 1: Extract Cakephp
Download the code from https://github.com/cakephp/cakephp/tagsor from Linux console with proper permission (e.g. use sudo if you are not root user)
wget https://github.com/cakephp/cakephp/archive/2.5.6.zip
cd /var/www/html
unzip cakephp-2.5.6.zip
chown -R apache cakephp-2.5.6
ls cakephp-2.5.6
This gives us the folders;
Cakephp2 folders |
Cakephp2 folders for app |
Step 2: Test installation
Ensure the web server is running, and open a web browser to that installation. E.g. http://localhost/cakephp-2.5.6/It should appear with a page similar as below;
Step 3: Post installation
Follow instructions given at the test page to rectify any errors/recommendations. E.g.- Change value of Security.salt in core.php file
- Change value of Security.cipherSeed in core.php file
- Configure to use a database in database.php
- Install the DebugKit
Its made easy to migrate from CakePHP 1.3 to 2.5. Good read on upgrading of 1.3 to 2 (in no particular order)
1 comment:
Debian is a much better option than CentOS for CakePHP. Package management on Debian is way better than on CentOS. Debian also get updates regularly. They immediately patched the DirtyCow bug recently. Also, installing CakePHP on debian is easier if you use a PaaS. Here is an example: https://www.cloudways.com/blog/install-cakephp-on-cloud/
Post a Comment