Dear all,
I'm having some issue in moving my Drupal 6.x website from a Windows machine to one with Ubuntu 10.04.
After installing apache2 mysql and php5 (following a few guide I've found on the web),
I could copy the drupal files from the windows machine to the /var/www directory of the Ubuntu one.
I imported the database in mysql. Also I enabled the rewrite module using "a2enmol rewrite" and restarted apache.
And think I made things kind of right, in fact if I go to http://localhost I could see the homepage saying that the site is off-line.
I tried to go to http://localhost/user but it didn't work, but I could log-in going to http://localhost/?q=user Also, after the login I can only access
the homepage, for all the other pages like http://localhost/admin I get a 404 error "The requested URL /admin was not found on this server."
(this makes me thing the rewrite module is not working or there is something wrong with my configuration, or maybe with my permission?).
I know that probably I should have made some change to some apache and settings.php file but I couldn't
really get which one I have to modify and where they're (In the /etc/apache2 dir there are few directories and few configuration files, but I don't know which one is the on I should get my hands at work on, same for php.ini and settings.php).
May you please help me in understanding what (and where) I have to modify these file?
Is there also some update script I have to run to set directories well in mysql database for the new website?
Thanks a lot in advance for your help, any suggestion and advice is more than welcome.
If I can get it to work, I'd be more than glad to prepare a tutorial with all the procedure, so that
people have a guideline.
Cheers, -Luca
Comments
Sounds like clean URLs are not working
I had the same problem as you described.
Here's what was wrong:
When I exported my drupal SQL database I still had the option for clean URLs enabled.
So when I loaded my site onto another computer's localhost the front page worked, but any other links didn't work. This is because the drupal database was still set to work with clean URLs, but my new localhost server wasn't setup to have clean URLs enabled.
The fix:
Go back to your original computer (your windows machine). Turn off clean URLs, and THEN export your database.
You will be able to access your site on your Ubuntu computer in full.
Then, once you have Clean URLs working on your Ubuntu localhost you can enable that option again in drupal.
By the way, for me to get clean URLs working with Ubuntu 10.04, I had to enable the modrewrite module as your described above. I also had to create a .htaccess file and put in in my Drupal main directory (probably /var/www/drupal for you).
Here are the contents of my .htaccess file. I got it from someone on Drupal.org
Hope that helps.