[pmwiki-users] Using PHP as a CGI binary
Patrick R. Michaud
pmichaud at pobox.com
Fri Jun 10 08:50:59 CDT 2005
On Fri, Jun 10, 2005 at 09:14:03AM +0200, Benjamin Fay wrote:
> Hello.
>
> I guess i will have no luck installing pmwiki on a server that is using PHP as
> a CGI binary. I get the following error as soon as i want to edit a page:
> *******
> Security Alert! The PHP CGI cannot be accessed directly.
> This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
> that a page will only be served up if the REDIRECT_STATUS CGI variable is
> set, e.g. via an Apache Action directive.
> ******
If it's giving you this error when you want to edit the page (but not
when you first view it), I suspect it means that $ScriptUrl is not
being set properly to point to the pmwiki.php script. Try explicitly
setting $ScriptUrl in the config.php and see if that resolves the problem.
Pm
More information about the pmwiki-users
mailing list