httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] .php files as CGI without shebang
Date Thu, 18 Mar 2004 18:21:02 GMT

On Thu, 18 Mar 2004, Andreas Hahnefeld wrote:
> I added a handler and defined 'Action' as described below:
>    AddHandler php-cgi .php
>    Action php-cgi /usr/bin/php

The second argument to Action must be the path to a cgi script in apache
web-space.  So, for example, you need to put your php binary in the
default cgi-bin directory and use
Action php-cgi /cgi-bin/php

But be sure to look at the cgi security with php issues:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message