Hoping someone can help me quickly as the site needs to be live today!
Have uploaded all the files to the new server, and imported the database. Then changed the settings.php file so the correct database connection string for the new database is there.
The new server is accessed by an IP (domain to be moved later). When I enter the IP to try and view the home page I see the (correctly themed) drupal "page not found" page. Trying to access my admin page via ?q=admin gives me the (again correctly themed for the admin side) page not found. In fact any url i know should be there from the test site is now page not found!
What could be causing this? I initially thought it might be clean urls but then the normal structure (i.e. ?q=admin) should work in my experience. I've also tried removing .htaccess and this changed nothing.
Be very grateful for ANY help you guys can give on this as time is short! :-(
Comments
Try to empty "cache" tables
Try to empty "cache" tables in your database. For me that works with the same problem.
Jan Polzer, Drupal & Symfony developer
Thanks!
That did the job! Much thanks m8, I was freaking out a bit there! =D
Also check if your URL's look
Just in case someone is having the same problem:
First off make sure you have a backup of your database, if you do not already have one.
Check if your URL's look like '/taxonomy/term/' without the 'yourdomain.com/?q=' or 'yourdomain.com/subfolder/?q='. So for example like 'yourdomain.com/taxonomy/term' or 'yourdomain.com/subfolder/taxonomy/term'. Which means Clean 'URL's are turned on. Another example would be '/node/' instead of '?q=node/'.
You can turn off Clean URL's in this case by going to the 'variable' table, and in the 'name' column look for 'clean_url', and the 'value' column change 's:1:"1";' to s:1:"0";
After which Clean URL's were turned off, and navigation was possible again.
Do check the cache post mentioned above, as you might have to clear that as well.
More clarification...
That sounds great... but I am a newbie with this. Could you please tell me how to clear the cache? Is it possible to do that via the website instead of the database, just prior to backing up?
Using phpmyadmin or the
Using phpmyadmin or the like... truncate all your tables that start with cache_
Or use http://drupal.org/project/drush (which will change your drupal life) and the from the command line type "drush cc"
Alex Pott
Also if you use
Also if you use http://drupal.org/project/backup_migrate to produce the backup it automatically will not include data that you don't need in your backup - which includes the data in the cache tables...
Alex Pott
Thank you for your reply!!
Should I just save it to my server if I use the back up and migrate module? Also, if I use drush... can I use the sql-sync command to move my site content from one website to another?