httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
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 <Axel.Gallus@profindis.de> 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
</Location>

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

#!/bin/sh
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message