Php cli

software development


Is there a way to run php cli instead of cgi on dreamhost? The script I use requires it for some of the features.


Yep, there sure is! There is even a DH Wiki article that tells how to use php cli. :slight_smile:

Actually, that article probably needs an update, as there are several versons of PHP you can run from the command line:

  1. PHP4 is located at /usr/local/bin/php
  2. PHP4 is also located at /dh/cgi-system/php.cgi
  3. PHP5 is located at /dh/cgi-system/php5.cgi

(Edited to add additional path information)