HI all.

I have a working drupal 5.1 site at www.site1.com, and I want to transfer it to another site at www.site2.com but cant seem to do it!

I copied across all the files, exported my db from site and imported it into site2, then modified my settings.php with the new username/password but it didnt work! I just get a blank white page. I also tried just installing drupal on site2 from scratch (which worked) and then I want to import my data from site1, should I drop the database on site2 and just import from scratch? Is that the best way to transfer a site?

Comments

stevenpatz’s picture

What does you error logs say? A white screen could be that you've run out of memory.

high1memo’s picture

Yep, you were right, it was an out of memory problem. memory_limit was set to 8MB. I've posted a seperate question about that at
http://drupal.org/node/132481

Rob_Feature’s picture

It sounds to me like there might be a missing file....possibly the .htaccess file.

Are either of these true: You're using a macintosh and/or you had clean URLs turned on in the old site? When moving directories on a Mac it's easy to forget to move the .htacess file because it's hidden in the finder...this would cause your clean urls to stop working and would give you a blank page.

Those are my initial thoughts without knowing your situation...

-Bob Christenson
Owner/Designer, Mustardseed Media, Inc.
MustardseedMedia.com

/**
  * Bob Christenson
  * Mustardseed Media
  * http://mustardseedmedia.com
  */
high1memo’s picture

Hi, and thanks for the tips.

To copy the files I downloaded all of the files from host1 via ftp, and uploaded them to host2 via ftp and I'm sure the .htaccess did get copied, and I was using clean URLS on host1.

Also how can I check my logs? normally I just goto mysite/admin and its there, but when I got mysite/admin now I get a 404.

A few other things I can mention that may be helpful:
- This drupal site lives in a subfolder. i.e. www.site1.com is a NONdrupal site. but www.site1.com/blufo is drupal-driven (and works fine).
and now I want to transfer the drupal site to www.site2.com/blufo (www.site2.com is a NONdrupal-driven site).
- If I put a wrong username in settings.php i DO get the 'cannot connect to database' error message when I goto www.site2.com/blufo. But if I put correct username in settings.php www.site2.com/blufo returns a blank white page
- if I visit www.site2.com/blufo/node I get a error 404

I know there are so many paramters that could go wrong, but any suggestions are welcome!!

i also just want to confirm the normal and best way to do what I am trying to do, is it correct what I did?
1. download all files from site1 and export full db
2. modify settings.php with site2 username and password (anything else needs to be changed?)
3. upload all files to site2, create db and import data

Is that all that needs to be done? Or do i need to install drupal on site2 first and let it run its own initialization etc?

high1memo’s picture

I found out that the original mysql4 server version is 4.0.27 and the mysql server on the new host is 4.1.18. So I'm exporting from mysql4 and importing that structure and data in mysql4.1 - could that create problems?