Enabling the use of PHP5 by default in the shell
From DreamHost
This enables you to use PHP5 by default instead of PHP4 when running PHP scripts
- Edit your ".bashrc" using your favorite editor. Add the following line:
export PATH=/usr/local/php5/bin:$PATH
- Edit your ".bash_profile" file. Look for something like (note the space between the two periods):
". .bashrc"
If that does NOT exist, add this to the end of the file.
if [ -r .bashrc ] ; then . .bashrc fi
- In the shell type "which php" and you should see "/usr/local/php5/bin/php"