How to Install CakePHP on CentOS
Introduction
CakePHP is an open source web framework which follows Model-View-Controller approach. It is written in PHP and distributed under the MIT license. It was started by a Polish programmer Michal Tatarynowicz in April, 2005. Its first version was released in May, 2006. In this tutorial, we will install CakePHP on CentOS.
Prerequisites
- CentOS 7
- Login as an administrator on the terminal
- PHP version 5.6 or higher
- PHP mbstring extension
- PHP intl extension
- Composer
Installation
Installation includes following steps.
1. Install CakePHP using composer
Execute the following command to install CakePHP on CentOS.
2. Edit httpd.conf file
Open httpd.conf file which is the main configuration file for Apache configuration with VI editor and replace the following code
With the following code
Start the Apache server by using following command.
3. Start the CakePHP Server
Run the binary executable file cake located inside /var/www/html/tutoraspire/bin.
4. Access CakePHP on browser
We just need to type localhost:8765 in the browser’s search bar to access CakePHP on browser.
Hence, we have installed and get started with CakePHP.