1

I'm looking for a way to move an installation from a development server to live server.

Generally I have SSH access however this time I don't.

I know theres allot of information on how to do it. Just want to see which is best.

4
  • 3
    You have magento on the dev without ssh but you have ssh for the live server ? Do you have ftp access to dev server ? Don't you use a SVN/GIT ?
    – dagfr
    Commented Aug 1, 2013 at 12:22
  • Telling us what you have access to, would be simpler for us to help you. There are lots of ways to move a dev installation to a live one. IMO, source control is easiest, but we need to know what kind of access you have.
    – Dan
    Commented Aug 1, 2013 at 12:48
  • @dagfr Thanks for the replies. I have CPanel, FTP. I dont have SSH on my live server either.
    – Wessel
    Commented Aug 1, 2013 at 14:09
  • Yuck on the SSH non-access. Keep an eye on this being an indicator as to how ready they really are to run Magento for you.. Commented Aug 1, 2013 at 22:00

1 Answer 1

4

As many of the comments suggest, this isn't a good sign that your host is going to play nicely with Magento!

Using FTP directly on the several thousand files that make up Magento sucks and is pretty unreliable, so...

If you really can't wrangle SSH out of them and you can't changes hosts then this is what I'd do:

  • On the development machine export a gzipped mysql dump of the database.

  • In Cpanel create a database and user, then go into phpMyAdmin and import your dump file into it (if the file is too large to import you'll just have to ask your host to manually import the db for you, you could split it up into different tables if you had to, but I bet you can raise a support ticket with them for a db import).

  • Back on your development machine empty out the var/cache, var/log, var/session folders and then compress the entire site into an archive file. If you have heaps of images and want to get the file size down you can also empty out the image cache in media/catalog/product/cache and just let the server rebuild them as required.

  • FTP that up to somewhere you control in your cpanel home directory (not the public_html folder).

  • With Cpanel's filemanager you can use it's unzip function to extract the entire thing into the public_html folder.

  • Finally push up via FTP the correct version of local.xml for the production database.

If you've been using a different base_url for your local development environment you'll also need to correct that in the core_config table via phpMyadmin.

1
  • Thanks very much for your reply. I managed to do the move last night using a similar method to the one you suggested. Site is up and running. Thanks again!
    – Wessel
    Commented Aug 2, 2013 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.