I have 2 LAMP servers with ubuntu 10.04... both with php5 successfully installed.
on server1 i run the command # type php in terminal and the response is:
"php is /usr/bin/php"
however in server2 I run the same command and I get this:
-bash: type: php: not found
both servers have php5 installed via this:
sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl
why does server2 show "not found" while server1 if just fine?
Please help! thanks
phpin$PATHon the second server? – CanSpice Feb 14 '12 at 22:37/usr/binon server2 as well, tryecho $PATHfrom the command prompt and see if/usr/binis not in your path for some reason. – drew010 Feb 14 '12 at 22:39type typeoutput? It should saytype is a shell builtin. – wallyk Feb 14 '12 at 22:49