Re: Avoiding placing #!path/to/phpinterpreter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 9, 2010 at 3:04 PM, Axel Gallus <Axel.Gallus@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux