PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 21

PostPosted: Wed Jul 15, 2009 7:47 am Reply with quote Back to top

So,

I needed to change servers, so I tar'd up the website files, I dumped the database, and moved everything over.

Most things seem to work on the site, however when I log into the admin control panel I can not select any modules (error of "Access Denied"). I can also only see the top row of modules, with another text error of "Access Denied" showing on the left above the first module. The next module that "should" of showed up (first one on the second line) would be Gallery2.

I've gone through and checked the permissions, and via mysql changed the url's from the old to the new, but nothing seems to have helped. If I click on the gallery link on the link section I also get a second error "You can't access this file directly..."

Old server is using apache2 new server is on nginx but every other site I've had/moved seems to work fine (php sites included).

I'm sure it's something simple, I just can't figure it out. BTW, this is an old install of RN like 2.10.1. But it works fine on the old server.

Thanks for any help.
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Jul 15, 2009 9:49 am Reply with quote Back to top

Run phpinfo() on each server and compare the 2 PHP environmental setups. Be sure to NOT post any phpinfo() information publicly that could compromise your server security.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 21

PostPosted: Wed Jul 15, 2009 10:29 am Reply with quote Back to top

looks like _SERVER["PHP_SELF"] is not being passed correctly. If I modify that line to a variable that is being passed _SERVER["DOCUMENT_URI"] then my gallery comes up! Thanks for the idea. I just need to figure out how to get fastcgi to pass the php_self variable. adding it didn't seem to work...
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Jul 15, 2009 10:35 am Reply with quote Back to top

Use _SERVER["SCRIPT_NAME"] instead.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 21

PostPosted: Wed Jul 15, 2009 10:40 am Reply with quote Back to top

that's not even listed in phpinfo(). it is on the old server (using apache). I just need to figure out how to get these globals passed correctly I think Smile
View user's profile Send private message
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 21

PostPosted: Wed Jul 15, 2009 10:45 am Reply with quote Back to top

BINGO... Smile got both script_name and php_self passed through!

Thanks for the point in the right direction. Both modules page shows all modules, and the gallery is working.

I figured it would be something simple Smile (yet not obvious)
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Jul 15, 2009 11:00 am Reply with quote Back to top

RavensScripts
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 21

PostPosted: Wed Jul 15, 2009 11:31 am Reply with quote Back to top

We're moving (sold our house) and I needed to get that off my home server Smile
View user's profile Send private message
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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum