Hello Drupal users,

i'm using drupal for half an year and all is OK, until i needed to move my whole site. I can't find if there is solution here, i still haven't found, maybe because of my poor english.

So, i tried to copy /var/www/localhost/myweb to another linux, i moved my whole MySQL database via PhpMyAdmin and finally i changed /sites/default/settings.php. But after runing on newer computer, i got only many errors. I don't have exactly lines of errors here, but is there any general howto how to move my web? First i though i have bad configuration, but new instalation of Drupal was working great, so the problem is only in some config, but which one?

I'm using Drupal 4.6.3 and i only need to "move" a copy of my site, work on it, than move it back.

Thanks for any help, Stanley

Comments

budda’s picture

I've never had any problems moving from dev to live web servers.
The only real critical settings are in your default/settings.php file.

Without mentioning what kind of errors you are getting (PHP, File permissions, mySQL) I don't think anybody can really offer more specific help.

--
www.bargainspy.co.uk

cel4145’s picture

The only time I've ever had problems moving a site from one server to another was because of server configuration problems, not Drupal. You might find it easier to do a fresh install of Drupal core in the new location first to determine if their are any server configuration problems.

vedix’s picture

First i tried whole new instalation to determine some problems, there were none. Than i moved existing one and i had only problems.

Now, when i think about it, maybe i set bad rights, i will check again, i needed to know, there are no basic problems to move. Drupal developers are doing great job!

Thanks to all, i will check again, Stanley

cel4145’s picture

provide detailed information on the errors you are receiving. someone can probably help out.

vedix’s picture

Hello, i tried to manage file rights, but still no progress. New drupal installation works great, but the moved not. Here is some errors i get:

warning: array_keys(): The first argument should be an array in /var/www/localhost/htdocs/zat/includes/menu.inc on line 916.

warning: Wrong parameter count for min() in /var/www/localhost/htdocs/zat/includes/menu.inc on line 916.

warning: array_key_exists(): The second argument should be either an array or an object in /var/www/localhost/htdocs/zat/includes/menu.inc on line 331.

warning: array_key_exists(): The second argument should be either an array or an object in /var/www/localhost/htdocs/zat/includes/menu.inc on line 331.

warning: array_key_exists(): The second argument should be either an array or an object in /var/www/localhost/htdocs/zat/includes/menu.inc on line 334.

warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/zat/includes/common.inc:384) in /var/www/localhost/htdocs/zat/includes/common.inc on line 204.

warning: array_keys(): The first argument should be an array in /var/www/localhost/htdocs/zat/includes/menu.inc on line 916.

I don't know what is wrong, but phpMyAdmin works OK and whole PHP is interpreted by Apache2 very well.

Thanks for any help, i'm still searching, Stanley

vedix’s picture

Hello,

finally i found something, i deleted whole TABLE named CACHE and web works!!! Looks great, only this table must be deleted, i write it, to let know all users with the same problem.

Now i have other, but i will make separate thread, Stanley

liquidcms’s picture

to start with ... is it safe to say that vedix meant delete the entries in the CACHE table; not delete the table itself.

pretty sure Drupal won't run at all if table is missing.

so i deleted cache, modified default/setting.php and i can see my default site.

but when i do the same to my 2nd site (of mutlisite config) and go to URL for 2nd site i get directed to default site.

and i am pretty sure that Apache is set up right because this site was working prior to my "move"

my move is
- checkout clean from my CVS server to my web server
- copy entire DB over to server

- then modify settings.php

but... now busted.

ben finklea’s picture

It seems you may have solved your problem...but it didn't solve mine! So, I'm posting this in case anyone else out there is searching for a solution.

My problem was that the front page was showing up just fine but if I clicked on any nodes then I got a "This page does not exist..." error. It turns out that my ftp software was configured not to show hidden files and so the .htaccess file was left on the dev site and not copied over to the live site.

The .htaccess file is VERY important! It resides at the root level of your drupal installation. In your ftp program there is probably an option. Mine is called "list options" and has a blank field. I put -a in that field and it showed me all the invisible files. I copied it over and boom. Fixed the problem.

If this solved your problem then please shoot me a line. I know very few people in the drupal community and I'd like to get plugged in.

Good luck,

--Ben Finklea

SpryDev Web Development, Outsourcing & SEO

--Ben Finklea, CEO
Volacci