How to get CakePHP up and running on Windows etc

Windows reinstall gone awfully wrong, contd. - 9:32 PM 7/16/2006

Luckily, Mas Sahal gave me permission to use hard disks on BID to transfer my data before repairing the partition. So on 13th I brought my hard disk there.

The day before, I had made a “free space” list of Mas Syafiq, Jay, and Hakim’s computer. I plugged my HD on Hakim’s comp because his comp’s case was opened. Jay’s HD had the most space but unfortunately other computers can’t access Jay’s HD using the Windows File and Printer Sharing protocol. Copying to Hakim’s HD was of course nonproblematic but copying to Mas Syafiq’s comp is. The speed is of course slower than a local copy and the network sometimes disconnects itself.

After enough copying to Hakim’s comp and Mas Syafiq’s comp I unplugged the HD and plugged it on Jay’s comp. I remembered half-installing Ubuntu on a partition some days before, so I reformatted the partition to NTFS for extra space.

The whole process was really time consuming. I was literally a pain in other’s *** that day, disturbing their workflow. When the last folder (”readings”) was being transferred, I visited LTI for a while before going back to BID.

When I was back there, Jay’s computer had been restarted and it was found out that it wasn’t bootable. It turned out that the partition I thought was populated by a half-done Ubuntu was already replaced by a fully functioning Mandriva. Since the boot loader was installed there, it dissapeared when I reformatted it.

Attempts to make the computer boot directly to the Windows partition failed. Therefore I decided to finish my hard disk trouble so that Mandriva can be installed back on Jay’s computer.

I plugged both my and Jay’s HD on Hakim’s computer. Then I proceded to delete partitions from the leftmost. However, before deleting all of them (”archive” and “transfer”), I noticed that my hard disk size is already detected properly. I could also create new partitions. So I left the the remaining partitions intact and hope that things would work out by just creating the need partitions.

After tranfering data back from Hakim and Jay’s hard disk, I plugged my HD to Mas Syafiq’s computer to get the remaining data. The process took a really long time and by the time BID will close the transfer wasn’t finished.

I asked Mas Syafiq the permission to borrow his HD, and he kindfully allowed me. So the task was finished at home.

Now I have a fresh Windows install and there seems to be no partition problems.

Running GTK# apps without Mono - 9:27 PM 7/16/2006

In my system, .NET 2.0 and Mono 1.1.16 is installed. I just found out that if the GTK# DLLs (gtk-sharp.dll, gdk-sharp.dll, glib-sharp.dll, atk-sharp.dll, pango-sharp.dll) are in the same folder as the executable, .NET will be able to run it.

As far as I remember, this isn’t the case with Mono 1.1.15. I found this “feature” by accidentally double clicking my GTK# app.

How did I get here??? - 10:54 PM 7/15/2006

Wordpress has a very cool feature which lets blog owners know what search keys people type to get to their blog.

To see this info, login into your Wordpress account and then from the “Dashboard” go to “Blog Stats”.

Here are the search keys that drive people here for the last 7 days…

Indonesian Grammar PDF
rpg games Create a character
when i reformat will my other partitions
nggak
pictures of grumpy dwarf
青空の涙
artikel pernikahan islami
jacoto kombilo
"moyo go studio" vs smartgo
folder option,task manager doesn't appea
mp3 resize free software
explorer² open source
mencegah untuk pacaran
JODOH dalam pandangan ISLAM
Windows UPDATE 8007007f
ubuntu earphone jack no sound
wordpress memory problem
w32.rontokbro@mm + removing
error 8007007f
speaker left/right change
masalah hubungan pacaran
Unable to load DLL (gtksharpglue).
media player classic dual core
breezy plane
I've regret zip
better archiver than 7-zip
making a life rpg
tatakau means
c# capitalize first word letter
Parts inside your printer are near the e
berpegangan tangan
mimpi basah dalam islam
JquickTrans doesnt work with SP2
Sekip Unit II
kanji 500 test gtk
mnemosyne flash card
Boab
breezy plane
adj-no

It’s interesting that a piece of writing I composed some time ago is visited a lot through a search engine.

How to get CakePHP up and running on Windows - 10:22 PM 7/15/2006

Cake is a PHP web development framework which employs the MVC model. I will describe how to set it up on a win32-based machine.

First install xampp (the lite version is fine) which consists of Apache, PHP, and MySQL. The install process just copies some files to a specified folder.

Next, run “setup_xampp.bat” located on the root xampp folder.

After that open “httpd.conf” located on “apache\conf” folder. Then uncomment the line that contains “mod_rewrite”. This is needed to enable Cake’s pretty URL such as “http://localhost/cake/users/view” instead of “http://localhost/cake/index.php/users/view”.

Afterwards, extract Cake somewhere in the “htdocs” folder. I usually put it in “htdocs\cake”.

The last step is to copy “database.php.default” in “app\config” of Cake’s folder to “database.php”. Then change the “$default” variable to suit your database settings. An example is:

class DATABASE_CONFIG
{
   var $default = array('driver' => 'mysql',
      'connect' => 'mysql_connect',
      'host' => 'localhost',
      'login' => 'root',
      'password' => '',
      'database' => 'test',
      'prefix' => '');
}

Which works with the default MySQL in xampp.

To see if things are working properly, run “xampp-control.exe” in xampp’s root folder and then start Apache and MySQL from there:

Starting Apache and MySQL

After that point your browser to “http://localhost/[cake's root folder]” for example “http://localhost/cake”.

Here’s some goodies:

Cake 1.1.5.3148
Cake 1.1.5.3148

Cake 1.1.6.3264
Cake 1.1.6.3264. Cleaner???

To learn how to use it, read “The Cake Blog Tutorial” in CakePHP Manual.

Share and Enjoy:
  • bodytext
  • del.icio.us
  • Technorati
  • Slashdot
  • StumbleUpon
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Live

22 Responses to “How to get CakePHP up and running on Windows etc”

  1. priandoyo Says:

    just curious, what is cakephp strength compare to mambo, joomla or even wordpress :D, anyway i also used xammp for preparing the server. Its very easy huh

  2. Agro Rachmatullah Says:

    Well, it’s CakePHP is actually different from the likes of Mambo, Joomla, and Wordpress so it will be an apple to oranges comparison. But here it is anyway…

    I haven’t installed Mambo, Joomla, and Wordpress but it seems that after installing them a web site will be up and running. You can then add pages/posts/whatever from the website itself. No coding.

    However, after installing CakePHP on the server, it’s time to open a text editor and start… coding! This is because CakePHP is a class library to help you build a PHP-based website. If you do lots of database query and input validation, CakePHP will make your web development a lot easier.

  3. Moore Ray Says:

    CakePHP is cool for developers, CMS systemm like Mambo are heavy and do not subscribe in a disciplined fashion to any development framework. CakePHP uses MVC, a very promosing methodology for software development modelled on OOAD, …smoke Mambo & Joomla!

  4. Mythophile Says:

    Cake is geared specifically to creating database driven websites. It’s a tight series of functions that let developers create a site almost from the ground up. Programs like Mambo, Joomla and Drupal are geared toward removing as much coding as possible. Because of this they are less flexible and all sites designed with them tend to look the same.

  5. Will Says:

    Hey, I’m just glad you had the correct answer for me to get cake up and running. I started playing with it last night. You saved me a lot of frustration and hassles.

    I’ve tried Mambo, Joombla, ExponentCMS and the likes… and what you both said about the differences is completely true. I’m a novice developer and it seems that CMS systems are geared toward the less experience developers who just need to get a site up and running with simple web based wizards.

  6. andrezero Says:

    Hey! I also want a piece of the cake but it just doesn’t work here because I can’t get mod_rewrite to work properly!

    I’ve downloaded and installed a fresh Xampp, I did the #LoadModule uncommenting the AllowOverride All changing, but I still get the uggly page just like they sey in cake’s manual (css and images not loading!)

    Can someone help me?

  7. sonic Says:

    Me too! I’ve already install and configure both CakePHP and xampp. But when I run test tutorials on my CakePHP Framework, it says the page can’t be found. What do I need to configure? Can you all help me?

    Thanks in advance!!

  8. contrid Says:

    Thanks for the instructions.
    I had to load mod_rewrite in order for it to work.
    Going to be testing with Cakephp today.
    Was trying Symfony earlier, but I cannot stand all the command line stuff.

  9. contrid Says:

    @priandoyo
    Cakephp is a framework, not a CMS.
    Those other CMSs mentioned are ready for use.

  10. Ooze Says:

    YOOOOOOOW…..

    nice article (^_^)
    It helps me to set up and run cakePHP easily (^_^)

    Thx

  11. Mouly Says:

    Neat article.

    The mod_rewrite line was commented in httpd.conf. May be they changed it in the latest version

  12. Fair Replacement Water Filter Says:

    Beautiful Ro Water Filtration

    Beautiful Ro Water Filtration
    Beautiful Ro Water FiltrationCtgID635 0183 12152007 0183 Cached pageHows That Work Electric Outlet, Water Purifier, SpeakerHows That Work Electric Outlet, Water Purifier, Speaker. Learn more about the PUR Faucet Mount wate…

  13. Getting started on CakePHP « slibowitch Says:

    [...] JSAS (Joomla 1.1) portable maar dat is ook vast niet de nieuwste PHP. En Wamp, is minder portable? Google helpt. Xamp dan maar? Apache debuggen is nou éénmaal niet mijn hobby dus als het niet [...]

  14. somel90 Says:

    [Wow thats g8....article]

  15. salman Says:

    I have installed the wamp and also i installed the PHPcake. it’s working fine but when any form is posted page nothing is displayed please help me out.

  16. CakePHP: installazione e creazione di un blog « Michele Dalla Torre’s blog Says:

    [...] Per maggiori dettagli rimando a questo articolo. [...]

  17. Cronaca di un’avventura formativa » Blog Archive » CakePHP: installazione in locale e creazione di un blog Says:

    [...] Per maggiori dettagli rimando a questo articolo. [...]

  18. Marc Says:

    Very cool. I will use phpcake for my website: blockacountry.com, will make my life much easier.

  19. Momekh Says:

    I have a massive problem. Massive not in size, but in annoyance! The problems seems so small, hence the massive annoyance. Please, some clues as to what the hell is going wrong here will help.

    There is no CSS for the cakePHP page. I have installed it, connected the dbase etc, but now that I tried to make a simple notes/memo/bookmark thingy thing, to start off my cakePHP adventures, of cousre I cant access it at /.

    I think that the reason I am not getting CSS to style the page at , is the same reason why this small app is not working. I am stuck and I had the tea and cigarettes and time lined up to learn some cake.

    Please help. Email me or just reply here.
    Will be much appreciated. Thanks :)

  20. How to get CakePHP up and running on Windows etc « Singularity on the Plane Says:

    [...] to get CakePHP up and running on Windows etc This post have been moved to singularity.agronesia.net: “How to get CakePHP up and running on Windows etc”. Please visit the new [...]

  21. peja Says:

    Thanks your instruction guided me install properly.

  22. clerciliday Says:

    design. Anita Flavin is also a famous shoe designer for celebrities these kinds of as Christine Bleakley, Shirley karen millen online they’re released to our property. There are five shrubs recommended for you in your landscaping venture.1. Red

Leave a Reply