<?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>About Web Development by Activo &#187; baseurl</title>
	<atom:link href="http://www.activoinc.com/blog/tag/baseurl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.activoinc.com/blog</link>
	<description>Web Development in a Web 2.0 World</description>
	<lastBuildDate>Fri, 29 Jan 2010 17:16:07 +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>Howto change the Base URL in Magento via command line</title>
		<link>http://www.activoinc.com/blog/2009/08/07/howto-change-the-base-url-in-magento-via-command-line/</link>
		<comments>http://www.activoinc.com/blog/2009/08/07/howto-change-the-base-url-in-magento-via-command-line/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:02:44 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[baseurl]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=294</guid>
		<description><![CDATA[A quick howto that complements chandansweb&#8217;s article on how to change the Base URL using phpMyAdmin. On production servers I do not install phpMyAdmin and therefore I need to use command line. Here is how in 3 steps:
Step 1: Login to mysql (command line) and update two records:
Note that the values in square brackets need [...]]]></description>
			<content:encoded><![CDATA[<p>A quick howto that complements chandansweb&#8217;s article on <a href="http://blog.chandanweb.com/magento/how-to-change-base-url-in-magento">how to change the Base URL using phpMyAdmin</a>. On production servers I do not install phpMyAdmin and therefore I need to use command line. Here is how in 3 steps:</p>
<p><strong>Step 1: Login to mysql (command line) and update two records:</strong><br />
Note that the values in square brackets need to be filled with your specific values.</p>
<pre>update [prefix]core_config_data set value="http://[domain]/[rootfolder/]" where path='web/unsecure/base_url';
update [prefix]core_config_data set value="http://[domain]/[rootfolder/]" where path='web/secure/base_url';</pre>
<p><strong>Step 2: Clear cache by removing entries in the /var/cache/* folder:</strong><br />
<strong>Careful</strong> with this one, make sure you are pointing to<strong> the right folder</strong>.</p>
<pre>rm -rf /var/www/[path to html folder]/var/cache/*</pre>
<p><strong>Step 3: Force Magento to clear its database cache by running this php file:</strong><br />
Note that I recommend that you copy and paste this code in a file at your Magento root folder. Then point your browser to this file, it will trigger the clearing of various cache objects in Magento.</p>
<pre>&lt;?php
ob_implicit_flush(true); //Saves having to flush manually
set_time_limit(0); //Set time limit to unlimited, though we shouldnt need to
ignore_user_abort();

require_once("app/Mage.php");
umask(0);

// clean overall cache
Mage::app()-&gt;cleanCache();

// clear 'refresh_catalog_rewrites':
Mage::getSingleton('catalog/url')-&gt;refreshRewrites();
echo 'Catalog Rewrites was refreshed succesfuly&lt;br&gt;';

//  clear 'clear_images_cache':
Mage::getModel('catalog/product_image')-&gt;clearCache();
echo 'Image cache was cleared succesfuly&lt;br&gt;';

//  clear 'refresh_layered_navigation':
Mage::getSingleton('catalogindex/indexer')-&gt;plainReindex();
echo 'Layered Navigation Indices was refreshed succesfuly&lt;br&gt;';
?&gt;</pre>
<p>That should do it, you should now be able to point to your production store and it will pull the right URLs. It worked for me after various attempts of other howto&#8217;s. The above steps are the ones that worked for me.</p>
<h3  class="related_post_title">Most Commected Posts</h3><ul class="related_post"><li>April 13, 2008 -- <a href="http://www.activoinc.com/blog/2008/04/13/about-linux-distros-ubuntu-and-centos/" title="About Linux Distros: Ubuntu and CentOS">About Linux Distros: Ubuntu and CentOS</a> (9)</li><li>October 2, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/02/keywordluv-a-must-have-wordpress-plugin/" title="KeywordLuv: a must have wordpress plugin">KeywordLuv: a must have wordpress plugin</a> (7)</li><li>March 10, 2008 -- <a href="http://www.activoinc.com/blog/2008/03/10/10-key-search-engine-optimization-items-feeding-the-spiders/" title="10 Key Search Engine Optimization Items &#8211; Feeding the Spiders">10 Key Search Engine Optimization Items &#8211; Feeding the Spiders</a> (5)</li><li>October 5, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/05/updating-inove-to-work-with-keywordluv-plugin/" title="Updating iNove to work with KeywordLuv plugin">Updating iNove to work with KeywordLuv plugin</a> (5)</li><li>August 19, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/19/5-missing-features-preventing-joomla-cms-from-entering-the-enterprise-cms-market/" title="5 Missing Features Preventing Joomla! CMS from Entering the Enterprise CMS Market">5 Missing Features Preventing Joomla! CMS from Entering the Enterprise CMS Market</a> (3)</li><li>August 25, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/" title="Looking Ahead: ZenCart ver 1.4">Looking Ahead: ZenCart ver 1.4</a> (3)</li><li>September 25, 2009 -- <a href="http://www.activoinc.com/blog/2009/09/25/magentos-order-management-workflow-comprehensive-but-unrealistic/" title="Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic">Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic</a> (3)</li><li>October 15, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/15/zencart-1-3-8-and-php-5-2-11-bug-problem-login-to-admin-area/" title="ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area">ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area</a> (3)</li><li>November 26, 2009 -- <a href="http://www.activoinc.com/blog/2009/11/26/3-interesting-trends-in-web-browsers/" title="3 Interesting Trends in Web Browsers">3 Interesting Trends in Web Browsers</a> (3)</li><li>July 29, 2007 -- <a href="http://www.activoinc.com/blog/2007/07/29/why-we-chose-eventum-over-any-other-issue-tracking-system/" title="Why we chose Eventum over any other issue tracking system?">Why we chose Eventum over any other issue tracking system?</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/08/07/howto-change-the-base-url-in-magento-via-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
