Home > Backend Development > PHP Tutorial > CakePHP Installation

CakePHP Installation

WBOY
Release: 2024-09-10 17:24:47
Original
1164 people have browsed it

In this chapter, we will show the installation of CakePHP 4.0.3. The minimum PHP version that we need to install is PHP 7.3.

You need to have PHP 7.3 and Composer to be installed before starting the installation of cakePHP.

For Windows users, install or update WAMP server with PHP version > 7.3.

Go to www.wampserver.com/en/download-wampserver-64bits/ and install it.

For Linux users, kindly refer Tutorials Point website which is available at www.tutorialspoint.com/php7/php7_installation_linux.htm for installation of PHP .

Installing Composer

Go to composer at https://getcomposer.org/download/ and click on download as per the operating system (OS) of your computer and install composer on your system. Add the location to PATH variable for windows users, so that you can use composer from any directory.

Once you are done installing composer, let us now start to install CakePHP.

Installing CakePHP

Go to the folder where wamp is located for windows users and in www/ folder, create a folder cakephp4/.

For Linux users, create the folder var/www/html/ and then create folder cakephp4/.

  • cakephp4/ is the folder where we are going to install CakePHP.

Use composer to execute the following command −

composer create-project --prefer-dist cakephp/app:4.0.3 cakephp4
Copy after login

This is what you should see, when the command executes −

Command Executes

Once the installation is complete, use localhost to open your project in browser.

The Path for the same is http://localhost/cakephp.

Cakephp Page

The above is the detailed content of CakePHP Installation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template