Configuring Cakephp and Xampp for MacOSX
Xampp is the most useful application a developer gotta have. It is a Apache, MySQL, PHP and Perl all integrated to one. Setting up takes less than 5 minutes. Very litle configuration needed.
Cakephp is a framework that facilitates development base on the MVC model. Everything is well thought out. The codes for model, view and controller is placed in different folder to make managing of codes much more easier.
Configuring Xampp
There are some things to note during the configuration for Xampp. The default login for the root account are username: “root ” and password: “”. After downloading the gui tool for MySQL, one should login with “127.0.0.1″ instead of “localhost” with the above login id and password.
The very next thing is to configure “/Applications/xampp/xamppfiles/phpmyadmin/config.inc.php” file by changing
“$cfg[’Servers’][$i][’host’] = ‘localhost’;”
to
“$cfg[’Servers’][$i][’host’] = ‘127.0.0.1′;”
Then you should start the server with command “/Applications/xampp/xamppfiles/mampp start”. Open up your browser and open “http://localhost”. You should see xampp page. Xampp is now successfully installed.
Some configuration for Cakephp
Unpack the tar or zip file and rename the folder to your desired. Let us put it at “abc” for now. The very next thing is to copy the folder into “/Applications/xampp/xamppfiles/htdocs”. When done, execute these 2 commands “chown -R nobody:admin /Applications/xampp/xamppfiles/htdocs/abc” and “chmod -R 777 /Applications/xampp/xamppfiles/htdocs/abc”.
Cakephp use the clean url feature. But this feature is not enabled in Xampp by default. So open up “/Applications/xampp/etc/httpd.conf” comment out “LoadModule rewrite_module modules/mod_rewrite.so” with “#LoadModule cache_module modules/mod_cache.so”.
Next restart your xampp by executing this command “/Applications/xampp/xamppfiles/mampp restart”. Type this url in your browser “http://localhost/abc” and VOILA you will see the Cakephp main page.
Everything is setup properly and you got all these in just a little more than 10 minutes. Isn’t it impressive?
Filed under applications, cakephp, free, mac, xampp |4 Responses to “Configuring Cakephp and Xampp for MacOSX”
Leave a Reply



May I add that you can also put the files in the flash drive and bring your work all around and run the web server and blahblahs from the flash drive, hahaa…
oya. that is really a cool feature everyone would want. and it’s quite small too ^^
Hi,
I need some help here.
i followed the instructions on their website(books.cakephp.org) and fired up my first application with a problem. There aren’t any pictures or colors on the welcome page, just raw text.
Any ideas?
you need to set the authorisation for cake to use the database