PDA

View Full Version : php5-cgi installed but php5 command not found


Naeh
24th December 2006, 02:18
hi,

i am using debian sarge 3.1

i need to use php in shell to excute some php scripts like this :
php5 script.php

i installed php5-cgi (apt-get install php5-cgi) but it does not work, i have this error : php5: command not found.

the commande whereis php5 returnes
php5: /etc/php5 /usr/lib/php5 /usr/share/php5


3 results are directorys, so there is no php binary files

thanks for help.

till
24th December 2006, 12:57
Please run:

apt-get install php5-cli

For commandline purposes, php5 has a cli package, the cgi si normally not used for this anymore.

The you should have a php5 or php command.

Naeh
24th December 2006, 12:57
i installed php5-cli and it work now :)

thanks till :)