Re: [users@httpd] Running PHP as CGI without Shebang

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

 



On 5/31/06, nocturnal <nocturnal@xxxxxxxxxx> wrote:
Hi

I've tried a few alternative solutions but i can't remember if a global
ScriptAlias was one of them. Possibly only a global Alias. I will try it
as soon as i get some time for it.

The configuration is as follows in each vhost.

  AddHandler php-v4 .php
  Action php-v4 /cgi-bin/program.cgi

This forces each vhost to have a program.cgi which is a copy of the php
binary interpreter. This is in the <Directory> section of each vhost.
The section also contains ExecCGI in Options.

Well, you shouldn't need any of that.  You should only need the
following in a global (not vhost) section:

AddHandler php-v4 .php
Action php-v4 /cgi-global/program.cgi
ScriptAlias /cgi-global /full/path/to/global/cgi-bin
and possibly a <Directory /full/path/to/global/cgi-bin> allowing
access depending on the permissions of parent directories.

Joshua.

---------------------------------------------------------------------
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