Hello All,

We are Migrating to a new host, our site is running on Drupal 6, we are attempting to work the bugs out before going live on the new host.

We are getting a 404 Error on the Front Page (Our Front Page has its own View, though all but one of our other views work). We are told its because Index.php is not calling up the right Path. We haven't been able to find any help in how to correct this.

New Host points: /htdocs/index.php

We need it point: /home/username/public_html/index.php

If anyone can help we would be very grateful!

Kind Regards,

Oli
Weavolution

Comments

duckzland’s picture

check your .htaccess file, is it pointing to the right path?.

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

weavolution’s picture

Where would this be in the .htaccess file? Every time I change the RewriteBase it breaks the whole site, it goes back to giving a 500 error on every page.
Thanks

john_b’s picture

1. Read documentation on migrating a site (on this site).
2. At least, clear caches after move.
3. Generally, leave RewriteBase alone.
4. Put all your Drupal files in /home/username/public_html.

If you have followed documentation (or if you are in too much hurry for that, at least cleared all caches), your site will work.

I am assuming your host knows what they are doing with Drupal. Some server setups do not work with Drupal (maddeningly a security improvement in Virtualmin has stopped it working properly). But server level problems can be read from your Apache error log by yourself (or, if they are any good, your hosting company: though many hosts are useless with Drupal and just make excuses, so it best to hire a real Drupal specialist host if you value your time and sanity). If your host has many Drupal sites working on the same setup, you should be OK.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

weavolution’s picture

I searched for documentation on migrating the site on Drupal.org, but didn't find any. Would you mind providing a link?
The new host is using PHP 5.3.22 we are running Drupal 6.28
After flushing the site cache our new hosts error log throws

[Sat May 18 06:43:34 2013] [error] [client 174.77.92.170] SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (501) of file "/home/weavol5/public_html/index.php"

When attempting to access the front page. Any further help would be greatly appreciated.

john_b’s picture

Not easy to find with search, you can find the docs by following links from Documentation tab above . http://drupal.org/node/776864

Looks like a problem with ownership of files on a cpanel server http://forums.webhosting.uk.com/cpanel-shared-hosting/8006-softexception... which is preventing SuExec from working correctly.

As far as I am concerned it is up to the hosting company to get this right because you may need to change ownership of folder and may not have access to do so unless you have root access to your server. Granting permissions to the group may fix it. (ie set most directories to 775). I have also seen a user - permission mismatch when running a server using SuExec where the permissions seem to have got inexplicably corrupted. I fixed it by recreating the user.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

weavolution’s picture

Hmm I tried the recommended permissions, but it still doesn't work. I'm having the site migration team look at it again. I think the best tactic maybe to put the site in maintenance mode turn off clean urls and use the back up and migrate module and try again.