1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress locally

Discussion in 'Blogging' started by Breakdown, Sep 17, 2014.

  1. Breakdown

    Breakdown Newbie

    Joined:
    Apr 18, 2014
    Messages:
    39
    Likes Received:
    2
    hey guys,

    Thinking of starting a wordpress blog locally on my pc for testing,building it with threads,testing plugins and so on.

    My question is if i start everything locally,later on will i be able to transfer the complete site to an online host in order to make my webpage go live?
    When i say complete i mean everything from theme customisation to posts/threads etc.

    If yes,what would be the easiest way to do this?

    This local hosting and the backup plan would work on a raspberry pi or it's far better to install it on a more powerful windows/linux machine?

    The blog would involve writing tutorials.
     
  2. lord1027

    lord1027 Elite Member

    Joined:
    Sep 20, 2013
    Messages:
    3,174
    Likes Received:
    2,222
    My advice would be to get a linux VPS (I recommend DigitalOcean), install Wordpress on it (but don't add a domain yet, use your IP to connect to your webiste) and do whatever you want with it. When you think your website is ready, simply add a domain and change the WP configuration so it uses the domain, not the IP and that's it.
     
  3. psychodelic2

    psychodelic2 Junior Member

    Joined:
    Sep 29, 2011
    Messages:
    157
    Likes Received:
    82
    Home Page:
    yo

    go ahead with local dev
    u can then transfer all files and databases to any hosting.
    most hosting providers will also be able to assist you in a moving a website for the first time on each domain for free.

    a good laptop or PC with good specs should do fine. if u can play videos and surf the internet, ur pc is powerful enf to run wordpress

    all the best
     
  4. Ricky.Montana

    Ricky.Montana Regular Member

    Joined:
    May 17, 2013
    Messages:
    278
    Likes Received:
    112
    Hi Breakdown,

    The response is Yes. You can transfer your WordPress very easy.

    So, these will be the steps:
    -Make a backup of your website, or, copy the entire root to the new location;
    -Export your settings through WP Admin Dashboard- Tools - Export
    -Export your .SQL database through PHP Admin;
    -Go to your new hosting cPanel, and press " New Database". The name of the new DB will be, let's say "MYDATABASE". After that, make a new User for, let's say "MYUSERDB". Don't forget the password of the new user. After this, press "ADD USER TO DATABASE"->Make sure all privileges ( or something like that ) -> Check ALL BOXES from there, and click Save;
    -Go to WP-CONFIG.php, and edit the following settings:
    Database: Point it to the new database ( "MYDATABASE")
    User: Your new user ("MYUSERDB")
    Password: Your chosen password for ("MYUSERDB")
    Database Host: You can put just LOCALHOST there;

    VERY IMPORTANT: Don't delete the brackets ('MYUSERDATABASE' );

    -After you will update the WP-CONFIG.PHP, upload that file to your new hosting root ( In most cases, you will be asked to overwrite the old wp-config.php. Press Yes ).
    -After that, go to your new Hosting cPanel -> Php Admin -> (In the left corner, search for your new database -("MYDATABASE"). Click on it -> Import -> Import .SQL -> Search in your computer for the exported database from your old computer ( search in your "Downloads" folder, or in the place where your saved the database file.

    The site will be live. When you'll press "HOME" button, and it will redirect to the old website, please go to (Again ) the wp-config.php, and add these lines at the end of the file:

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    If you have questions, feel free to ask.
     
    • Thanks Thanks x 3
  5. Breakdown

    Breakdown Newbie

    Joined:
    Apr 18, 2014
    Messages:
    39
    Likes Received:
    2
    I will go with the local option.Specifically with the raspberry pi one since i don't own any other machine that i can leave on 24/7.Time to google a tutorial on how to install the web server on raspberry,Thanks guys for your replies!
     
  6. Loadzz

    Loadzz Regular Member

    Joined:
    Jun 28, 2014
    Messages:
    229
    Likes Received:
    32
    Location:
    United Kingdom
    Thanks so much for this, it helped me too :)

     
  7. Ricky.Montana

    Ricky.Montana Regular Member

    Joined:
    May 17, 2013
    Messages:
    278
    Likes Received:
    112
    You're welcome. I remember a few years ago, when I started into this. My local pc was my first server, and I learned a lot of it.

    Enjoy&Make money!!
     
  8. scout7

    scout7 Newbie

    Joined:
    Aug 6, 2014
    Messages:
    28
    Likes Received:
    1
    I do agree with Breakdown becuase local option is good, simple google it "how to install the web server on raspberry"?

     
  9. Breakdown

    Breakdown Newbie

    Joined:
    Apr 18, 2014
    Messages:
    39
    Likes Received:
    2

    Hey ricky,i did everything as described and i set this up on an online host,Raspberry was pretty slow for my likings.

    I get the following error though,the page loads really,really slow and in the end it only loads as an HTML.When i click a post it won't load at all.
    I had the same issue when i had the wordpress site installed on the Raspberry when i connected it to the network through the Wi-Fi dongle,but when i used the Lan cable it would load normally(as when i did the installation of wordpress).Maybe it had something to do with the different Ip it took?No idea...

    Any help would be greatly appreciated once again.Thanks!
     
  10. myinternetempire

    myinternetempire Jr. VIP Jr. VIP

    Joined:
    Oct 24, 2011
    Messages:
    775
    Likes Received:
    139
    Occupation:
    Internet Marketing | Software Development
    Location:
    Orlando, Florida
    Home Page:
    Yes, you can transfer your local site to an online host. It won't be too difficult. I suggest you to make a backup of your site. later it would be helpful. A good news for you, most of the hosting providers will assist you for moving a website for first time.
     
  11. HostSailor

    HostSailor Junior Member

    Joined:
    Jul 5, 2014
    Messages:
    107
    Likes Received:
    4
    yes it can backup your database and files. Its better to use linux for the server