On Sun, Oct 11, 2009 at 01:36:43PM +0800, Umarzuki Mochlis wrote:
> I want to know how to set up a debian server capable of running php cgi
> script and how to create and run cgi script. Where can I find articles on
> that?
> I had search for a few hours but still could not find a good one.

Any package that provides httpd-cgi will do the trick. Install the
package php5-cgi, and you're basically done. Just use CGI scripts with
the headers:

#!/usr/bin/php

(Not sure what extra switch is needed, if at all. Too lazy to search
right now).

However, why do you want to use PHP as CGI and not as a more efficient
option?

-- 
Tzafrir Cohen         | [email protected] | VIM is
http://tzafrir.org.il |                    | a Mutt's
[email protected] |                    |  best
ICQ# 16849754         |                    | friend


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to