<?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>Justin Carmony &#187; XAMPP</title>
	<atom:link href="http://www.justincarmony.com/blog/tag/xampp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justincarmony.com/blog</link>
	<description>Web Designer &#38; Software Engineer</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:30:16 +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>XAMPP for Mac &#8211; My Frustrations &amp; Solutions</title>
		<link>http://www.justincarmony.com/blog/2009/02/14/xampp-for-mac-my-frustrations-solutions/</link>
		<comments>http://www.justincarmony.com/blog/2009/02/14/xampp-for-mac-my-frustrations-solutions/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 23:15:34 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacBook Pro]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/?p=396</guid>
		<description><![CDATA[These last few days I&#8217;ve been trying to get XAMPP to work on my MacBook Pro these last couple of days and it has been frustrating! It seemed I kept running into more and more problems. For those who don&#8217;t know, XAMPP is tool for developers to run a LAMP stack (Linux, Apache, MySQL, PHP) ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/10/14/php-video-tutorial-getting-started-installing-xampp/' rel='bookmark' title='PHP Video Tutorial – Getting Started – Installing XAMPP'>PHP Video Tutorial – Getting Started – Installing XAMPP</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/' rel='bookmark' title='Page.FindControl() Returning Null Issues and Solutions Within Another Control'>Page.FindControl() Returning Null Issues and Solutions Within Another Control</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/' rel='bookmark' title='Local LAMP Developement &amp; User Content'>Local LAMP Developement &#038; User Content</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://c747925.r25.cf2.rackcdn.com/blog/wp-content/uploads/2009/02/xampp-objectdock.png"><img src="http://c747925.r25.cf2.rackcdn.com/blog/wp-content/uploads/2009/02/xampp-objectdock.png" alt="" title="xampp-objectdock" width="256" height="256" class="alignright size-full wp-image-633" /></a>These last few days I&#8217;ve been trying to get <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> to work on my MacBook Pro these last couple of days and it has been <em><strong>frustrating</strong></em>! It seemed I kept running into more and more problems. For those who don&#8217;t know, XAMPP is tool for developers to run a LAMP stack (Linux, Apache, MySQL, PHP) on your machine locally. I&#8217;ve been running it on my Windows machines for years, and I have been running my production servers on Linux.</p>
<p>Installing just XAMPP and getting it to run with the Control Panel was easy. All my headaches started when I tried to get my vhosts installed and working. The problem I ran into getting XAMPP to run on my MacBook Pro were the following:</p>
<ol>
<li><strong>XAMPP for Mac is different from XAMPP for Windows</strong></li>
<li><strong>Max OS X comes with a Version of Apache Installed<br />
</strong></li>
<li><strong>Mac OS X has additional permissions that are different from Linux</strong></li>
</ol>
<h2>XAMPP for Mac != XAMPP for Windows</h2>
<p>My first mistake was that I assumed that XAMPP for Mac is the same as XAMPP for Windows. After digging into it, the file structure and config files are pretty different. The php.ini file is different, and all the binary files are in /xampp/xamppfiles/bin/. On windows the binary files are in their own folders. It took me awhile to figure out where everything was at. This led me into my next problem:</p>
<h2>Mac OS X comes with a Version of Apache Installed</h2>
<p>When I was trying to debug why stuff wasn&#8217;t working, I opened up the terminal and started running commands. There is just one problem, OS X already has a version of Apache installed. So when I cd&#8217;d into the bin directory, I would execute this command:</p>
<blockquote><p>apachectrl -t -D DUMP_VHOSTS</p></blockquote>
<p>There was just one problem, it was executing the apachectl that was installed by Mac OS X, not the one for XAMPP. So it all my debugging with the config files, etc. wasn&#8217;t working. I was going insane. Finally I figured out what was going on and I had to execute this command instead:</p>
<blockquote><p>./apachectl -t -D DUMP_VHOSTS</p></blockquote>
<p>It started behaving like I expected! This lead my to my third hang up.</p>
<h2>Mac OS X has additional permissions that are different from Linux</h2>
<p>This threw me for a loop to. I don&#8217;t understand exactly why this was happening, but I kept gettinga  Permission Denied when trying to view the vhost I was trying to setup. The way I used to do it on Windows is I have a partition for all of my development files. I would have a folder at the root of that drive called SVN_Repositories that holds all the SVN Repositories I use for work. So on my MacBook Pro at / I did the same, I had my SVN_Repositories folder. So my vhost would point to a directory like with a name something like this: &#8220;/SVN_Repositories/ExampleRepo/trunk/httpdocs/&#8221;</p>
<p>So my linux side clicked in and thought &#8220;Hrm, it looks like there is something wrong with the permissions. Let me change the folder permissions to 777 just to test.&#8221; So I did that and it still didn&#8217;t work. This it made me think it still was a vhost configuration issue. So I spent hours testing all sorts of stuff and just getting more frustrating. Then I read somewhere that XAMPP can have problems with OS X&#8217;s unique permissions on addition to the FreeBSD stuff it does. It said to host the vhost content in either the Applications folder or Users folder. So I moved my SVN_Repositories folder to my Users folder so it was like this: &#8220;/Users/<em>username</em>/SVN_Repositories/ExampleRepo/trunk/httpdocs/&#8221;</p>
<p>It finally worked! So the lessons I learned were:</p>
<ul>
<li>Put your vhost content in the Users folder.</li>
<li>If you try things from the terminal, make sure you do ./apachectl so you execute the correct binary file.</li>
<li>Most of your config files are in the /Applications/xampp/etc/ folder.</li>
</ul>
<p>As always, hopefully this helps someone. Feel free to leave any questions or comments.</p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/10/14/php-video-tutorial-getting-started-installing-xampp/' rel='bookmark' title='PHP Video Tutorial – Getting Started – Installing XAMPP'>PHP Video Tutorial – Getting Started – Installing XAMPP</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/02/12/pagefindcontrol-returning-null-issues-and-solutions-within-another-control/' rel='bookmark' title='Page.FindControl() Returning Null Issues and Solutions Within Another Control'>Page.FindControl() Returning Null Issues and Solutions Within Another Control</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/' rel='bookmark' title='Local LAMP Developement &amp; User Content'>Local LAMP Developement &#038; User Content</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2009/02/14/xampp-for-mac-my-frustrations-solutions/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>PHP Video Tutorial – Getting Started – Installing XAMPP</title>
		<link>http://www.justincarmony.com/blog/2008/10/14/php-video-tutorial-getting-started-installing-xampp/</link>
		<comments>http://www.justincarmony.com/blog/2008/10/14/php-video-tutorial-getting-started-installing-xampp/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 01:32:30 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/?p=224</guid>
		<description><![CDATA[I&#8217;ve decided to give this a try and make a video on Installing &#38; Running XAMPP, the easy to instal web stack for developing websites on your own computer. This video is for beginners who need help walking through the installation of XAMPP. View Video Tutorial &#8211; Installing XAMPP If you have any questions or ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/04/26/zend-studio-basic-intellisense-tutorial/' rel='bookmark' title='Zend Studio – Basic Intellisense Tutorial'>Zend Studio – Basic Intellisense Tutorial</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/07/its-time-for-campaignin-elections-video/' rel='bookmark' title='It&#8217;s Time for Campaignin&#8217; &#8211; Elections Video'>It&#8217;s Time for Campaignin&#8217; &#8211; Elections Video</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/' rel='bookmark' title='Local LAMP Developement &amp; User Content'>Local LAMP Developement &#038; User Content</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://c747925.r25.cf2.rackcdn.com/blog/wp-content/uploads/2008/10/12381.jpg"><img class="alignright size-medium wp-image-229" title="12381" src="http://c747925.r25.cf2.rackcdn.com/blog/wp-content/uploads/2008/10/12381-300x90.jpg" alt="" width="210" height="63" /></a></p>
<p>I&#8217;ve decided to give this a try and make a video on Installing &amp; Running XAMPP, the easy to instal web stack for developing websites on your own computer. This video is for beginners who need help walking through the installation of XAMPP.</p>
<p><a href="http://www.justincarmony.com/blog/videos/php_tutorial_xampp/php_tutorial_xampp.html"><strong>View Video Tutorial &#8211; Installing XAMPP<br />
</strong></a></p>
<p>If you have any questions or comments, feel free to leave them here. If you enjoyed this tutorial and are in need of a web server, check out <a href="http://www.shareasale.com/r.cfm?b=113509&amp;u=301560&amp;m=15960&amp;urllink=&amp;afftrack=" target="_blank">Layered Tech</a>, a server host that I <a href="http://www.justincarmony.com/blog/recommendations/layered-tech/">highly recommend.</a></p>
<p><strong>This blog is hosted on:</strong></p>
<p><a href="http://www.shareasale.com/r.cfm?b=113509&amp;u=301560&amp;m=15960&amp;urllink=&amp;afftrack=" target="_blank"><img src="http://www.shareasale.com/image/layeredTechnologies.gif" border="0" alt="" /><br />
</a></p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/04/26/zend-studio-basic-intellisense-tutorial/' rel='bookmark' title='Zend Studio – Basic Intellisense Tutorial'>Zend Studio – Basic Intellisense Tutorial</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/07/its-time-for-campaignin-elections-video/' rel='bookmark' title='It&#8217;s Time for Campaignin&#8217; &#8211; Elections Video'>It&#8217;s Time for Campaignin&#8217; &#8211; Elections Video</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/' rel='bookmark' title='Local LAMP Developement &amp; User Content'>Local LAMP Developement &#038; User Content</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2008/10/14/php-video-tutorial-getting-started-installing-xampp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Local LAMP Developement &amp; User Content</title>
		<link>http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/</link>
		<comments>http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 20:37:26 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/?p=213</guid>
		<description><![CDATA[I&#8217;ve come up with a simple solution for handling user uploaded content when trying to work in a local development environment. I&#8217;ve installed XAMPP on my windows machine and at the beginning of every week I take a database snapshot and update my local database. I had a pretty smooth system going with one problem: ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/' rel='bookmark' title='ASP .NET &amp; System.Threading.ThreadAbortException Error'>ASP .NET &#038; System.Threading.ThreadAbortException Error</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/06/17/os-x-and-tabs-skipping-drop-down-controls/' rel='bookmark' title='OS X and Tabs &#8211; Skipping Drop Down Controls'>OS X and Tabs &#8211; Skipping Drop Down Controls</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come up with a simple solution for handling user uploaded content when trying to work in a local development environment. I&#8217;ve installed XAMPP on my windows machine and at the beginning of every week I take a database snapshot and update my local database. I had a pretty smooth system going with one problem: user uploaded content.</p>
<p>When working with social networking sites, many times they allow for users to upload their own videos, pictures, etc. My current project wasn&#8217;t different, but I didn&#8217;t want to download 80GB of user content every week to store on my PC. I wanted a way to point my browser to the live server to get recent images, etc.</p>
<p>My solution was simple: .htaccess file using a 301 redirect. I basically told my local apache server to return a HTTP status of 301 (Moved Permanently) and point the browser to the live content. I created a .htaccess file inside the &#8220;uploads&#8221; directory and added one line of code:</p>
<code class="code">Redirect 301 /uploads http://www.example.com/uploads</code>
<p>I restarted apache and now when I work locally, I can still see all of the user&#8217;s photos and uploaded content. Works like a champ!</p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/' rel='bookmark' title='ASP .NET &amp; System.Threading.ThreadAbortException Error'>ASP .NET &#038; System.Threading.ThreadAbortException Error</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/06/17/os-x-and-tabs-skipping-drop-down-controls/' rel='bookmark' title='OS X and Tabs &#8211; Skipping Drop Down Controls'>OS X and Tabs &#8211; Skipping Drop Down Controls</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2008/10/10/local-lamp-developement-user-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 26/56 queries in 0.021 seconds using memcached
Content Delivery Network via Rackspace Cloud Files: c747925.r25.cf2.rackcdn.com

Served from: www.justincarmony.com @ 2012-02-07 20:38:57 -->
