Hi few weeks back i tried to set cake php console path, i tried meny tutorial from blogs and forums but unable to set the path.
finally i waas able to fix this issue after trying many ways, so i would like to share with all you guys
===========================
checking $PATH content
===========================
first check what is there in your $PATH system variable
1) open your console and type
>echo $PATH
this will display the content of $PATH for my system it shows...
iz:/etc# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/var/www/cake/cake/console
- now you can see the defferent path settings of your system.
- look carefully all the path's separated by colon(":") from each other.
- from above you can see that cakePHP console for my system is set.
=======================================
How to set CakePHP 1.2 Cnsole Path in Your system?
=======================================
1) open your console window
2) type " sudo vi /etc/environment " and press enter key
- this will open your environ ment file in VI editor
3) now press "i" so the you get into edit mode and you can start editing this file
4) now add below content to this file(if your file contains some text...add this line blow that)
export $PATH=$PATH:/var/www/cake/cake/console
5) save your file now!!
press "escape key" then type " :w! " this will save your file then " :q " to quit.
6) now gain check your $PATH by typing
echo $PATH
now it should show the console path included
Note :
I aassumed that
1) you are using CakePHP1.2.x
2) your webserver root directory is located at "/var/www/"
3) You have copied/placed cakephp content in "cake" directory
then its path will be "/var/www/cake" this will contain many files and direcotries like app,cake, index.php..... etc
finally console directory is located in" /var/www/cake/cake/" along with other direcotries.
thats it Enjoy
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment