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
August 27, 2008
August 24, 2008
Never Install Windows Over Linux
Just few months back i started working on Linux and i desided to use only Linux some some time...that was an great idea i installed UBUNTU 8 which is running fine.
two weeks back i need to run an windows specific application so instead of using virtual machine or some other alternative i decided to install windows on my system (Dual booting).
Long time back i installed Linux on windows(dual boot) there was not problem with that installation, so i thought that that there will be no problem if i install Windows over Linux .
Finally i decided to install win XP pro on by Ubuntu machine ,booted with XP cd and it started normally every thing is going great finally as part of installation my system restarted and I WAS SHOWN BLANK SCREEN ... i waited for few minutes then tried hitting return key ..... TRIED MENY WAYS ,NOTHING WORKED OUT.
Finally i found that windows installation Removed "boot flag" from linux installed drive and damaged the GRUB
finally i tried to resolve this issue in meny ways,i booted my system with ubuntu live cd, then i tried to set boot flag to linux drive using "cfdisk" utility but to my horror i erazed entire disk now my 4 partitioned disk shown as no-partition disk with un-allocated space.
finally i attached my HDD to other system fortunatly ......Luckily...... Two NTFS partitions were still alive which had my important data. I quickly backed it up and repationed and formatted my disk.
then i installed win XP first then UBUNTU...
GUYS(Also gals) be carefull if you are installing windows over Linux...
Have great linux experience...good bye
two weeks back i need to run an windows specific application so instead of using virtual machine or some other alternative i decided to install windows on my system (Dual booting).
Long time back i installed Linux on windows(dual boot) there was not problem with that installation, so i thought that that there will be no problem if i install Windows over Linux .
Finally i decided to install win XP pro on by Ubuntu machine ,booted with XP cd and it started normally every thing is going great finally as part of installation my system restarted and I WAS SHOWN BLANK SCREEN ... i waited for few minutes then tried hitting return key ..... TRIED MENY WAYS ,NOTHING WORKED OUT.
Finally i found that windows installation Removed "boot flag" from linux installed drive and damaged the GRUB
finally i tried to resolve this issue in meny ways,i booted my system with ubuntu live cd, then i tried to set boot flag to linux drive using "cfdisk" utility but to my horror i erazed entire disk now my 4 partitioned disk shown as no-partition disk with un-allocated space.
finally i attached my HDD to other system fortunatly ......Luckily...... Two NTFS partitions were still alive which had my important data. I quickly backed it up and repationed and formatted my disk.
then i installed win XP first then UBUNTU...
GUYS(Also gals) be carefull if you are installing windows over Linux...
Have great linux experience...good bye
Subscribe to:
Comments (Atom)