[support] How portable are drupal web sites?

Cog Rusty cog.rusty at gmail.com
Sat Oct 20 20:33:58 UTC 2007


In addition to what Larry said, avoid entering full URL links
containing the domain name for images/files in the content (otherwise
you may need to search/replace them when you move).



On 10/20/07, Larry Garfield <larry at garfieldtech.com> wrote:
> 1) Disable clean URLs, clear the cache, set logs to a short lifetime, then run
> cron to clear old ones.  (All but the first one there is just to reduce the
> size of the database dump.
>
> 2) mysqldump oldserver > mydatabase.sql
>
> 3) mysql newserver < mydatabase.sql
>
> 4) Copy entire Drupal directory from old server to new server, being careful
> to get the .htaccess file with it.
>
> 5) Edit settings.php to specify the new database login info.
>
> 6) Enable Clean URLs again.
>
> 7) There is no step 7. :-)
>
> (I recommend disabling clean URLs in case there's an issue on the new server.
> You don't want all your links to be broken.)
>
> Really, Drupal is an extremely portable system.  I do the above process to
> move from development servers to live servers on a regular basis.  98% of the
> time is spent waiting for files to copy. :-)
>
> On Friday 19 October 2007, Roy Smith wrote:
> > As an old-time unix hacker, I know my way around the inside of a web
> > server pretty well, but right now I'm in "I want a tool not a hobby"
> > mode and need to find a web hosting service for a club I belong to.
> > There seem to be plenty of places out there offering amazing amounts
> > disk/bandwidth/etc for amazingly low prices, and it's not clear how
> > to determine which are fly-by-night and which are reliable.
> >
> > So, the question is, if I go with a hosting service and later decide
> > to switch to a different provider, how hard is it to pick up my
> > drupal-based site and move it to another host?  Is it as simple as
> > finding another place that offers LAMP services, dumping the
> > database, and restoring it onto the new server?  And, of course,
> > changing the DNS registration.
> >
> > --
> > roy at panix.com
>
>
> --
> Larry Garfield                  AIM: LOLG42
> larry at garfieldtech.com          ICQ: 6817012
>
> "If nature has made any one thing less susceptible than all others of
> exclusive property, it is the action of the thinking power called an idea,
> which an individual may exclusively possess as long as he keeps it to
> himself; but the moment it is divulged, it forces itself into the possession
> of every one, and the receiver cannot dispossess himself of it."  -- Thomas
> Jefferson
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list