httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [users@httpd] Avoiding placing #!path/to/phpinterpreter
Date Tue, 09 Nov 2010 20:44:55 GMT
On Tue, Nov 9, 2010 at 3:04 PM, Axel Gallus <> wrote:
> I will read about it in the documentation, but maybe you could give me
> an example right off the bat?

something like

<Location /myapp/>             # or other type of container
AddHandler runphp .cgi
Action runphp /cgi-bin/php-cgi

with that relative path on the Action, the php-cgi binary would need
to be in serverroot/cgi-bin

alternatively, you can create wrapper in cgi-bin called php-cgi

exec /full/path/to/php-cgi $*

but that has extra processing to get to the real php binary

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