<?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>Blog.ubrious &#187; Apache</title>
	<atom:link href="http://blog.ubrio.us/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ubrio.us</link>
	<description>An Ordinary Web Developer's Blog</description>
	<lastBuildDate>Fri, 26 Mar 2010 21:00:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP5 With GD Support on OS X</title>
		<link>http://blog.ubrio.us/php/php5-with-gd-support-on-os-x/</link>
		<comments>http://blog.ubrio.us/php/php5-with-gd-support-on-os-x/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 02:39:15 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Because I'll Forget]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[gd]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/because-ill-forget/php5-with-gd-support-on-os-x/</guid>
		<description><![CDATA[Because I&#8217;ll Forget #15901:
Firstly, let me just say that compiling PHP has never been this difficult before. It shouldn&#8217;t be difficult at all actually. So heres the basic run down: I need SOAP, GD, SimpleXML and a few other miscellaneous extensions to make all my dev apps work properly &#8212; this went smoothly on the [...]]]></description>
			<content:encoded><![CDATA[<h3>Because I&#8217;ll Forget #15901:</h3>
<p>Firstly, let me just say that compiling PHP has never been this difficult before. It shouldn&#8217;t be difficult at all actually. So heres the basic run down: I need SOAP, GD, SimpleXML and a few other miscellaneous extensions to make all my dev apps work properly &#8212; this went smoothly on the ppc laptop, and I (stupidly) assumed that the Intel would be even easier. My first couple attempts were splattered with GD errors driving me to the brink of insanity as I scrambled up all the pre-requisites. Finally, I had all dependencies met and the configure script STILL would not quit barfing on me. I gave up and finally just installed PHP without GD support (naturally ruining the one project I&#8217;m working on currently). I gave up, until I felt feisty enough to give it another shot.</p>
<p>The configure script was choking on a linking error (<strong>GD build test failed. Please check the config.log for details.</strong>) and kept telling me to hunt config.log for some answers. It turns out that ./configure was attempting to link with shell variables that were empty. </p>
<p>Looks something like &#8220;<code>-L: directory name missing</code>&#8220;.</p>
<p><strong>The solution</strong></p>
<p>Hacking my way through the configure file you get to the culprit. </p>
<p><code class='prettyprint'>LIBS=" -L$GD_LIB $GD_SHARED_LIBADD  $LIBS"</code></p>
<p>Turns out that <code>echo $GD_LIB</code> is blank and being a major pain in the ass. To fix this, just edit the line to look more like: <code>LIBS=" $GD_SHARED_LIBADD  $LIBS"</code>. After that, try a <code>make clean</code>, <code>rm config.cache</code> and try to compile again.  Hopefully this will save you a couple hours of hating life.</p>
<p><strong>Resources:</strong></p>
<ul>
<li><a href="http://www.phpmac.com/articles.php?view=3" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.phpmac.com/articles.php?view=3&amp;referer=');">http://www.phpmac.com/articles.php?view=3</a> &#8212; good instructions for getting those GD dependencies.</li>
<li><a href="http://www.phpmac.com/articles.php?view=159" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.phpmac.com/articles.php?view=159&amp;referer=');">http://www.phpmac.com/articles.php?view=159</a> &#8212; more insight from the same site</li>
<li><a href="http://www.afp548.com/article.php?story=20041104230209410" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.afp548.com/article.php?story=20041104230209410&amp;referer=');">http://www.afp548.com/article.php?story=20041104230209410</a> &#8212; more about GD dependencies, and a little more insight into problems</li>
<li><a href="http://www.thescripts.com/forum/thread670263.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.thescripts.com/forum/thread670263.html?referer=');">http://www.thescripts.com/forum/thread670263.html</a> &#8212; explains the final solution in more depth</li>
</ul>
<p><strong>My Configure Script</strong><br />
<small>It might be beefed up in the future, but I&#8217;m just relieved to have it compiled &#038; working right now &#8212; I&#8217;m exhausted</small></p>
<pre class='prettyprint'>
./configure --prefix=/usr/local/php5 \
 --mandir=/usr/share/man \
 --infodir=/usr/share/info \
 --sysconfdir=/etc \
 --enable-cli \
 --enable-soap \
 --with-ldap=/usr \
 --with-xml \
 --with-libxml-dir=/usr/local \
 --with-zlib \
 --with-zlib-dir=/usr \
 --with-openssl \
 --enable-exif \
 --enable-ftp \
 --enable-mbstring \
 --enable-mbregex \
 --enable-dbx \
 --enable-sockets \
 --with-curl=/usr \
 --with-mysql=/usr/local/mysql \
 --with-mysqli=/usr/local/mysql/bin/mysql_config \
 --with-apxs \
 --with-gd \
 --with-jpeg-dir=/usr \
 --with-png-dir=/usr \
 --with-freetype-dir=/usr \
 --with-xpm-dir=/usr
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/php/php5-with-gd-support-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Subdomain Localhost &#8212; Ubuntu / OSX</title>
		<link>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/</link>
		<comments>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 23:48:48 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Nix]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/gnome/how-to-subdomain-localhost-ubuntu-osx/</guid>
		<description><![CDATA[Using Gnome + Ubuntu (7.04 Feisty Fawn) + Apache 2
Step 1:
In gnome goto System -> Administration -> Network and click on the &#8216;Hosts&#8217; tab
Step 2:
For your normal localhost (127.0.0.1) double-click or hit &#8216;properties&#8217; to edit it. Add your list of subdomains under localhost.
*Ignore the text in this pic, I overlooked that you had to include [...]]]></description>
			<content:encoded><![CDATA[<h3>Using <a href="http://www.gnome.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.gnome.org/?referer=');">Gnome</a> + <a href="http://www.ubuntu.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ubuntu.com/?referer=');">Ubuntu (7.04 Feisty Fawn)</a> + Apache 2</h3>
<p><strong>Step 1:</strong><br />
In gnome goto System -> Administration -> Network and click on the &#8216;Hosts&#8217; tab</p>
<p><strong>Step 2:</strong><br />
For your normal localhost (127.0.0.1) double-click or hit &#8216;properties&#8217; to edit it. Add your list of subdomains under localhost.</p>
<p><em>*<strong>Ignore the text in this pic, I overlooked that you had to include _all_ aliases in the same box. Whoops</strong></em><br />
<img src="http://pic.ubrio.us/blog_images/subdomain/host-alias-settings.png" /></p>
<p><strong>Step 3:</strong><br />
<small>The fun step</small><br />
Open a terminal and type <code>sudo gedit /etc/apache2/sites-available/default</code> &#8212; assuming you&#8217;re using the &#8220;default&#8221; httpd.conf. Chances are that you will be, and if you aren&#8217;t you should know what file I&#8217;m talking about anyway. (If you don&#8217;t, just load one of the enabled apache configuration files)</p>
<p>Change these lines:</p>
<pre>
NameVirtualHost *
&lt;VirtualHost *>
</pre>
<p><em>to</em></p>
<pre>
NameVirtualHost 127.0.0.1
&lt;VirtualHost 127.0.0.1>
</pre>
<p><strong>Step 4:</strong><br />
Add the following (for each subdomain you made) &#8212; changing the ServerName to whatever you aliased in the network host dialogue and DocumentRoot to wherever you want the subdomain to point.</p>
<pre>
&lt;VirtualHost 127.0.0.1>
	ServerName mysql.localhost
	DocumentRoot /var/www/phpmyadmin
&lt;/VirtualHost>
</pre>
<p><strong>Step 5:</strong><br />
In a terminal type: <code>sudo apache2ctl restart</code><br />
When that finishes, browse to http://mysql.localhost and you should see phpMyAdmin (going by my example)</p>
<h3>On OSX + Apache 1.33</h3>
<p><strong>Step 1:</strong><br />
Open /Applications/Utilities/NetInfo Manager and click on &#8220;machines&#8221;<br />
I usually just duplicate the localhost settings, or just create a new record below localhost that is something like:</p>
<p>ip_address: 127.0.0.1<br />
name: mysql.localhost<br />
serves: ./local</p>
<p><em>Click for bigger version</em><br />
<a href="http://pic.ubrio.us/blog_images/subdomain/osx-host-dialog.png" rel="gallery[a]" title="This is how my hosts dialog looks on OSX"  class='lightview' onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/subdomain/osx-host-dialog.png?referer=');"><img src="http://pic.ubrio.us/blog_images/subdomain/osx-host-dialog-sm.png" /></a></p>
<p><strong>Step 2:</strong><br />
Repeat Steps 3-5 above only editing &#8220;/etc/httpd/users/{yourname}.conf&#8221; instead.</p>
<p><em>Click for bigger version</em><br />
<a href="http://pic.ubrio.us/blog_images/subdomain/config-changes.png" rel="gallery[a]" class='lightview' title="This is how my httpd.conf file looks on OSX" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/subdomain/config-changes.png?referer=');"><img src="http://pic.ubrio.us/blog_images/subdomain/config-changes-sm.png" /></a></p>
<p>Restart Apache and hopefully all went well. I found this useful because I hate typing unnecessary paths <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
