<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life and Internet Business Lessons of an ex Employee &#124; CajammedTutorials Archives  &#187;</title>
	<atom:link href="http://www.cajammed.com/blog/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cajammed.com/blog</link>
	<description>Lessons of my journey from employee to internet business owner</description>
	<lastBuildDate>Thu, 21 Jan 2010 04:43:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Make a Duplicate Copy of Your Wordpress Blog Offline</title>
		<link>http://www.cajammed.com/blog/tutorials/how-to-make-a-duplicate-copy-of-your-wordpress-blog-offline/</link>
		<comments>http://www.cajammed.com/blog/tutorials/how-to-make-a-duplicate-copy-of-your-wordpress-blog-offline/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 22:25:09 +0000</pubDate>
		<dc:creator>charlieaquino</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-db-backup]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.cajammed.com/blogging-business/how-to-make-a-duplicate-copy-of-your-wordpress-blog-offline/</guid>
		<description><![CDATA[Ever wonder how you can install an offline copy of wordpress in your local computer? Or better yet a duplicate offline copy of your server hosted wordpress blog? Here a comprehensive tutorial that shows you how to do that in eight simple steps.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ever wonder how you can install an offline copy of wordpress in your local computer? Or better yet a duplicate offline copy of your server hosted wordpress blog?</p>
<p>I’ve been tweaking my wordpress blogs mostly online for months now until I discovered a way that’s much easier, faster and downright efficient. And I prepared a comprehensive guide here for you to get started.</p>
<p>There are many reasons why you might want to do this. Reasons such as&#8230;</p>
<ul>
<li>Testing new templates and editing CSS files</li>
<li>Testing new plugins before implementing them online</li>
<li>Using it as an offline editor (watch out for my separate tutorial on this)</li>
<li>You are new to wordpress and you just want to test it out</li>
<li>Or you just want to use wordpress as an offline diary.</li>
</ul>
<p>So here’s how it goes.</p>
<h3>First the tools&#8230;</h3>
<p>There are two basic files you need to download to get your offline wordpress started.</p>
<ol>
<li><a href="http://www.apachefriends.org/en/xampp.html" target="_blank">Download XAMPP</a> which allows you to create your MYSQL Databases and implement PHP in your local system. You don’t need the full version (even though it’s free) the <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">Lite</a> version will do.</li>
<li>Download the latest version of <a href="http://wordpress.org/download/" target="_blank">Wordpress</a>.</li>
</ol>
<h3>Step 1: Install XAMPP</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppinstallzip.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 5px 5px 0px; border-left: 0px; border-bottom: 0px" title="xampp-install-zip" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppinstallzip_thumb.jpg" border="0" alt="xampp-install-zip" width="234" height="250" align="left" /></a> Depending on the XAMPP version you downloaded the the installation process can be a little different.</p>
<p>If you downloaded the installer you just need to run it and follow the installation instructions. If you downloaded the ZIP or Executable Archive version you need to extract the contents to the root directory of your drive.</p>
<p>NOTE: I did this in Windows if you are using a Mac, Linux, or Solaris check out the respective installation procedures at the <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP website</a>.</p>
<p>I think it is also safe to extract the files to other directories other than the root though I have not tried this installation. In my own local system it’s in the <strong>C:\</strong> drive.</p>
<p><span id="more-261"></span></p>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppsetupbat.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 0px 5px 5px; border-left: 0px; border-bottom: 0px" title="xampp-setup-bat" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppsetupbat_thumb.jpg" border="0" alt="xampp-setup-bat" width="104" height="118" align="right" /></a> Once extracted go to your XAMPP installation directory <strong>C:\xampplite</strong> and look for the file <strong>setup_xampp.bat</strong> and run it. A command window will appear and run the set-up process ending with an instruction for you to press any key to continue.</p>
<p>You now have XAMPP installed.</p>
<h3>Step 2: Run Apache and MYSQL and configure XAMPP</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/apachemysqlactivate.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 5px 5px 0px; border-left: 0px; border-bottom: 0px" title="apache-mysql-activate" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/apachemysqlactivate_thumb.jpg" border="0" alt="apache-mysql-activate" width="250" height="186" align="left" /></a>Look for the file <strong>xampp-control.exe</strong> in the XAMPP installation directory and run it to view the control panel.</p>
<p>Make sure the Apache and MySQL services are running properly. You can opt to close this window now after checking that both services are running.</p>
<p>Next is to open you web browser and type in <strong>localhost</strong> in your browser’s address bar. Select the appropriate language from the page that will appear.</p>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppstart.jpg"><img style="border-right: 0px; border-top: 0px; display: block; float: none; margin: 0px auto 5px; border-left: 0px; border-bottom: 0px" title="xampp-start" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/xamppstart_thumb.jpg" border="0" alt="xampp-start" width="502" height="329" /></a>At the welcome screen click on phpMyAdmin to start creating your database.</p>
<p>NOTE: In some instances you might want to change the security settings to include your own password, the default installations use <strong>root</strong> as a username and no password. This is really optional but if you are concerned about security or are afraid someone might tinker with your WP installation you can view the security tutorial from the <a href="http://www.apachefriends.org/en/xampp-windows.html#1221" target="_blank">XAMPP website</a>.</p>
<h3>Step 3: Create your database</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/createdatabase.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 0px 5px; border-left: 0px; border-bottom: 0px" title="create-database" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/createdatabase_thumb.jpg" border="0" alt="create-database" width="250" height="123" align="right" /></a>In the phpMyAdmin control panel create your offline wordpress database. Example in the image is <strong>wpdata</strong> you can name it as you want.</p>
<p>Once you hit the create button your database is now created. And then we proceed with the wordpress installation.</p>
<h3>Step 4: Install Wordpress</h3>
<p>Installing wordpress involves several steps so read this carefully. Begin by extracting the zip file to the <strong>htdocs</strong> directory in your XAMPP installation folder. In our case it’s <strong>C:\xampplite\htdocs</strong> the installation will install a folder named <strong>wordpress</strong> in the directory which you should rename after your site or whatever name you want.</p>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wordpressdatabase.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 5px 5px 0px; border-left: 0px; border-bottom: 0px" title="wordpress-database" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wordpressdatabase_thumb.jpg" border="0" alt="wordpress-database" width="371" height="135" align="left" /></a> After extracting, open the file <strong>wp-config-sample.php</strong> located in the directory where you just installed wordpress (you can use notepad to open the file). Edit the database information with your database name, username and password. If you edited the security setting in XAMPP this is where you place your password.</p>
<p>Save this file as <strong>wp-config.php</strong>.</p>
<p>Head on to your browser and type the following in your address bar <strong>http://localhost/yourblogname/wp-admin/install.php</strong> replace <strong>yourblogname</strong> with the name of the folder where you installed wordpress.</p>
<p>Wordpress will ask you for your site name and the email address enter it and click install wordpress. Your wordpress username and password will then be shown to you, remember them.</p>
<p>Click next to proceed to the wordpress log-in screen, enter your username and password and you have now completed your offline wordpress installation. You will now be redirected to you wordpress dashboard.</p>
<p>If you just need a fresh offline wordpress installation you can end here but if you want to duplicate the content of your existing blog then let’s proceed to the next step in our process.</p>
<h3>Step 5: Backup you blog database</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wpdbbackupdashboard.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 5px 5px 0px; border-left: 0px; border-bottom: 0px" title="wpdbbackup-dashboard" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wpdbbackupdashboard_thumb.jpg" border="0" alt="wpdbbackup-dashboard" width="145" height="185" align="left" /></a> It’s recommended that you install the plugin <a href="http://www.ilfilosofo.com/blog/wp-db-backup/" target="_blank">WP-DB-Backup</a> which you can download for free or install within your wordpress dashboard.</p>
<p>Setting for the backup process is accessible from within the tools menu in your dashboard.</p>
<p>The plugin will give you different options. I suggest you backup only the core files and then choose the option to download it to your local drive. Once completed you will have a backup of your entire online database in a zip file downloaded in your local drive. Let’s load it up to your offline wordpress installation.</p>
<h3>Step 6: Loading your database</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/phpdatabase.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 0px 5px 5px; border-left: 0px; border-bottom: 0px" title="php-database" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/phpdatabase_thumb.jpg" border="0" alt="php-database" width="185" height="200" align="right" /></a> Head back to the phpMyAdmin panel by typing in <strong>localhost</strong> in your browser window and accessing the phpMyAdmin link in the welcome page. (refer to the photo in step 2)</p>
<p>Click on the database you created and then the import button at the top menu.</p>
<p>In the File to Import section locate for the backup database you just created in step 5 and click Go. If all is well there should be no error and you have just completed the installation of the local copy of your online blog.</p>
<h3><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/phpdatabaseimport.jpg"><img style="border-right: 0px; border-top: 0px; display: block; float: none; margin: 0px auto 5px; border-left: 0px; border-bottom: 0px" title="php-database-import" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/phpdatabaseimport_thumb.jpg" border="0" alt="php-database-import" width="500" height="92" /></a>Step 7: Tweak your database</h3>
<p><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wpoptionedit.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; margin: 0px 5px 5px 0px; border-left: 0px; border-bottom: 0px" title="wp-option-edit" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/wpoptionedit_thumb.jpg" border="0" alt="wp-option-edit" width="136" height="152" align="left" /></a>There are three important tweaks you need to do in your local database at this point. So far the local wordpress installation you have still points to the online version of your blog <strong>http://www.yourblogname.com</strong> and we want it to point to the local copy <strong>http://localhost/yourblogname</strong>.</p>
<p>To do this you need to edit two items in you local database. Select your database from the phpMyAdmin panel and select wp-options</p>
<p>You will be presented will all the options in you WP installation but what we are looking for are three items <strong>siteurl</strong>, <strong>home</strong>, and <strong>upload_path</strong>.</p>
<p>Locate them and replace the values with the following:</p>
<ul>
<li>siteurl = http://localhost/yourblogname</li>
<li>home = http://localhost/yourblogname</li>
<li>upload_path = c:\xampplite\htdocs\yourblogname\wp-content\uploads\</li>
</ul>
<h3>Step 8: Tweak your files</h3>
<p>Now I&#8217;m not sure if this will apply in your case or not but I have had some reports that you need to modify two files in your xampp and wordpress installation so that you can make your pages display properly. So I recommend you follow these steps as well.</p>
<p style="text-align: center;"><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/httpd.conf-rewrite.jpg"><img class="aligncenter size-full wp-image-320" style="border: 1px solid black; margin-top: 10px; margin-bottom: 10px;" title="httpd.conf-rewrite" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/httpd.conf-rewrite.jpg" alt="How to Make a Duplicate Copy of Your Wordpress Blog Offline" width="440" height="53" /></a></p>
<p style="text-align: left;">First, open the file named <strong>c:\xampplite\apache\conf\httpd.conf</strong> in notepad and look for the line that says <strong>LoadModule rewrite_module modules/mod_rewrite.so</strong> now if there is a <strong>#</strong> sign infront of it make sure to delete the <strong>#</strong> sign and save the file.</p>
<p style="text-align: left;"><a href="http://www.cajammed.com/blog/wp-content/uploads/2009/06/htaccess.jpg"><img class="size-full wp-image-321 alignright" style="border: 1px solid black; margin: 5px;" title="htaccess" src="http://www.cajammed.com/blog/wp-content/uploads/2009/06/htaccess.jpg" alt="How to Make a Duplicate Copy of Your Wordpress Blog Offline" width="335" height="52" /></a>Second, open the file <strong>c:\xampplite\htdocs\yourblogname\.htaccess</strong> and look for the line that says <strong>RewiteRule . /index.php </strong>edit it so that it is written as <strong>RewriteRule . /yourblogname/index.php </strong>and then save the file.</p>
<p>Your offline copy is now complete. You can log-in to your offline wordpress site by typing in <strong>http://localhost/yourblogname</strong> in your browser and use your online username and password to log-in to your dashboard.</p>
<h3><strong>Step 9: Final Step </strong></h3>
<p>If you want to use the same theme from you offline site just copy your entire theme folder to <strong>C:\xampplite\htdocs\yourblogname\wp-content\themes </strong>and you&#8217;ll have an exact duplicate of your online blog.</p>
<p>I&#8217;d like to give credit where credit is due. Special thanks to <a href="http://www.davidtan.org/running-a-duplicate-offline-copy-wordpress-site/" target="_blank">David Tan of Davidtan.org</a> and  <a href="http://www.lifespy.com/2007/how-to-install-wordpress-offline/">Alex from Lifespy.com</a> for their equally informative tutorials on this subject though I felt the need to combine both their ideas into one full length guide with graphics that the average beginner could follow.</p>
<p>Hope you enjoyed this tutorial! Feel free to add your comments.</p>
<p>Charlie Aquino</p>
<p>Internet Entrepreneur</p>
<img src="http://www.cajammed.com/blog/?ak_action=api_record_view&id=261&type=feed" alt="How to Make a Duplicate Copy of Your Wordpress Blog Offline"  title="How to Make a Duplicate Copy of Your Wordpress Blog Offline Photo" />

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cajammed.com/blog/tutorials/how-to-make-a-duplicate-copy-of-your-wordpress-blog-offline/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

