php5-cgi installed but php5 command not found

Discussion in 'Installation/Configuration' started by Naeh, Dec 24, 2006.

  1. Naeh

    Naeh New Member

    php5-cgi installed but php5 command not found [OK]


    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.
    Last edited: Dec 24, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. Naeh

    Naeh New Member

    i installed php5-cli and it work now :)

    thanks till :)

Share This Page