Wordpress locally

Breakdown

Newbie
Joined
Apr 18, 2014
Messages
42
Reaction score
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.
 
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.
 
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
 
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.
 
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!
 
Thanks so much for this, it helped me too :)

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.
 
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!!
 
I do agree with Breakdown becuase local option is good, simple google it "how to install the web server on raspberry"?

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!
 
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:

(removed the 2 extra lines,Blackhatworld filtering)

If you have questions, feel free to ask.


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!
 
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.
 
yes it can backup your database and files. Its better to use linux for the server
 
Back
Top