Hi Everyone -
I just installed the Mediawiki on my (Debian) server. The installation & configuration went perfectly, without a hitch. But, upon completion, when I went to the main page, I saw this error:
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.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
I know little about PHP (but lots about some other languages!) and I'm not quite sure how do go about fixing this. A Google search wasn't useful and I wasn't able to find a search function on the mailing list archive so I can see if someone has asked this before.
What do you recommend I do?
Thank you so much for your help!!!!
-morgan
I have the exact same problem and have tried a number of different php.ini and httpd.conf options to no available. I am hoping you have managed to resolve the issue by now. If so would you mind emailing me the resolution, thanks.
Gary Wilson
S. Morgan Friedman wrote:
I just installed the Mediawiki on my (Debian) server. The installation & configuration went perfectly, without a hitch. But, upon completion, when I went to the main page, I saw this error:
Security Alert! The PHP CGI cannot be accessed directly.
PHP or your web browser is returning the wrong URL to the program. Set $wgScriptPath and $wgScript manually.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org