<?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>dragffy.com &#187; Leopard</title>
	<atom:link href="http://dragffy.com/blog/posts/category/operating-system/osx/leopard/feed" rel="self" type="application/rss+xml" />
	<link>http://dragffy.com/blog</link>
	<description>The development, documentation, and blogging domain of Gabriel Dragffy.</description>
	<lastBuildDate>Sun, 29 Apr 2012 11:55:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Apache Virtual Hosts on OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard#comments</comments>
		<pubDate>Sun, 31 May 2009 13:42:49 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=124</guid>
		<description><![CDATA[If you develop multiple sites and you need virtual hosting functionality, scroll down to the end of the /private/etc/apache2/httpd.conf file and uncomment the following: # Include /private/etc/apache2/extra/httpd-vhosts.conf Next, you’ll need to setup whatever virtual hosts you have in the virtual hosts file /private/etc/apache2/extra/httpd-vhosts.conf You need to make an entry in the httpd-vhosts.conf file like so: [...]]]></description>
			<content:encoded><![CDATA[<p>If you develop multiple sites and you need virtual hosting functionality, scroll down to the end of the <code>/private/etc/apache2/httpd.conf</code> file and uncomment the following:</p>
<p><code># Include /private/etc/apache2/extra/httpd-vhosts.conf</code></p>
<p>Next, you’ll need to setup whatever virtual hosts you have in the virtual hosts file <code>/private/etc/apache2/extra/httpd-vhosts.conf</code></p>
<p>You need to make an entry in the httpd-vhosts.conf file like so:</p>
<pre>
&lt;virtualhost *:80&gt;
   ServerName beta-site-1.com
   ServerAlias www.beta-site-1.com
   ServerAdmin webmaster@beta-site-1.com
   ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
   CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common

   DocumentRoot "/Library/WebServer/beta-site-1"
   ScriptAlias /cgi-bin/ "/Library/WebServer/beta-site-1/cgi-bin"
   <directory "/Library/WebServer/beta-site-1">
     Options FollowSymLinks MultiViews Includes
     AllowOverride All
     Order allow,deny
     Allow from all
   </directory>
&lt;/virtualhost&gt;
</pre>
<p>The examples provided by Apple  in the vhosts file are slightly incorrect and if you use the CustomLog lines as is you will get errors the following errors if you run: <code>apachectl -t -D DUMP_VHOSTS</code>:<br />
<code>Syntax error on line 40 of /private/etc/apache2/extra/httpd-vhosts.conf:<br />
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs)</code></p>
<p>This is because<br />
<code>CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log common</code></p>
<p>Should actually read:<br />
<code>CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/apache-virtual-hosts-on-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get PHP MySQL  working on Leopard OS X</title>
		<link>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x</link>
		<comments>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x#comments</comments>
		<pubDate>Sun, 31 May 2009 12:45:06 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=122</guid>
		<description><![CDATA[Installing MySQL on OS X has become infinately easier since you can now download an Apple DMG from the MySQL website which takes care of the fine detail. However, one thing that changed with Leopard is the socket for Mysql. It moved to /private/tmp, so you may need to configure your php.ini file to point [...]]]></description>
			<content:encoded><![CDATA[<p>Installing MySQL on OS X has become infinately easier since you can now download an Apple DMG from the MySQL website which takes care of the fine detail.</p>
<p>However, one thing that changed with Leopard is the socket for Mysql. It moved to <code>/private/tmp</code>, so you may need to configure your <code>php.ini</code> file to point it to the new location.</p>
<p>To do so, open the file <code>/private/etc/php.ini</code>, (if no such file exists, then make a copy of <code>/private/etc/php.ini.default</code> and  rename it to <code>php.ini</code>) and edit that.</p>
<p>You have two lines to modify:</p>
<p><code>mysql.default_socket =</code></p>
<p>becomes:</p>
<p><code>mysql.default_socket = /private/tmp/mysql.sock</code></p>
<p>and <code>mysqli.default_socket =</code></p>
<p>becomes:</p>
<p><code>mysqli.default_socket = /private/tmp/mysql.sock</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/get-php-mysql-working-on-leopard-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add items to environment path on OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard#comments</comments>
		<pubDate>Sun, 31 May 2009 12:39:07 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=119</guid>
		<description><![CDATA[Go to terminal and type: vim ~/.profile Assuming you want to add the path /usr/local/bin make .profile look like this: PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin Separating each item with a colon.]]></description>
			<content:encoded><![CDATA[<p>Go to terminal and type:<br />
<code>vim ~/.profile</code></p>
<p>Assuming you want to add the path <code>/usr/local/bin</code> make <code>.profile</code> look like this:<br />
<code>PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin</code></p>
<p>Separating each item with a colon.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/add-items-to-environment-path-on-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3 &#8211; OS X Memory Hog</title>
		<link>http://dragffy.com/blog/posts/firefox-3-os-x-memory-hog</link>
		<comments>http://dragffy.com/blog/posts/firefox-3-os-x-memory-hog#comments</comments>
		<pubDate>Fri, 18 Jul 2008 14:55:00 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Firefox 3]]></category>
		<category><![CDATA[web browsers]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/?p=63</guid>
		<description><![CDATA[A good article has been written on PC Mech about Firefox 3 being a memory hog. The author got slated by some, but I support the author. From my first hand experience FF3 on OS X Leopard has managed to eat up 650MB RAM with just a few tabs open. Full article can be found [...]]]></description>
			<content:encoded><![CDATA[<p>A good article has been written on PC Mech about Firefox 3 being a memory hog. The author got slated by some, but I support the author. From my first hand experience FF3 on OS X Leopard has managed to eat up 650MB RAM with just a few tabs open.</p>
<p>Full article can be found here: http://www.pcmech.com/article/firefox-3-hogs-memory-like-crazy/</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/firefox-3-os-x-memory-hog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear the DNS cache in OS X Leopard</title>
		<link>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard</link>
		<comments>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard#comments</comments>
		<pubDate>Tue, 18 Mar 2008 16:35:17 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard</guid>
		<description><![CDATA[dscacheutil -flushcache]]></description>
			<content:encoded><![CDATA[<p><code>dscacheutil -flushcache</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/clear-the-dns-cache-in-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping user data seperate from system data on Apple OS X</title>
		<link>http://dragffy.com/blog/posts/keeping-user-data-seperate-from-system-data-on-apple-os-x</link>
		<comments>http://dragffy.com/blog/posts/keeping-user-data-seperate-from-system-data-on-apple-os-x#comments</comments>
		<pubDate>Mon, 25 Feb 2008 12:54:13 +0000</pubDate>
		<dc:creator>Gabe</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tiger]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://dragffy.com/blog/posts/keeping-user-data-seperate-from-system-data-on-apple-os-x</guid>
		<description><![CDATA[One of the things I grew to like about Linux was the /home directory. Any data for a user was always stored there. Furthermore, you could easily have that home directory on a different disc so when you deleted your system, you didn&#8217;t lose your user data too. Under Windows I did the same thing [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I grew to like about Linux was the /home directory. Any data for a user was always stored there. Furthermore, you could easily have that home directory on a different disc so when you deleted your system, you didn&#8217;t lose your user data too.</p>
<p><span id="more-18"></span></p>
<p>Under Windows I did the same thing by relocating &#8216;My Documents&#8217; but it was never very succesful because remnants of your data always remained intermingled with the system. Having moved to OS X I found the default installation was to dump everything on one partition. OS X is a superior system and doesn&#8217;t suffer as badly , but you are still inconvenienced  if you want to reformat and start afresh.</p>
<p>I did read several articles on the net about keeping your user data seperate, but all were complicated. I have developed a method that is very safe and easy to do. You will need to use the Terminal application to type several commands.</p>
<p>The easiest way to go about this is to wait until you are ready to reformat again. Make sure you <strong>BACKUP ALL YOUR DATA ON TO AN EXERNAL DRIVE</strong>. Restart with the installation disc. Once it starts up go to Utilities and choose Disk Utility.  From the left pane select your internal hard drive in my case &#8220;74.5GB ST98823AS&#8221; and now you can choose the &#8220;Partition&#8221; tab. Under &#8220;volume scheme&#8221; choose a 2 partition layout. It will now show your disc split in two at about half way, drag the slider up/down so that you end up giving about 20GB to the top part. This is where your system and applications will be installed. Name the paritions if you so wish and apply changes. Then continue the installation as normal.</p>
<p>When you boot in to your new system start up the Terminal application. What follows next are some commands for you to type in to the terminal. These will be run as a super-user (hence sudo) and will require you to enter your password to execute properly. Ensure you get these commands correct as you will regret doing a rush-job here. Firstly, you should remember how you named your partitions, if you can&#8217;t remember then have a look in Finder. Or even better: type the following in the terminal:</p>
<p><code>ls /Volumes</code></p>
<p>I will refer to the paritions as &#8220;system&#8221; and &#8220;userpart&#8221;, replace these with the correct names of your partitions. Now, move your user folders off the system partition on to userpart:</p>
<p><code>sudo mv /Volumes/system/Users/ /Volumes/userpart/</code></p>
<p>Then move the old &#8220;Users&#8221; folder out of the way, and create a link back to it:</p>
<p><code>sudo mv /Users /Users.bk<br />
sudo ln -s /Volumes/userpart/Users /Users</code></p>
<p>What you have done is to move the Users directory on to another partition and then create a softlink back to it. This means that all applications and OS X will still continue to use /Users on the system drive, but that just points to the user drive. The advantage is you don&#8217;t need to perform any special configuration to inform OS X or your applications of the change, they are unware of any change.</p>
<p>If you have any problems don&#8217;t blame me!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragffy.com/blog/posts/keeping-user-data-seperate-from-system-data-on-apple-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

