Elxis CMS Forum
Support => General => Topic started by: ROUBOS on August 06, 2012, 14:59:09
-
Hi all,
I want to backup a site and move it to a new hosting server.
So what do I do?
Do I:
backup the database,
save the template,
then import the database,
install elxis (latest version, the site currently has an older version),
and install the template again
????
-
Hello ROUBOS,
If you have cpanel you can use the file manager to compress all the files in your public_html area into a zip.
Yes, export the sql using phpadmin or using the elxis database manager complete sql backup.
Download your zip to your local system and then upload to your new host.
Using cpanel at the new host, you can use the file manager to upload the zip into your public_html area and then uncompress (unzip).
Create the same database name and user then use phpadmin to import your sql file.
Basically that's it.
Regarding your comment about tophost: I have used them but only for Greek domain names and I have not had a problem.
I do not use them for hosting.
-
OK so I got into phpmyadmin and did an export of the database (small file). Hope I did it right. Check the screenshots of my export options if I did it right.
And since I have no access to SHELL, or a backup utility in the control panel, I used FTP to download the entire httpdocs/ folder.
Should this cover me?
-
The second image looks correct.
-
so now since I got the backup, I just upload the files to the new hosting space, use phpmyadmin to import the database, then make changes to config php file and we're set?
this is a very old elxis version. How about if I install the latest elxis version and just upload the old template. will this work too?
-
Not really. There were database changes between some versions. You would have to load it the way it is and then upgrade version by version.
-
cool thanks. will do it soon and let you know what happened or if I have more issues...
-
when I import the database, do I create a database and import the tables from the backup, or does the import create the database again ?
-
You have to create the database and add a user to access it through cpanel.
Don't forget to use the same database name and user name and password.
-
Best working solution to this problem: Backup the *whole* of your elxis site. That leaves out the database(s). sqldump your database(s), then import them in your new installation.
If you don't stick to the rules though, you *can* just copy the directory with the database(s), then just fix the access rights in your new installation, but there are cases where this might not work (hadn't had any problems till now, but I am the server owner...). As a word of caution, in order to do such a database directory copy, you better have full access to the new server. For example, you might have to put them in "/var/lib/mysql", and you'll only be able if you've server admin rights (like root, for example).
-
ok, uploaded all the files to the new server,
created the database and the user using exactly the same names and passwords,
and now I'm waiting till the nameservers are changed so that the domain names point to the new server.
I guess I can change the ip in the configuration.php file where the domain name is if I want to access the site using the ip address.
using phpmyadmin I imported the database tables from the backup I've made.
So far I think I'm on the right track right?
-
When you call the site, it may not work at first. You might even have to call the admin page using index.php\administrator.
Log in then go to tools, clean cache and it should work normally assuming that you did everything correctly.
-
at the moment I'm getting a 404 not found error. when I use the http://IP/index.php.
But I have not altered the config file.
Waiting for the name servers to point to the new hosting space
-
they say they've fixed the nameservers, so how do I know if the site now is working and not pointing to the old server?
-
Try this: https://grweb.ics.forth.gr/ (https://grweb.ics.forth.gr/) and check whois for gr.
-
ok,
managed to check my site on the new hosting space.
here's the error.. must be a connection to the database problem
-
According to MySql, you are using the ip instead of "localhost" as the server.
Change that in your configuration file.
http://forums.mysql.com/read.php?52,151255,156258#msg-156258 (http://forums.mysql.com/read.php?52,151255,156258#msg-156258)
-
ok I think I fixed it. I also changed the hosts file on my pc on order to make sure that the url was pointing to the new server ip and not the old one. I found that deleting the history from the browser was not enough. I forced it to look at the ip I wanted this way.
Everything looks good so far... :)
Now need to see when they disable the previous hosting. At the moment they are both live. It takes a few hours for the nameservers to kick in I think.
-
You never have to do anything with your local hosts file. Normally it takes up to 24 hours for a dns update.
If you are not seeing the site using the domain name then you should simply wait until the domain is working properly.
-
Well, all went well and everything is as it should be up and running.
Thank you for your help. :) It was simple enough in the end. :)
thanks again
-
Glad to hear it.
You are welcome.