Recently I migrated my drupal website from my development PC (Windows 7) to a LINUX as a test before deployment. Apparently, there is a problem during migration. What I did was:

1. Get the dumpfile from the development drupal database for the website
2. Copy the same folder to the LINUX terminal.
3. Construct the same database using the dumpfile. The amount of tables generated is same as the one in development PC.
4. Replace the settings.ini in the drupal folder in LINUX terminal.
5. Run the drupal installation setup again, with the flag set to TRUE in the settings.ini

The website initial page runs good..but when I click, every link pointing to 404. This is so weird.. i remembered doing the same thing before and it was fine. I tried to run the update.php but the screen goes white and stuck there.

What should I do? Is there a guide to follow on migration? Why this occurs?

Thanks,
Haikalnash

Comments

Anonymous’s picture

It sounds like you don't have clean urls enabled which requires apache mod_rewrite to be enabled.
Also, no need to run the install script again, only need to run once when creating a new site.

haikalnashuha’s picture

how can I do so? Since in the new terminal I cannot access the administrator module, how can i set clean urls?
Where can i set the apache mod_rewrite?

Thanks in advance.

Anonymous’s picture

you can access the admin page by putting /?q=admin at the end of your url

If you are using Ubuntu, this page might be helpful;
https://help.ubuntu.com/community/Drupal

haikalnashuha’s picture

No luck sir, its 404 when I tried the /?q=admin. I tried migrating to other windows server that run on XAMPP , and it was fine. I wonder whats wrong..