| Author |
Message |
dmtalon New Member


Joined: May 10, 2006 Posts: 21
|
Posted:
Wed Jul 15, 2009 7:47 am |
|
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. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
|
Posted:
Wed Jul 15, 2009 9:49 am |
|
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. |
|
|
|
 |
dmtalon New Member


Joined: May 10, 2006 Posts: 21
|
Posted:
Wed Jul 15, 2009 10:29 am |
|
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... |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
|
Posted:
Wed Jul 15, 2009 10:35 am |
|
Use _SERVER["SCRIPT_NAME"] instead. |
|
|
|
 |
dmtalon New Member


Joined: May 10, 2006 Posts: 21
|
Posted:
Wed Jul 15, 2009 10:40 am |
|
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  |
|
|
|
 |
dmtalon New Member


Joined: May 10, 2006 Posts: 21
|
Posted:
Wed Jul 15, 2009 10:45 am |
|
BINGO... 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 (yet not obvious) |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
|
Posted:
Wed Jul 15, 2009 11:00 am |
|
|
|
 |
dmtalon New Member


Joined: May 10, 2006 Posts: 21
|
Posted:
Wed Jul 15, 2009 11:31 am |
|
We're moving (sold our house) and I needed to get that off my home server  |
|
|
|
 |
|
|
|
|