Quote:
Originally Posted by CPUGEEK
What is the best way to move a ecommerce website with a SSL to a VPS server. Does anybody know of any online instructions to move the website smoothly.
Anybody with some advice please respond. The host company wants to charge $200
|
It depends on your configuration.
All of my instructions below assume you have at least shell access to the machine. That means you can ssh to the server , login, and get a bash/sh prompt to run interactive commands..
The first step would be to configure the target machine with the same software as your current machine.
Make sure you have the right version of PHP/Perl, any perl modules, any PHP extensions, zend optimizer, etc.
Then you want to backup your database. The easiest route would be at shell level using mysqldump.
The arguments for mysqldump are:
mysqldump -u Username -p DBNAME > DBNAME.SQL
replace Username with your mysql username
replace DBNAME with your database name to backup
this will run mysqldump and redirect all output to DBNAME.SQL .
FTP / SFTP / whatever the file to your new machine.
After all that is done, you'll want to use tar to archive your web directory.
I don't know your file paths or what folder your webdir is in.
So if it's in /home/user/public_html ,
tar zcvf sitebackup.tgz /home/user/public_html
This will create a file sitebackup.tgz in the current directory of all the contents of /home/user/public_html..
Copy/Ftp/sftp that file to the new machine.
Now you'll also need to copy over your SSL Certificate, SSL Server key, Root Certificate/Certificate Authority bundle files.
The easiest way to find those is to check out your apache config.
Look for:
SSLCertificateFile /path/to/file/file.crt
SSLCertificateKeyFile /path/to/file/..
SSLCACertificateFile /path/to/file...
Copy those .
You might want to take this time to copy the apache configuration directives you have..
ahh fuck it, pay 200$