Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Mar 08, 2005 5:52 pm Reply with quote

There are many posts where people get Access Denied messages. Some are in conjunction with a blank screen. Others, as in nuke v7.6, may not have a blank page entirely. Many are in the admin panel.

There can be several reasons why so it is not always easy to spot immediately. However, I tracked one elusive one down today and I'll address it here. The situation was nuke 7.6 (in this case) and the general administration modules were listed but there was an Access Denied message when it went to the individual module section. Don't get too concentrated on that as your mileage may vary.

Before starting down a major debug path, use phpinfo() and determine if your PHP installation is compiled as a CGI or an Apache Module. If, when you run phpinfo() and you see Server API CGI it is CGI. Otherwise it is not, at least not apparently. If it is CGI and you are receiving those pesky "Access Denied" messages", the FIRST thing to check is if you are using any code that references $_SERVER['SCRIPT_NAME'] . If so, you have basically 2 choices. Either change them all to $_SERVER['PHP_SELF'], which isn't that hard with a good search and replace editor, or find an alternate way of globally populating the SCRIPT_NAME = PHP_SELF. See this post for an alternative Only registered users can see links on this board! Get registered or login! that may work.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©