Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moving a Drupal Site

Posted on 2013-05-16
8
Medium Priority
?
384 Views
Last Modified: 2013-05-17
Hello,

Following the instructions I obtained on EE in Feb., I was ALMOST able to move a Drupal site from one host to another, seamlessly,

The only thing missing on the new sire is the images that I had uploaded from other sources to be included in blocks in my site.

On the old site, the image files were all in sites/default/files/.

I looked in the new site, they are there on the new site too in the same place.

Why don't they show up?

4 are on the main page:

Old site: rkassoc.org/amc
New Site: http://amcindustries.com.previewdns.com/
0
Comment
Question by:Richard Korts
  • 3
  • 3
  • 2
8 Comments
 
LVL 13

Accepted Solution

by:
Aaron Feledy earned 1400 total points
ID: 39173394
Your image paths point to the old amc path (/amc/sites/default/files). You'll need to update your paths to remove that amc portion.
0
 

Author Comment

by:Richard Korts
ID: 39173401
Gottcha.

I was working on something else & I thought of that.

I'll be FLABBERGASTED if that's all; that would mean moving the site was as easy as you (& others) said it would be.
0
 
LVL 17

Assisted Solution

by:nanharbison
nanharbison earned 600 total points
ID: 39174250
You can use the Backup and migrate module:
http://drupal.org/project/backup_migrate

The module has to be installed on the old and the new site. Back up the old site and then use that DB backup in the module on the new site to migrate the files. Then all the images will be found.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 17

Expert Comment

by:nanharbison
ID: 39174253
The new site looks great by the way!
0
 

Author Comment

by:Richard Korts
ID: 39174770
I did not know how to use the Backup / Migrate to upload to new.

So I unzipped the gz file (it was all sql) & imported the sql into my new database, It created all the tables, etc.

But as Arrow_1 pointed out, on the old host, there is an amc folder at the top level; no such folder at the new because when live I want it at the root.

I can fix the path to the images; there are (currently) only 3 effected blocks.

Thanks
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39175023
For future reference, to use the back up and migrate module, you go to Conguration-> Back Up and Migrate in the upper right side of the page, click on the restore tab and upload the database created from going to the same page and making a backup.
0
 

Author Comment

by:Richard Korts
ID: 39175073
Thanks, Nan.

I didn't notice that.
0
 
LVL 13

Expert Comment

by:Aaron Feledy
ID: 39175586
In this particular case, the backup and migrate module isn't the issue. It's just the manually created links that need to be manually updated.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question