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         | tzaf...@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzaf...@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to