1
Kieran
HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 12:35

  • Kieran

  • Just popping in

  • Posts: 32

  • Since: 2007/7/12


URGENT advice needed. I've just switched servers and now the site won't display.

When I go to my homepage I get a 403 Forbidden Page

But if I type in mysite/index.php I get the header and the footer displayed but nothing else

If I type in a page address (such as http://www.mysite/modules/newbb) I get the XOOPS You don't have the right to access this redirect.

1.I've transferred all the files, keeping structure intact.
2. I've copied all the database tables without problem
3. I changed the mainfile.php to have the new server name and password (and made it chmod 444).

BTW - the cache folder is the one that may not have downloaded all its files when I was transferring - it was huge and took forever. All the other folders I'm pretty sure transferred well - could this be a problem or is cache irrelevant?

I'm running 2.0.16

PLEASE HELP - ANY SUGGESTIONS I'D BE REALLY GRATEFUL!

THANKS!

2
tom
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 12:38

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Try removing all files in cache and templates_c.

As this may refer to your old site.

Double check you've transfer all files correctly, including index pages, and check there are no .htaccess pages denying access. (cache and templates_c must not be used from old site)

3
Kieran
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 12:56

  • Kieran

  • Just popping in

  • Posts: 32

  • Since: 2007/7/12


Hi Tom

Thanks a lot for the super quick reply!

I've cleared cache and templates_c but still have the problem

Neither new or old server allowed .htaccess so I don't think it can be that.

BTW I edited my first post so you might have missed the following

if I type in mysite/index.php I get the header and the footer displayed but nothing else

Does this shine any light on it?

4
tom
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 13:07

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Check your Apaches setting, it's probably not recognising index.php as the main ext and looking for .html, when it's not there it gives a denied access page.

Ask your host.

5
trabis
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 13:54

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I would take another look at that mainfile.php to see if the database connetion is ok and if the last lines that define groups are as they were (0,1,2). If so I would go directly to the database table configs and enable the flag of the debugger. Was there a change in the php version? Could be a compatible issue with some modules or maybe not, I bet it has something to do with group permissons. Good luck!

6
mboyden
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 14:31

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Since it's a move of servers, did the file path change? I'm assuming that the domain name and URLs didn't change. If the file path changed, you of course need to update that in your database. Are you sure the database is properly connecting? Also, make sure your file permissions are correct. You might want to check your log files (messages, errors, apache, etc.) to see if they are giving any errors. The previous suggestion of manually changing to debug mode in the database might help, too.

My process for moving to a new server (what I use for deployment of every client site):

1. Export the database (I use phpMyAdmin and also delete table checked)
2. TarGzip the entire site (include XOOPS_TRUSTED_PATH as you are likely using the Protector module -- any maybe others)
3. Create database and user on new site (if not already setup)
4. Change hard-coded local URLs in data (better yet, always make URLs relative!; search the SQL file for both web & file paths)
5. Import SQL file to new database
6. Untar files into place
7. Fix mainfile.php for new site (changes: XOOPS root path/url; database host, database, username, password; trust path, etc.)
8. Fix .htaccess with new domain/url (likely unneeded)

Finally, do you have any modules that are SEO enabled, such as SmartSection? That hits point #8. Make sure these are all done, then try the debug setting and see if that helps.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

7
tom
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 14:48

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


With regards to the last two posts.

If it's a mainfile, db issue, how would that result in a 403 forbidden page, it would show DB errors?

Normally this are made by .htaccess, or index.ext missing.

if index.php is there then it should work.

Just wondering in case I ever hit the same issue.

8
mboyden
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 14:54

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Good point, and I meant to discuss that, too. What are the file permissions on your files? We run suphp on our servers (a replacement for suphpexec another common one). It requires that php files be specific permissions. Typically, you want directories to be 755 and php files (and others) to be 644. You might see if that helps.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

9
tom
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 15:03

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


ah file permissions, I have read that before never had the issue myself probably because of the distro used on our servers and php.

10
stefan88
Re: HELP! Changed server and site won't display URGENT!!!!!
  • 2007/12/4 16:00

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


mod_sec can rise "403 Forbidden Page" ...
..

Login

Who's Online

390 user(s) are online (298 user(s) are browsing Support Forums)


Members: 0


Guests: 390


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits