How to install and configure CakePHP?
Hello again, those who have not red the first part of this post can visit
What is CakePHP?
In the last post we have seen step by step how to install the prerequisite for the environment required for the CakePHP application development. In this part and in up coming post we will configure the environment and write a simple code to prove that the workplace is ready for the application development.
Starting Up Apache Server
Let’s guys move further, till now we have successfully
installed the XAMPP, now double click the XAMPP icon on desktop or select from
the start menu.
Once the XAMPP control panel has started you will notice that it has five service that can be started and configured through this control panel. For the application development two services Apache and MySql are important. Apache is HTTP server and MySQL is database server which will serve as a data store for our application. FileZila is FTP server, Mercury is Mailing Server and the last Tomcat is another open source web server. You don’t need Tomcat when you are using Apache.
Some time when you start Apache it gives error and dose not
start, because the predefined ports 80 and 433 conflict with the existing
installed application or running services. In this case, you can change these
ports easily by modifying the configuration files. You can click on config button
and open the “Apache httpd.conf” file. It will open it in the notepad change
the port 80 on two locations as below to 8080.
Listen 80
ServerName localhost:80
Similarly you can open the “Apache httpd-ssl.conf” file and
change the port 443 to 4433 on the below mentioned locations in the file. Once
you have done these modification start the Apache service again it will start
and show green which means it is started and running successfully.
Listen 4433
<VirtualHost _default_:4433>
ServerName www.example.com:4433
Installing Composer
Now a day’s all big frameworks
and platforms are composed of several useful packages, CakePHP is a rich
framework and depends on several packages. CakePHP requires composer which is
package manager. We need this package manager to install the CakePHP. You can
download the composer latest version form the github. Download
Once the installer setup is
downloaded just double click and run the installer. Do not change any setting
on the wizard just click next, next install and finish. For your reference images are self-explanatory as below.
Up till now we have installed all
the prerequisites and done the configuration need for the application
development.
Stay with
us in next post we will start the CakePHP. We will create a project and
will discover how much CakePHP is sweet.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.