Home » How to Install CakePHP in Ubuntu

How to Install CakePHP in Ubuntu

by Online Tutorials Library

How to Install CakePHP on Ubuntu 16.04 LTS?


CakePHP is a PHP based open-source web framework. It is used to create dynamic, high-peformance web applications.

It is cross-platform and first released on 2005.

In this tutorial, we will install CakePHP on Ubuntu operating system. It requires following prerequisite.


  • LAMP Stack
  • PHP 5.6.0 or greater
  • mbstring PHP extension
  • intl PHP extension
  • simplexml PHP extension
  • composer

CakePHP Installation

1) Use the following command to install CakePhp using composer.

Software CakePHP 1

It will create an application tutoraspire inside /var/www/html/ directory, because this is our current directory location.

2) Configure Apache Server

Open server config file using this command.

locate to this code inside the config file.

Replace it with the following.

3) Enable rewrite mode.

Enter this command to the terminal, it will enable rewrite mode for apache server.

4) Restart server

5) Run Application

Open browser and type localhost/tutoraspire, and it will show the following output to the browser.

Software CakePHP 2

Well, we have installed and setup CakePHP successfully. Now, build application according to the requirement.

You may also like