I've seen several manuals on this subjects, it doesn't look hard at all.
Still, I have problems of restoring/migrating drupal settings from one server to another.
(in this case from hosting server to my local server)
The version is 6.14

1. I made backup/restore of mysql database
2. granted all privileges to user on another server.
3. copied all content of the site on another server. (including themes, modules)
5. changed settings.php and gave the parameters on user, dbname, password, server name.
4. Gave permissions to user www-data (on Ubuntu server)

The database looks fine to me, I can even find the content of my texts within table node_revision.
The main page is displayed properly, including the icon.
When I press anything from the link got error 404
I can't login using http://localhost/drupal/user - again error 404

I tried to make a fresh install of Drupal, and restore of database afterwards, then copy of themes, module - same situation.

Maybe is problem with a privileges, or different settings of Apache ?

Comments

ezrawolfe’s picture

Sounds like this might be a problem with clean URLs. Were you using clean URLS on the old server? If so, do you have mod_rewrite enabled on the new server?

Here is info on how to turn them off to (confirm the problem). Run the following on your drupal database.

UPDATE variable SET value = 's:1:"0";' WHERE name = 'clean_url';
DELETE FROM cache;

from

http://drupal.org/node/5590

And here is info on how to enable mod_rewrite for clean URLs (if that's the problem): http://drupal.org/node/15365

resolv_25’s picture

Thanks for your reply.
I do have a clean URL enabled on the old server,
and most probably mod_rewrite isn't enabled on my Ubuntu server, as it is not loaded by default.

Today evening will check this out and post the result.

resolv_25’s picture

Yep, ezrawolfe - thanks a lot for your help !
Such a knowers are valuable!

It was a problem with a clean URL, or mod_rewrite.
For Ubuntu Linux users, this is one way to enable rewrite_module.

1. Check which modules are enabled, from command line:
apache2ctl -M
2. Apache on Ubuntu has a 2 directories within /etc/apache2/
First is mods_enabled(showing the same as command apache2ctl -M),
second is mods_available (showing available modules)
So, copy module rewrite.load to dir. mods_enabled
sudo cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
3.

sudo gedit /etc/apache2/sites-enabled/000-default 

Change the line within /var/www/
AllowOverride None
to :
AllowOverride All
So, it shall look something like that:

DocumentRoot /var/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride All
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

4. Restart Apache:
sudo /etc/init.d/apache2 restart
5. Voila, that's it !

BTW, I'm new on Drupal, until now, like it very much.
Not so hard to use, yet very flexible.
All the best,
Frank

resolv_25’s picture

-

resolv_25’s picture

Uf, server is a bit loaded !
Got 3 times same comment.