How to install CakePHP in Windows 10.

Windows Articles

OpenSUSE 15.2 available

Well, another one has come into the family. A new version of OpenSUSE has recently been released. The community distribution under the...

How to install and configure Vagrant in Windows 10

Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates...

Ubuntu Rolling Release? It is possible with Rolling Rhino

Throughout the Linux community, there are always expectations about when Ubuntu decides to have a Rolling Release. This, at least, since the...

How to recover files deleted with Windows File Recovery

Hello! Deleting files by accident is one of the biggest fears of users. Indeed, unintentionally deleting documents, music or photos can be...

How to install Vivaldi Web Browser on Ubuntu 20.04 / 19.10?

This is a short post in which I will show you how to install Vivaldi Web Browser on Ubuntu 20.04 / 19.10...

CakePHP is a free and open-source web application development framework written in PHP. Additionally, it is built on the concepts of Ruby on rails. In other words, it is a base content that developers use to design web pages of all kinds. Like Ruby On Rails, CakePHP makes it easier for the user to interact with the database through the use of ActiveRecord. It also makes use of the Model View Controller pattern. The main objective of this framework is to work in a structured way, fast and without loss of flexibility. Being one of the most robust frameworks, let’s see how to install CakePHP in Windows 10.

Prerequisites

In order to install this framework, it is imperative to have the following installed:

  • An HTTP server. It can be Nginx, Microsoft IIS or Apache. Here in osradar.com we show you how to install Apache in Windows 10.
  • PHP 5.6.0 or greater. If you want to know how to install PHP 7.40, please read our tutorial.
  • A database storage engines. For more information about database managers, check out our post about MySQL in Windows 10.
  • Composer. If you want to know how to install it, please check our post.

Enabling the necessary extensions in PHP

Not only is it necessary to have PHP installed, it is also indispensable to have the following extensions enabled:

  • Mbstring PHP extension
  • Intl PHP extension

Depending on the installation path, PHP extensions are located in this folder C:\php\ext.

Location of the extensions in PHP
Location of the extensions in PHP

However, the fact that the extensions are present in the ext folder only means that you don’t have to download or compile them. To enable them, you need to edit the PHP.ini file. With this intention go to the following path: C:\php. Once there, select the file and open it with your favorite text editor.

Select the PHP.ini file
Select the PHP.ini file

Once the file is open, you only have to scroll to the list of extensions. Additionally, you can notice that the file contains all the extensions that are in the program folder. Furthermore, the extensions that are currently enabled, have a ; before the name. Therefore, in order to enable any extension, just delete the ; in the line. With this in mind, select mbstring and intl to delete the ; and enable them. Then save the file to set the changes.

Enabling PHP extensions
Enabling PHP extensions

Installing a new CakePHP project.

To install and create a new CakePHP project, please open a Command Prompt from the following path: C:\Apache24\htdocs. Next, execute the following command:

 composer create-project --prefer-dist cakephp/app my_app_name 

Please remember to replace my_app_name with the name you assigned to the project.

Conclusion

Ultimately we’ve seen how to install CakePHP on Windows 10. Its modular design allows designers and developers to work together, as well as quickly prototype. That’s it for now. See you soon!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

OpenSUSE 15.2 available

Well, another one has come into the family. A new version of OpenSUSE has recently been released. The community distribution under the...

How to install and configure Vagrant in Windows 10

Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates...

Ubuntu Rolling Release? It is possible with Rolling Rhino

Throughout the Linux community, there are always expectations about when Ubuntu decides to have a Rolling Release. This, at least, since the...

How to recover files deleted with Windows File Recovery

Hello! Deleting files by accident is one of the biggest fears of users. Indeed, unintentionally deleting documents, music or photos can be...

How to install Vivaldi Web Browser on Ubuntu 20.04 / 19.10?

This is a short post in which I will show you how to install Vivaldi Web Browser on Ubuntu 20.04 / 19.10...