Get in touch
or send us a question?
CONTACT

How to install CakePHP 3.x on AWS Centos

Require PHP version 5.6.0 or higher.

Step 1: install Composer
$curl -s https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Step 2:
$ cd /var/www/html/
$ mkdir cake3
$ cd cake3
$ composer create-project –prefer-dist cakephp/app ./
$ composer install

Step 3: Change permission for tmp directory
$ chmod -Rf 777 tmp

Step 4: Create config file
$ cd config
$ cp app.default.php app.php

Step 5: Apache config
$ vi /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
DocumentRoot “/var/www/html/cake3/webroot”
<Directory /var/www/html/cake3/webroot>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</ VirtualHost>

Step 6: Restart apache
$ service httpd restart

Step 7: Running test from browser
http://127.0.0.1