Welcome to FindNerd. We are going to discuss the installation process of CakePHP 3.x. You can simply download the CakePHP setup from github or you can download using composer. You need a web server and CakePHP setup to start the installation. Here we are using Apache server and CakePHP also supports other web-servers like Microsoft IIS, nginx, LightHTTPD etc.
A) Web Server
B) PHP (5.5.9 or greater)
C) intl extension
D) mbstring extension
There are different database engines which are used by CakePHP. Here is the list.
A) MySQL (5.1.10 or greater)
B) PostgreSQL
C) Microsoft SQL Server (2008 or higher)
D) SQLite 3
If you want to install the CakePHP using Composer then it should be installed. You can easily install composer by using below command. It needs curl to be install on your server.
curl -s https://getcomposer.org/installer | php
You can simply create a folder and download the cakePHP in it using below command
php composer.phar create-project --prefer-dist /var/www/html/cakephp_set
If you want to update the cakePHP setup then you can simply run below command.
php composer.phar update
To update the setup there should be a file named composer.json which includes the requirements like version info in json format.
"require": {
"/var/www/html/cakephp_set": "~3.2"
}
Folder and files permissions should be well recommended. Two folder and its sub folders should be writable by server user only. These two folder are logs and tmp. tmp folder manages the cache, model description,session operations etc. logs manages the error logs.
URL rewriting is most important part to work with desired url methods. We use mod_rewrite in Apache server. It should be enable in webs server. .htaccess override should be allowed. In our blog we will discuss the configuation of CakePHP setup.
0 Comment(s)