Hello,
I am currently working on about 10 websites. They are all hosted on one of my computers.
Here is my problem.
The machine that I am working on is not dedicated for websites. It is used widely for many other things. I have another machine that has much better equipment which was bought for the specific reason of hosting multiple websites.
Now the machine that I am currently working on is like this. It has Ubuntu server 8.04 with LAMP installed. It also has the latest GNOME installed.
The machine that I want to move it to has a dual boot installed. One is Ubuntu 8.04 LAMP Server without any GUI and the other is Windows XP Pro. (irrelevant).
How can I move all these sites over from one machine to the other? I don't think that just copying stuff over would work - and dealing with the databases, PHP, etc. is just over my head.
Could somebody please help me with this?
Any help is greatly appreciated...
Thanks in advance!
Comments
subscribing
Hey all,
I am actually interested in doing this too. I could really use this information - it is really critical for me.
t/y
R. Murphy
Begun moving over to a new computer.
Once again I am moving from a LAMP Ubuntu 8.04 Server LTS (Intel Xeon 2.0 GHz server) w/GNOME to a LAMP Ubuntu 8.04 Server LTS on another machine without GUI (Intel Xeon Dual-Processor 2.0 GHz server.)
Okay - so I have begun moving everything over to a new computer. This is what I have been doing, and it seems to be alright for the moment.
1) Make a copy of the "/var/www/sitename" folder and move it over to "/var/www/sitename" on the new machine.
2) Go to phpmyadmin on old machine and export (make a backup) of the database. This creates a databasename.sql file. Also using SQLyog via remote connection in Windows works.
3) Move databasename.sql file to new server machine. Go to phpmyadmin and "import". Or if it is a big to import via phpmyadmin GUI - then use the command line for MySQL and import it.
4) Users are not carried over - so you have to make a new user with full priveliges for each database.
5) Tested this - went to newly transferred websites and got these errors:
* warning: Invalid argument supplied for foreach() in /var/www/rma/includes/theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in /var/www/rma/includes/theme.inc on line 442.
* warning: Invalid argument supplied for foreach() in /var/www/rma/includes/theme.inc on line 435.
* warning: Invalid argument supplied for foreach() in /var/www/rma/includes/theme.inc on line 442.
I got some assistance and was told to load admin -> modules.
Went to admin -> and got this error.
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 669579 bytes) in /var/www/sitename/includes/database.mysql.inc on line 301
But I recognized this as hitting the reesource limits. I had increased the resources considerable from the default apache settings on the previous machine - so I did the same on the new machine.
After loading modules the foreach() problem went away. Now everything seems alright - but I get the feelin' that everything is just held together by spit & prayers.
So can anyone tell me if this process is correct? Did I do something wrong in my steps? Did I miss something? Are there any suggestions to make stuff better?
Thanks,
-root_of_roots
moving drupal websites to Ubuntu Hardy
I like to keep my users segregated, reduces mischief, create an account for each
Set the shell to /bin/false
Allow only ftp access,
for each user create public_html
for each site create site_name_subdirectory under public_html
install drupal core in each site directory
copy old "sites" directory preserve permissions and ownership
on 5.x copy old files directory - preserve permissions and ownership
use phpmyadmin to export old databases
use phpmyadmin to create the new empty databases with permissions for each user
import old databases
modify apache sites-available to point to the new sites
modify dns to point to the new machine for each site
login to the new site ->modules ->update.php
install drush, create a symbolic link to make execution easier
drush pm update in each sites/all/modules directory
most common problems are permissions