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
Clean URLs?
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.
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
Thanks for your reply. I do
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.
Clean URL
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 -M2. 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.
Change the line within /var/www/
AllowOverride None
to :
AllowOverride All
So, it shall look something like that:
4. Restart Apache:
sudo /etc/init.d/apache2 restart5. 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
Clean URL
-
Clean URL
Uf, server is a bit loaded !
Got 3 times same comment.