If you are not connected to the Internet and are looking for blogging, then you need to either write your blog posts on your local word processor or else on notepad which are just normal applications where you can write the posts with few editions but if you are looking for working directly through on a WordPress CMS then its better to install this script on your local computer. Another situation is that you want to try out and install a new wordpress theme on your blog but you dont want your visitors to preview it before its completely customized and then launched. In these kind of situations you have a excellent option of installing a wordpress database and running the whole blog on your desktop computer.
The first step in this would be to install a software on your computer like XAMPP which offers you to run Apache, MySql on your local pc. You can download the lite version of XAMPP here and check out the following process to install it.
XAMPP Installation Process :
[NOTE: Unpack the package to your USB stick or a partition of your choice.
There it must be on the highest level like E:\ or W:\. It will
build E:\XAMPPlite or W:\XAMPPlite or something like this. Please do not use the “setup_XAMPPlite.bat” for an USB stick installation!]
- Unpack the package into a directory of your choice. Please start the
“setup_XAMPPlite.bat” and beginning the installation. Note: XAMPPlite makes no entries in the windows registry and no settings for the system variables. - If installation ends successfully, start the Apache 2 with
“apache_start”.bat”, MySQL with “mysql_start”.bat”. Stop the MySQL Server with “mysql_stop.bat”. For shutdown the Apache HTTPD, only close the Apache Command (CMD). Or using the fine XAMPP Control Panel with double-click on “xampp-control.exe”! - Start your browser and type http://127.0.0.1 or http://localhost in the location bar. You should see our pre-made
start page with certain examples and test screens. - PHP (with mod_php, as *.php, *.php3, *.php4, *.php5, *.phtml), Perl by default with *.cgi, SSI with *.shtml are all located in => C:\XAMPPlite\htdocs\.
Examples:
– C:\XAMPPlite\htdocs\test.php => http://localhost/test.php
– C:\XAMPPlite\myhome\test.php => http://localhost/myhome/test.php - XAMPPlite UNINSTALL? Simply remove the “XAMPPlite” Directory. But before please shutdown the apache and mysql.
Once you are running the Apache & MySQL on your computer, you need to download the wordpress script from wordpress.org website. Extract all the files from the zip file onto your computer. Then copy and paste all the wordpress files to the c:\xampplite\htdocs folder. Once you have moved all the files to this location you can now access the wordpress blog installation page through the browser while accessing http://localhost/
While going towards the next step you will be asked for the database details like Database Name, User Name & Password where you need to enter the following details. This can be directly accessed at http://localhost/wordpress/wp-admin/install.php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ”); // …and password (needs to be empty, just for local install)
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
That’s it you have installed a new wordpress blog on your local computer with complete access, except that the posts will be stored on your local computers database which you can later transfer to your online blog easily. It takes a maximum of 10 minutes of install this stuff on your computer and you are ready with a blog. You can use this kind of options when you are not connected to the internet or when you want to save up your bandwidth costs by not customizing your wordpress blog online. Do let me know if you have any queries regarding this installation process.
Protap says
Dear Amit,
Apart from google adsense, I saw you were running “Infolinks” and “Tribal Fusion” ads and you told us that you were making very good money with them. But now I can see no “Infolinks” or “Tribal Fusion” ads in your posts. Anything wrong? Once you said, Kontera is an SCAM because it does not pay. But what about “Infolinks” and “Tribal Fusion” ads? Will you please clarify why you have stopped running them?
Thanks in advance.
Amit Bhawani says
@Protap, I keep trying out different ad networks and run most of these for a few days to weeks duration to check the performance and then post the results on this blog. The tribalfusion ads are still active on this website you will be able to see it rarely since it pays mainly for US based traffic impressions.
Girish says
Amit,
I am forced to tell that this is one of the best post ..
Thanks for your time for compose such a simple but detailed post on setting wp offline blog.
sid says
Awesome post amit.. just did this i wanted to try a new theme for my site will test it locally..
Chetan Pujara says
Good Information Amit… Appreciate it.. thanks.. just planning to the build my site very soon…
Tejas says
Amit,
How do you write posts on local machine? Is there a way to transfer posts from an existing wordpress blog to local machine?
Thanks,
-Tejas
Amit Bhawani says
You can just go to Tools > Export Posts option and download all the posts and Import them on your Local Computer based blog and keep yourself updated.
Bhavya Kamboj says
Thanks amit for this post. Keep up the good work.
Bhavya Kamboj says
Hi Amit
I am seeing kontera ads here now. Are you friends again or some sort of apology was made by them. Well Good luck
Amit Bhawani says
I will post about this in few days! Right now some tests going on with them.