<?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>unexpected[it] &#187; Config</title>
	<atom:link href="http://www.unexpectedit.com/category/magento/config/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unexpectedit.com</link>
	<description>Professional IT Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:55:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Magento &#8211; Setting up Robots Meta tag in your theme</title>
		<link>http://www.unexpectedit.com/magento/config/magento-setting-up-robots-meta-tag-in-your-theme</link>
		<comments>http://www.unexpectedit.com/magento/config/magento-setting-up-robots-meta-tag-in-your-theme#comments</comments>
		<pubDate>Tue, 24 May 2011 18:00:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Config]]></category>
		<category><![CDATA[googlebots]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[metatag]]></category>
		<category><![CDATA[nofollow]]></category>
		<category><![CDATA[noindex]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=606</guid>
		<description><![CDATA[1) Set the meta tag in /app/design/frontend/your_theme/default/template/page/html/head.phtml 2) Set the Robot content from Layout in /app/design/frontend/your_theme/default/layout/page.xml Every page layout should look like this &#160; Magento 1.4.0.1]]></description>
			<content:encoded><![CDATA[<div class="leftColumn">
<p>
<strong>1) Set the meta tag in /app/design/frontend/your_theme/default/template/page/html/head.phtml</strong></p>
<pre class="brush: xml; title: ; notranslate">
...
&lt;meta name=&quot;robots&quot; content=&quot;&lt;?php echo htmlspecialchars($this-&gt;getRobots()) ?&gt;&quot; /&gt;
...
</pre>
<p><strong>2) Set the Robot content from Layout in /app/design/frontend/your_theme/default/layout/page.xml</strong></p>
<p> Every page layout should look like this </p>
<pre class="brush: xml; highlight: [8,9,10]; title: ; notranslate">
    &lt;page_two_columns_right translate=&quot;label&quot;&gt;
        &lt;label&gt;All Two-Column Layout Pages (Right Column)&lt;/label&gt;
        &lt;reference name=&quot;root&quot;&gt;
            &lt;action method=&quot;setTemplate&quot;&gt;&lt;template&gt;page/2columns-right.phtml&lt;/template&gt;&lt;/action&gt;
            &lt;!-- Mark root page block that template is applied --&gt;
            &lt;action method=&quot;setIsHandle&quot;&gt;&lt;applied&gt;1&lt;/applied&gt;&lt;/action&gt;
        &lt;/reference&gt;
		&lt;reference name=&quot;head&quot;&gt;
			&lt;action method=&quot;setRobots&quot;&gt;&lt;value&gt;NOINDEX,FOLLOW&lt;/value&gt;&lt;/action&gt;
		&lt;/reference&gt;
    &lt;/page_two_columns_right&gt;
</pre>
<div class="clr">&nbsp;</div>
</p>
</div>
<div class="rightColumnSpec">
<ul>
<li>Magento 1.4.0.1</li>
</ul>
</div>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/magento/config/magento-setting-up-robots-meta-tag-in-your-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Config Settings</title>
		<link>http://www.unexpectedit.com/magento/config/magento-config-settings</link>
		<comments>http://www.unexpectedit.com/magento/config/magento-config-settings#comments</comments>
		<pubDate>Mon, 14 Jun 2010 20:03:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Config]]></category>
		<category><![CDATA[change directory]]></category>
		<category><![CDATA[change folder]]></category>
		<category><![CDATA[change server]]></category>
		<category><![CDATA[database config]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[moving]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=112</guid>
		<description><![CDATA[Force the modules to upgrade the MySQL Version To make sure that magento is using the scripts: Module_name/sql/mysql-upgrade* 1) Disable module 2) Delete cache 3) change the version number of the modules in core_resource doing UPDATE `core_resource` SET `version` = &#8217;1.4&#8242; WHERE `core_resource`.`code` = &#8216;Orderpreparation_setup&#8217; LIMIT 1 ; 4) Enable module]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
/**
* Moving Magento, Config Folder and Database
*
*/
//Database config
/app/etc/local.xml
//Also
rm -Rf magento/var/session;
rm -Rf magento/var/cache;
//Database stuff
</pre>
<pre class="brush: sql; title: ; notranslate">
UPDATE core_config_data SET value = &quot;http://127.0.0.1:8888/New_Place/&quot; WHERE path=&quot;web/unsecure/base_url&quot;;
UPDATE core_config_data SET value = &quot;http://127.0.0.1:8888/New_Place/&quot; WHERE path=&quot;web/secure/base_url&quot;;

TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
</pre>
<pre class="brush: sql; highlight: [1,2,3,4]; title: ; notranslate">
#
# Magento Database import SQL Files
#

#Export with mysql_dump or phpMyAdmin

#Header
SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;
SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS;
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION;
SET NAMES utf8;
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0;

#...this on the Footer
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT;
SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS;
SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION;
SET SQL_NOTES=@OLD_SQL_NOTES;
</pre>
<pre class="brush: cpp; title: ; notranslate">
/**
* Magento Folder Settings and Permissions
*
*/
find . -type d -exec chmod 777 {} \;
find . -type f -exec chmod 644 {} \;
chmod 777 -R downloader
chmod 777 -R app/etc
//Also running Apache
find . -exec chown apache {} \;
find . -exec chgrp apache {} \;
</pre>
<p><strong>Force the modules to upgrade the MySQL Version</strong><br />
To make sure that magento is using the scripts: Module_name/sql/mysql-upgrade*<br />
1) Disable module<br />
2) Delete cache<br />
3) change the version number of the modules in<br />
core_resource<br />
doing<br />
UPDATE `core_resource` SET `version` = &#8217;1.4&#8242; WHERE `core_resource`.`code` = &#8216;Orderpreparation_setup&#8217; LIMIT 1 ;<br />
4) Enable module</p>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/magento/config/magento-config-settings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

