WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] best practice for developing locally, then moving to ftp server (12 posts)

  1. serons
    Member
    Posted 2 years ago #

    Hi, I'm new to WordPress and CMS in general. I intend to develop a website locally and export to an ftp server. I don't have any other access to the web server. I have plans for developing separate sites for different clients so a multi-site WP set-up could be beneficial.

    Locally I'm in a Linux environment (gentoo) with an nginx server and I use Eclipse for coding, although I haven't used any PHP modules in Eclipse before.

    What would be a good work flow in order to minimise any modifications to files/database before uploading code and database? And what would such, if any, modifications be?

    I imagine I'm not the only one who envision or use such a set-up, but I haven't been able to find any guides for a good work-flow.

  2. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    Good question. I am hoping someone will give a good answer.
    I have only created a multisite online not locally.

    A side note:
    A plugin to easily upload from local to live is the Duplicator.
    http://wordpress.org/extend/plugins/duplicator/

  3. serons
    Member
    Posted 2 years ago #

    I used Duplicator which you suggested and it seems to work fine.

  4. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    Hi Serons

    I have also created a video tutorial on how to use Duplicator:
    http://www.youtube.com/watch?v=2EhX55-507E

    Have a great weekend!

  5. kamilo.cervantes
    Member
    Posted 2 years ago #

    Hi all,
    You can also do this:

    1. Work in local adding posts themes and anything else
    2. Backup of wordpress database (generate sql script)
    3. Uploading wordpress local installation folder
    4. Creating remote database and running sql script (will load everything)
    5. Gotta change url of site at options database table (oops!)
    6. When logging in as admin gotta change url site in general settings

    And then it will work ok... seems a lot of work but ... i use to do it like this and it's ok :D

  6. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    This is how I do it:
    Work in local through MAMP, XAMPP etc.
    A video tutorial on using MAMP:
    http://www.youtube.com/watch?v=3HJnV9KNIXc&list=PLEF62840961F8DF50&feature=view_all

    Build the site with everything you need.
    Include the plugin Duplicator.
    In Duplicator: Backup your site, and the install(er) file.

    Go online to your hosting provider in the CPanel, or whichever panel you have access to through your hosting provider create a database, a user and password for the user.
    Upload the backup file and the installer file.
    Go to the domain and add http://www.yourdomainname.com/installer.php to install the local WordPress backup with everything it includes.
    Video tutorial: http://www.youtube.com/watch?v=2EhX55-507E&feature=BFa&list=PLD3AB608F62AC973C

    Have a great day!

  7. nicksvicks
    Member
    Posted 2 years ago #

    does duplicator works with wp 3.4.1 ??

  8. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    Hey niksvicks

    I just tested WordPress 3.4.1. Backed up a site. Through MAMP and created a new database and installed the existing online site offline with the help of Duplicator. Everything looked in order.

    Bottom line - it should work fine.

  9. nicksvicks
    Member
    Posted 2 years ago #

    okay that's nice :)

    also i would like to learn how to transfer wp site from one server to another (cpanel to cpanel: old cpanel is having 7 sites using addon domain and now want to move it to another server with seperate cpanels)

  10. nicksvicks
    Member
    Posted 2 years ago #

    Tried one method :
    I am doing following for it
    1.copy files from old cpanel to new one as it is using cuteFTP
    2. import DB thru phpmyadmin

    it was working fine yesterday but now showing error establishing databse connection .

    So i will try duplicator now

  11. Paal Joachim Romdahl
    Member
    Posted 2 years ago #

    Duplicator just backs up/copies the full wordpress site. It can then be copied to another online site or offline, or just kept as a backup. One will need to create a new database for the new site though. Either through Cpanel/whichever hosting provider panel one has access to or if making an offline site through MAMP, XAMP etc.

    I use Duplicator because it makes copying or moving a site fairly easy process. It is the easiest way that I know of. The developer is also very open for feedback and comments.

  12. serons
    Member
    Posted 1 year ago #

    I while ago I moved my developing environment to reside all locally on my MacBook (MEMP Mac/nginx). For some still unknown reason Duplicator silently fails at the database backup stage. Everything else in this setup works, including other plug-ins. I've been in contact with the developer but so far we've found no solution.

    I found another plug-in that works for me and that's BackupBuddy by iThemes. It's considerably more sophisticated but is quite pricey too. I don't mean to advertise for it, but just to say that in my case that's what I use since Duplicator doesn't work for me in this setup.

Topic Closed

This topic has been closed to new replies.

About this Topic