PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
freespirit
New Member
New Member


Joined: Mar 27, 2005
Posts: 18

PostPosted: Sun May 01, 2005 10:26 pm Reply with quote Back to top

Hello all,
I have been receiving this message when I try to click on any link on my website.

Quote:
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.


They have pointed these 2 links :
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!


Anybody has any ideas on this? This error message appears on another php-nuke site hosted on the same server. So I guess it is a server config problem.

Thanks
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Sun May 01, 2005 10:37 pm Reply with quote Back to top

Found this in the manual user notes:

Quote:
If you install under Windows and continually get an error:

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.

First thing you need to do is change the line in php.ini so it is cgi.force_redirect = Off
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
freespirit
New Member
New Member


Joined: Mar 27, 2005
Posts: 18

PostPosted: Sun May 01, 2005 10:51 pm Reply with quote Back to top

Thanks for the quick reply, Raven.

But my site is hosted on a Linux server.
Kernel version is 2.4.21-27.0.2.ELsmp
Apache version is 1.3.33 (Unix)
PHP version is 4.3.2

Any leads on this would be very helpful.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Sun May 01, 2005 11:11 pm Reply with quote Back to top

The latest version of PHP is 4.3.11 - Please verify what version of PHP you have and that it is truly on a Linux box.

Please run phpinfo() and post back the value of
force-cgi-redirect
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
freespirit
New Member
New Member


Joined: Mar 27, 2005
Posts: 18

PostPosted: Mon May 02, 2005 12:07 am Reply with quote Back to top

Hi,
The versions I listed out had been from the info. in my cpanel. I am on a shared web host. The site had been running ok till last Friday. But this error came up last Saturday. I hadn't done any changes on my site.

How do I run the phpinfo() script ? I am sorry but I don't know much about it.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Mon May 02, 2005 6:05 am Reply with quote Back to top

Save this script to a file and ftp it to your site. Then point your browser to it. Example - If you saved it under a filename "info.php" then the url will be
Only registered users can see links on this board!
Get registered or login to the forums!
.
Code:
<?
phpinfo();
?>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
freespirit
New Member
New Member


Joined: Mar 27, 2005
Posts: 18

PostPosted: Tue May 03, 2005 2:48 am Reply with quote Back to top

Thanks Raven...

My site's working now. I am now just waiting for my registration to expire so that I could shift my host. Grrr..........
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Tue May 03, 2005 6:20 am Reply with quote Back to top

How did you fix it?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum