<?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>Russ Back &#187; Ecommerce</title>
	<atom:link href="http://www.russback.com/articles/ecommerce/feed" rel="self" type="application/rss+xml" />
	<link>http://www.russback.com</link>
	<description>Professional Web Development</description>
	<lastBuildDate>Mon, 02 Nov 2009 08:16:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Magento Commerce and MAMP on Leopard 10.5.6</title>
		<link>http://www.russback.com/ecommerce/installing-magento-commerce-on-leopard-1056.html</link>
		<comments>http://www.russback.com/ecommerce/installing-magento-commerce-on-leopard-1056.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 07:38:21 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Other stuff]]></category>
		<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://local.wp-clearpixel.co.uk/?p=162</guid>
		<description><![CDATA[Running Magento Commerce on Mac OSX is straightforward once you've got MAMP installed. This article covers a couple of hurdles you might have to clear in the process.]]></description>
			<content:encoded><![CDATA[<p>As a front end developer, I love <a title="Visit magentocommerce.com" href="http://www.magentocommerce.com">Magento Commerce</a>. The way it handles the presentation layer of an online store is easy to work with once you&#8217;ve got to grip with <a title="An introduction to how Magento Commerce works" href="http://www.magentocommerce.co/wiki/welcome_to_the_magento_user_s_guide/chapter_1">the basics</a>, and you can easily add your own modifications without having to edit a mass of files or find your store breaks when you upgrade.</p>
<p>Installation is pretty straight-forward and not much different to any other typical LAMP application, but I found that my out-of-the box LAMP setup on OS X Leopard 10.5.6  was missing a few of the PHP modules required to install the app. For example I had the most recent version of the GD image library installed but the Magento installer insisted I needed something more.</p>
<p>I&#8217;m not a Linux guy and poking around under the hood of my OS isn&#8217;t something I&#8217;m busting to do but I had a crack at installing the missing modules using <a title="Visit finkproject.com" href="http://www.finkproject.org/">Fink</a>. This seemed more straight-forward than installing packages via the command line, but I still didn&#8217;t like it, so I turned to <a title="Visit mamp.info" href="http://www.mamp.info">MAMP</a>.</p>
<p>MAMP I discovered, is great if you&#8217;re looking for a friendly interface to your Apache, PHP and MySql setup. I downloaded and installed MAMP Pro as it allows me to run multiples sites locally on my Mac and once it had installed, I only had a couple of bits to change.</p>
<h2>Installing MAMP Pro</h2>
<p>As I had already configured LAMP on my Mac, MAMP was set to use the ports 8888 and 8889 for Apache and MySql respectively, instead of the default ports 80 and 3306. Not a major issue but I&#8217;d rather just slap local.mysite.com into my browser than worry about local.mysite.com:8888. Perhaps I&#8217;m just lazy.</p>
<p><img src="http://www.russback.com/wp-content/uploads/summary-magento-mamp.jpg" alt="Setting MAMP ports to the default setting" width="553" height="379" class="alignnone size-full wp-image-446" /></p>
<h2>Error with the MySql &#8211;skip-federated option</h2>
<p>The second problem I had was more fundamental: MySql refused to start up, complaining about an issue with an unknown option in the log:</p>
<p><code>[ERROR] /Applications/MAMP/Library/libexec/mysqld: unknown option '--skip-federated'</code></p>
<p>The solution to this I found, was simple. This option is set in the /etc/my.conf file and can be safely commented out. To fix this, you need to look for the following lines and add a # character to comment out the option and restart MAMP.</p>
<p><code># Disable Federated by default<br />
# skip-federated</code></p>
<h2>Error  connecting through socket</h2>
<p>The final issue I found was to do with the MySql socket. MAMP has it&#8217;s own MySql install that was clashing with the one installed in my OSX installation, even though that one was not running:</p>
<p><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'</code></p>
<p>This was also easy to fix using the Terminal app. Simply login into your Terminal and run the following command:</p>
<p><code>sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock</code></p>
<p>If you experience these issues installing MAMP, following these steps shouldsee you up and running with everything you need to install Magento Commerce.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.russback.com/ecommerce/installing-magento-commerce-on-leopard-1056.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blank page displayed after installing Magento Commerce</title>
		<link>http://www.russback.com/ecommerce/blank-page-displayed-after-installing-magento.html</link>
		<comments>http://www.russback.com/ecommerce/blank-page-displayed-after-installing-magento.html#comments</comments>
		<pubDate>Wed, 18 Mar 2009 07:46:27 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[MAMP]]></category>

		<guid isPermaLink="false">http://local.wp-clearpixel.co.uk/?p=30</guid>
		<description><![CDATA[Magento needs a decent PHP memory allocation to run and if it's too low, you simply get a blank page in your browser. The fix is simple...]]></description>
			<content:encoded><![CDATA[<p>When installing <a title="Visit magentocommerce.com" href="http://www.magentocommerce.com">Magento Commerce</a> for the first time on OS X Leopard 10.5.6 I came up against a problem that seems fairly common in the <a title="Visit magentocommerce.com" href="http://www.magentocommerce.com/boards/viewforum/9/">community forums</a>. The installation process ran smoothly but when it had completed and I called up either the front end or the admin interface, I got a blank page. No errors, no messages, nada.</p>
<p>With a little bit more digging around in the forums (by the way does anybody else find it frustrating that the forum search results show the same summary over and over again for in search results?!?) and a few dead-ends, I tracked the problem down to a PHP memory issue.</p>
<p>I&#8217;m running MAMP PRO which runs great on my Mac and made things far easier when I was trying to sort out <a href="/web-development/installing-lamp-on-leopard.html">the LAMP environment that comes with Leopard</a> out of the box. However by default, the memory set in the PHP 5 template is too low for Magento Commerce to run and this was being reported in the PHP log (Log &gt; PHP in the menu bar) in MAMP:</p>
<p><code>[18-Mar-2009 08:25:33] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /Users/russ_back/Sites/magentocommerce.com/httpdocs/app/design/frontend/blank/default/template/page/2columns-right.phtml on line 55</code></p>
<p><a href="http://www.mamp.info/en/mamp-pro/index.html"><img src="http://www.russback.com/wp-content/uploads/screenshot-mamp.jpg" alt="Screenshot of MAMP Pro" title="Screenshot of MAMP Pro" width="553" height="300" class="alignnone size-full wp-image-304" /></a></p>
<p>As it turns out, this is an easy fix in MAMP and goes something like this. I&#8217;m assuming you&#8217;re using PHP5:</p>
<ol>
<li>Open up MAMP Pro (or open your php5.ini file if you&#8217;re not using MAMP and skip to step 3).</li>
<li>Go to File &gt; Edit Template &gt; PHP5 php.ini (or hit cmd 4 if you&#8217;re after a shortcut). You may see a warning message but what we&#8217;re going to do is minor so you can read it and clear it for now.</li>
<li>Search for the &#8220;memory_limit&#8221; in the file and if you&#8217;ve never changed this, you may find it showing as 8M, which is 8Mb and too low for Magento Commerce.</li>
<li>Change this value to 16M &#8211; which is what Magento requires as a minimum &#8211; or preferably something higher, like 64M.</li>
<li>Hit File &gt; Save and close the file.</li>
<li>Restart the Apache server (as simple as hitting the Stop and WebStart buttons in MAMP Pro) and then revisit your Magento location (mine&#8217;s at local.magentocommerce.com) and hit the refresh button of your browser</li>
<li>Wham! You&#8217;re done and Magento Commerce should be up and running</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.russback.com/ecommerce/blank-page-displayed-after-installing-magento.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
