July 26, 201115 yr Hello, I have a website and database (ecommerce site) on a server. I need to move the whole lot to a new server. Can anyone guide me on this? I have the access to the ftp, and have downloaded the entire public_html folder to my computer. I can access the database via phpmyadmin, and can export as SQL, is this the option I want? How would I then link up the site and db on new server? The database contains over 70 items.... Any ideas on this? Thanks
July 26, 201115 yr It all depends on which software you are using for your eCommerce application. Different application vary widely.
July 26, 201115 yr I've not done it for an ecommerce site, but I have done it for a php forum I backed up the database as an sql text file - the file is readable in a text editor, so you can see that everything has been saved Create your new database on the new server - make sure you also create the same users and privileges Restore your database by running your sql code in your sql text file in the sql command box Hopefully that should be it Being a new server, you can give it a try without worrying about upsetting anything
July 26, 201115 yr Author Ok, Ive pulled the entire public_html file from the link you see above. Ive exported the database, and imported it into a new db on my server. Ive gone into the config.inc.php and added host, user, password etc and am getting: Warning: include() [function.include]: Filename cannot be empty in /home/w23suss/public_html/smartstart/index.php on line 157 Warning: include() [function.include]: Filename cannot be empty in /home/w23suss/public_html/smartstart/index.php on line 157 Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/w23suss/public_html/smartstart/index.php on line 157
July 26, 201115 yr Author Any ideas anyone? Or anyone with the ability to do this? if so, what would the cost be? The new site and db is on a web developers server. It needs to be put on to new hosting, to overwrite the existing site.... Thanks
July 26, 201115 yr You should move the contents of the HTML folder, but not the folder itself. AFAIK.
July 27, 201115 yr Hey, It looks like you copied the public_html folder into a folder on ur system called smartstart. Then you copied the "folder" to the www (or public_html) folder of the new server/hosting space. If so, you had to copy the contents of the folder to the www folder and not the folder itself. Hope this helps.
Create an account or sign in to comment