Setting up CakePHP in the Windows Console
Suresh Raj Bhattarai
9:23 AM
Following links were useful while setting up:http://tv.cakephp.org/video/gwoo/2010/12/24/setting_up_the_cakephp_console_on_windows
http://anvilstudios.co.za/blog/php/setting-up-the-cakephp-console-in-windows-7/
Steps:
1. Download the cakephp framework from cakephp.org
2. Unzip and copy that folder inside C:\wamp\www\
3. Set up the environment variables (In windows 7, Do to My Computer>>Prop>>Advanced system settings>>Advanced>>Environment Variables>>Inside system variables, see the path and click on Edit and add following lines (based on the location of the files and folders) )
C:\wamp\bin\php\php5.2.6\;C:\wamp\www\cakephp1.1.3\cake\console\;
Now the actual line becomes:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\wamp\bin\php\php5.2.6\;C:\wamp\www\cakephp1.1.3\cake\console\;
Click on Ok and Ok.
Now you are done.
4. Go to console (Run>>Type cmd)
5. Type cake as
C:\Users\Suresh>cake
It will run by showing you up welcome messages with some path scripts.
Now change directory to C:\wamp\www as:
C:\Users\Suresh>cd C:\\wamp\www
C:\wamp\www>cake
Now it shows that cake is running from C:\\wamp\www
Happy Coding!!
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment