Thursday, October 9, 2025
HomeLanguagesCakePHP Framework | Installation and Configuration

CakePHP Framework | Installation and Configuration

CakePHP is an open-source framework for PHP based on a Model–View–Controller (MVC)-like architecture and modeled after the concepts of Ruby on Rails, which is powerful as well as easy to learn. It’s a foundational structure for programmers to create web applications. Models, Views, and Controllers are used for the separation of business logic from data and presentation layers.

Prerequisites:

  1. PHP installation on windows
  2. Environment Setup To Run the Project
  3. Composer Software to install CakePHP

Installation:

  1. Go to your directory where XAMPP is installed and open htdocs folder. (In my case it is C:\xampp\htdocs).
  2. Open command prompt and navigate to current working directory as your current directory.
  3. Enter the command.
    mkdir project_name && cd project_name

    This command will create a project folder with project_name and set the present working directory to it.

  4. Now enter the command.
    composer create-project --prefer-dist cakephp/app:4.* app_name

    (Here 4.* refers to version number)
    This will install the CakePHP framework in the current directory.
    install-cakephp3

    install-cakephp2

    install-cakephp1

  5. Open xampp control panel and run the apache server.
  6. Now open a web browser and go to url -> http://localhost:80/project_name/app_name/
    As you can see our first app is running on the server successfully.
    installed-CakePHP
    You have successfully installed CakePHP and have created your first app with that.
RELATED ARTICLES

Most Popular

Dominic
32346 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6715 POSTS0 COMMENTS
Nicole Veronica
11877 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11940 POSTS0 COMMENTS
Shaida Kate Naidoo
6835 POSTS0 COMMENTS
Ted Musemwa
7094 POSTS0 COMMENTS
Thapelo Manthata
6789 POSTS0 COMMENTS
Umr Jansen
6791 POSTS0 COMMENTS