Now I have to type /usr/local/php5/bin/php to run php,
is there a way so that I just type php and it's run?
|
feedback
|
|
you can either add an alias to your ~/.bash_profile file like so(http://freeunix.dyndns.org:8088/site2/howto/Bash.shtml):
for this i recommend using something else other than php though unless its the only php binary on your system or you can either Symlink the to the php binary in /usr/local/php5/bin from /usr/sbin
or add the directory to your PATH environment by editing or adding the following line in your ~/.bashrc file (you need to logout and in for this to work)
options 1 and 3 are only for your user, if you need it to work for all users of the system you need to use option 2 | |||||||||
feedback
|
| |||||||||||||
feedback
|
|
add in your .bashrc
logout and login again. | |||
|
feedback
|
|
You can add /usr/local/php5/bin to your PATH, or you can make an alias | |||
|
feedback
|