You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Axel Gallus <Ax...@profindis.de> on 2010/11/09 19:40:18 UTC
[users@httpd] Avoiding placing #!path/to/phpinterpreter
Hi Guys,
I set up an envronment where files with *.cgi ending
get executed by the mod_cgi (or mod_cgid).
I have to place the line #!/usr/cgi-bin in each of those files
to let them run by the interpreter.
Is there a way to render this unneccessary so that they automatically get executed by
the interpreter , maybe by a ScripAlias or some other Alias?
Regards
Axel Gallus
Re: [users@httpd] Avoiding placing #!path/to/phpinterpreter
Posted by Jeff Trawick <tr...@gmail.com>.
On Tue, Nov 9, 2010 at 3:04 PM, Axel Gallus <Ax...@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
AW: [users@httpd] Avoiding placing #!path/to/phpinterpreter
Posted by Axel Gallus <Ax...@profindis.de>.
I will read about it in the documentation, but maybe you could give me
an example right off the bat?
thx and regards
A.Gallus
-----Ursprüngliche Nachricht-----
Von: Eric Covener [mailto:covener@gmail.com]
Gesendet: Di 09.11.2010 20:55
An: users@httpd.apache.org
Betreff: Re: [users@httpd] Avoiding placing #!path/to/phpinterpreter
On Tue, Nov 9, 2010 at 1:40 PM, Axel Gallus <Ax...@profindis.de> wrote:
>
> Hi Guys,?
>
> I set up an envronment where files with *.cgi ending
> get executed by the mod_cgi (or mod_cgid).
>
> I have to place the line #!/usr/cgi-bin in each of those files
> to let them run by the interpreter.
>
> Is there a way to render this unneccessary so that they automatically get
> executed by
> the interpreter , maybe by a ScripAlias or some other Alias?
Action?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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
Re: [users@httpd] Avoiding placing #!path/to/phpinterpreter
Posted by Eric Covener <co...@gmail.com>.
On Tue, Nov 9, 2010 at 1:40 PM, Axel Gallus <Ax...@profindis.de> wrote:
>
> Hi Guys,
>
> I set up an envronment where files with *.cgi ending
> get executed by the mod_cgi (or mod_cgid).
>
> I have to place the line #!/usr/cgi-bin in each of those files
> to let them run by the interpreter.
>
> Is there a way to render this unneccessary so that they automatically get
> executed by
> the interpreter , maybe by a ScripAlias or some other Alias?
Action?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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