Quick Setup Guide To Run CakePHP 2.0 On Windows 7

In this tutorial, I will show you, how to set and run the CakePHP 2.0 framework on Windows 7. For those who have not heard of CakePHP before, it is an open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License. CakePHP is licensed under the MIT license which makes it perfect for use in commercial applications and comes with built-in tools for input validation, CSRF protection, Form tampering protection, SQL injection prevention, and XSS prevention, helping you keep your application safe & secure.

You can get more information on cakephp official site cakephp.org

Below proceeding you must know about cakephp system requirements:

HTTP Server. (Recommended Xampp Or Wamp)
For example: Apache. mod_rewrite is preferred, but by no means required.
PHP 5.2.8 or greater.
Technically a database engine isn’t required, but we imagine that most applications will utilize one. CakePHP supports a variety of database storage engines:

MySQL (4 or greater)
PostgreSQL
Microsoft SQL Server
SQLite

Downloading CakePHP

To download the latest major release of CakePHP. Visit the main website http://www.cakephp.org and follow the “Download Now” link.

All current releases of CakePHP are hosted on Github. Github houses both CakePHP itself as well as many other plugins for CakePHP. The CakePHP releases are available at Github downloads.

Now below are the steps you need to follow :

1-Once the download completed, extract the files and copy the files into the web server www root. You should place the folder as the same name. The folder’s name can be changed as you wished and doesn’t required to be named as cake in order to run it. Do not start the server yet , there are some configuration needed to be done on the Apache core files before running the CakePHP framework.

2- You must enable rewrite module on the apache. If it is already enabled then no need to take this step. Here is the steps how you can enable rewrite module :

Find the code below in the httpd.conf file and uncomment it. This is to enable the rewrite module on the apache. By default it is turned off in some web servers. If it is already uncommented you can continue to the next step.

Locate this code and remove the ‘#’ which is located in front of the line.
#LoadModule rewrite_module modules/mod_rewrite.so
The modified code should look like this. Save and close the file, upon completing the modification
LoadModule rewrite_module modules/mod_rewrite.so

3-Now, start your server and visit the location of the folder via your preferred Internet Browser. Eg. http://localhost/cake/.

That’s all!!

Leave a Comment

Your email address will not be published. Required fields are marked *