How do I make my website go live? 

Post By:user_13374 | Reply

 

Hi, folks.  My website’s ready to go live.  In the backend -> system -> configuration -> web, I’ve changed the secure and unsecure URLs.  What directory/files do I move where (Please see attached picture)?  Is there anything else to do to make the site live?  Also, I’ve made a back-up of my products in a .csv file and have both back-ups made via Magento and my web host.  Do I need to make any other back-ups?  Many thanks

Image Attachments
Capture.JPGbzdfbdzfb.JPG
user_13374Wed, 07 Nov 2012

 

Hi, MagikTejas.  Many thanks for your reply.

What I need to find out is what files/folders do I move to where to make my website go live?  (Please see the picture of my directory).  Tthe finished website’s folders and files are located in www/test/magento.

user_2016Tue, 06 Nov 2012

 

For moving magento from dev to live server you need to upload your magento directory to live server change the db configuration from "app/etc/local.xml" to connect to live database.

Then make a backup of entire Magento database with all the default phpMyAdmin options as .sql file.
Let’s suppose your development site is located at http://devsite.com/ and your live site is located at http://livesite.com.

So the second step for you would be to open the backup file you created at first step and do Search/Replace All from “devsite.com” to “livesite.com”.

Magento stores complete url paths inside the database. Therefore you’ll end up with database full of url paths.

If you try to import the file with changes done as above then it may not imported & shows some foreign key issue. To fix this

Place following lines of SQL commands on the top of the .sql file

SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;
SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS;
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION;
SET NAMES utf8;
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKSUNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKSFOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODESQL_MODE='NO_AUTO_VALUE_ON_ZERO';
SET @OLD_SQL_NOTES=@@SQL_NOTESSQL_NOTES=0;

Place following lines of SQL commands at the end of the .sql file

SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT;
SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS;
SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION;
SET SQL_NOTES=@OLD_SQL_NOTES;

Save the .sql file & import it into the live DB & you are done.

`Reply Or Comment!
Please LogIn to Reply!