Tuesday, December 30, 2008

set path for cakephp on windows

This part is only for people with XAMPP installed with Windows.. To use the bake feature of CakePHP you will need to do a few extra steps.
  1. Use a fresh copy of CakePHP and put it in your C:/XAMPP directory. You should have a directory structure like this: “C:/XAMPP/htdocs/cake1.2(renamed the folder to cake1.2)/cake/console”
  2. Now you need to go to your Advanced System Settings page and In your Environment Variables you will want to edit the “PATH” Variable. Add the following to the end of your PATH “;C:\xampp\php;C:\xampp\htdocs\cake1.2\cake\console;” without the quotations of course.
  3. You may need to restart your computer, but open up the console and you should be able to type “cake -v” and “php -v”. If they work, then you are ready to bake!

No comments:

Post a Comment