Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
Posted:
Tue Mar 08, 2005 5:52 pm
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 to the forums!
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