<?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>Rich Bui &#187; Apache</title>
	<atom:link href="http://richbui.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://richbui.com</link>
	<description>Welcome to my website.</description>
	<lastBuildDate>Mon, 19 Sep 2011 15:23:49 +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>WordPress 2.6 and EXIF Extraction</title>
		<link>http://richbui.com/2008/08/02/wordpress-26-and-exif-extraction/</link>
		<comments>http://richbui.com/2008/08/02/wordpress-26-and-exif-extraction/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 07:08:21 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[AN Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Autica]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[IPTC]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MidPhase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>

		<guid isPermaLink="false">http://bui4ever.com/?p=943</guid>
		<description><![CDATA[I&#8217;ve been having this problem for a better part of almost two weeks now. I finally figured out the solution to the problem. With WordPress 2.6, one of the new built in features is the ability to extract EXIF data from a JPEG, store it in the database, and allow you to make a call [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having this problem for a better part of almost two weeks now. I finally figured out the solution to the problem. With WordPress 2.6, one of the new built in features is the ability to extract <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format">EXIF</a> data from a JPEG, store it in the database, and allow you to make a call for it. This is to complement the new built in gallery feature that was introduced in WordPress 2.5.<span id="more-943"></span></p>
<div id="attachment_945" class="wp-caption alignright" style="width: 267px"><a href="http://bui4ever.com/files/2008/08/picture-2.png"><img class="size-medium wp-image-945" src="http://bui4ever.com/files/2008/08/picture-2.png" alt="MAMP stands for Mac, Apache, MySQL, and PHP. It's great software that let's you develop offline." width="257" height="79" /></a><p class="wp-caption-text">MAMP stands for Mac, Apache, MySQL, and PHP. It&#039;s great software that let&#039;s you develop offline.</p></div>
<p>My problem had been that no matter what images I would upload, the EXIF data was not being extracted. Interestingly enough, the <a href="http://en.wikipedia.org/wiki/International_Press_Telecommunications_Council">IPTC</a> tags were. People kept telling me that maybe it was my images and the EXIF data didn&#8217;t exist in the images I was uploading. But that wasn&#8217;t the problem because I could upload it to Flickr and the EXIF would display fine. I also checked the EXIF in Photoshop CS3 and it was fine also. Couldn&#8217;t figure out the issue.</p>
<p>I had about given up on ever being able to display the EXIF data on my blog until today, I was making some design changes to this theme on <a href="http://bui4ever.com/macs/mamp">MAMP</a> and decided to just layout the look of the EXIF data just in case I figured out a solution one day and to my surprise, the EXIF data showed up!</p>
<div id="attachment_944" class="wp-caption alignleft" style="width: 448px"><a href="http://bui4ever.com/files/2008/08/picture-1.png"><img class="size-medium wp-image-944" src="http://bui4ever.com/files/2008/08/picture-1.png" alt="This is what you should see in your PHPInfo to know that the EXIF extension has loaded correctly." width="438" height="114" /></a><p class="wp-caption-text">This is what you should see in your PHPInfo to know that the EXIF extension has loaded correctly.</p></div>
<p>After a bit of digging, turns out that the PHP EXIF extension was not enabled on my VPS (virtual private server). The beauty of MAMP is that practically all the extensions are turned on and I was able to immediately see the problem.</p>
<p>Now enabling the EXIF extension on PHP takes a bit of work and the wonderful techs at my web host, <a href="http://autica.com">Autica</a> (a part of <a href="http://midphase.com">MidPhase</a> that is also part of <a href="http://anhosting.com">AN Hosting</a>), are currently working on getting it enabled for me. It sounds easy, but it&#8217;s complicated and easy to screw up if you&#8217;re not careful. You have to uncomment the line that executes the EXIF extension in your php.ini file and then recompile Apache. I think most people on shared hosting won&#8217;t have to worry about this, depending on host, it should be enabled and compiled. But if you notice that the EXIF data isn&#8217;t be extracted, then create a phpinfo file and run it on your web server to see if EXIF is installed. Now I have to go back and reupload all the images that I uploaded when the EXIF extension wasn&#8217;t active. Fortunately that only means some 9 albums as I hadn&#8217;t put up all the old and new albums just yet.</p>
<p>Also if you are interested in the code that is necessary to extract the EXIF, <a href="http://www.bloggingtips.com/2008/07/20/wordpress-gallery-and-exif/">please see this post by Sarah</a> as this was the first post I could find via Google that showed the code on how to do it.</p>
<p>[UPDATE 2008-08-02: My webhost has successfully enabled the EXIF extension! Apparently what was causing the delay was that the Apache version, for some reason, wouldn't recompile with <a href="http://eaccelerator.net/">eaccelerator</a>. So now Apache has been recompiled with EXIF but no eaccelerator until a partch by Apache comes out. Thanks Autica!] </p>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2008/08/02/wordpress-26-and-exif-extraction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MAMP: Mac, Apache, MySQL, PHP</title>
		<link>http://richbui.com/2006/12/10/mamp/</link>
		<comments>http://richbui.com/2006/12/10/mamp/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 05:27:28 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Adobe Photoshop CS2]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bui4ever.com/?p=129</guid>
		<description><![CDATA[Introduction Before my friend introduced me to MAMP (Mac + Apache + MySQL + PHP), I wasn&#8217;t really able to do much web producing commuting to work. I was limited to making site mockups using Adobe Photoshop CS2 and some basic coding, but I couldn&#8217;t actually make the pages until I had internet connection so [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Before my friend introduced me to MAMP (Mac + Apache + MySQL + PHP), I wasn&#8217;t really able to do much web producing commuting to work. I was limited to making site mockups using Adobe Photoshop CS2 and some basic coding, but I couldn&#8217;t actually make the pages until I had internet connection so I could upload my test site to the sandbox.</p>
<p>Then came along MAMP, an all-in-one application for Mac OS X that allows you to locally host a web server! This was fantastic because now I can develop, hard code, check changes, and make all the changes I want without having an internet connection. It also lets me test run PHP codes or scripts that may be unstable and vulnerable without risking the web server.</p>
<h3>How To Install</h3>
<p>Installing and configuring MAMP is very, very easy.</p>
<ol>
<li><a href="http://www.mamp.info/en/index.php">Download the latest copy of MAMP</a> from the MAMP website. After it is done downloading, double click the downloaded file to unzip the contents.</li>
<li>Drag the MAMP folder into the Applications folder.<br />
<img class="inside-post-image" src="http://www.bui4ever.com/gallery2/g2data/albums/website/mamp/02-MAMP_install.jpg" alt="MAMP Install 02" /></li>
<li>Once MAMP has completed copying into the Applications folder, you can find the executable at Applications&gt;MAMP&gt;MAMP.<br />
<img class="inside-post-image" src="http://www.bui4ever.com/gallery2/g2data/albums/website/mamp/03-MAMP_install.jpg" alt="MAMP Install 03" /></li>
<li>When you start it up, you&#8217;ll notice two things will appear: (1) the MAMP admin panel and (2) http://localhost:8888/MAMP/?language=English loaded into your default web browser.</li>
<li>From the admin panel you can stop and start the Apache and MySQL servers.<br />
<img class="inside-post-image" src="http://www.bui4ever.com/gallery2/g2data/albums/website/mamp/04-MAMP_install.jpg" alt="MAMP Install 04" /></li>
<li>Your default web url is http://localhost:8888/ and your public folder is located (by default) at Applications&gt;MAMP&gt;htdocs. So anything that is placed within the htdocs folder will appear at http://localhost:8888/. Please note that this web address is local only and others will not be able to see it or the contents even if your computer is connected to the internet. I&#8217;ve seen where some people have mistakingly thought that MAMP can be used as a live web server. No, this was only designed to allow people to work locally.</li>
<li>To change the default location of what folder will be the web folder, in MAMP, go to the menu bar and select Preferences and then select the Apache tab. Enter or select a new location.<br />
<img class="inside-post-image" src="http://www.bui4ever.com/gallery2/g2data/albums/website/mamp/05-MAMP_install.jpg" alt="MAMP Install 05" /></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2006/12/10/mamp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mac OS X: Setting Up Apache, MySQL, PHP and Mod_Rewrite</title>
		<link>http://richbui.com/2006/06/05/mac-os-x-setting-up-apache-mysql-php-and-mod_rewrite/</link>
		<comments>http://richbui.com/2006/06/05/mac-os-x-setting-up-apache-mysql-php-and-mod_rewrite/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 06:23:42 +0000</pubDate>
		<dc:creator>Richard Bui</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mod_Rewrite]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[TextDrive.com]]></category>

		<guid isPermaLink="false">http://bui4ever.com/?p=71</guid>
		<description><![CDATA[Please note that I did not write this. This is reprinted from TextDrive written by SuperJared. The only thing that has been changed is formating, all else is exactly as the author written. This is here for my personal reference. Step 1: Enable Apache. Go to System Preferences &#62; Sharing and enable Personal Web Sharing. [...]]]></description>
			<content:encoded><![CDATA[<div class="announcement">Please note that I did not write this. This is reprinted from <a href="http://forum.textdrive.com/viewtopic.php?id=9279">TextDrive</a> written by <a href="http://superjared.com/">SuperJared</a>. The only thing that has been changed is formating, all else is exactly as the author written. This is here for my personal reference.</div>
<h3>Step 1: Enable Apache.</h3>
<p>Go to <strong>System Preferences</strong> &gt; <strong>Sharing </strong>and enable <strong>Personal Web Sharing</strong>. Verify that Apache has started by opening a browser and pointing it to http://localhost/.</p>
<h3>Step 2: Install MySQL.</h3>
<p>This is almost as easy as enabling Apache since MySQL has excellent support for Mac OS X.</p>
<p>Go to <a href="http://dev.mysql.com/downloads/">http://dev.mysql.com/downloads/</a> and pick out the latest OS X flavored package. Make sure to get the right one for your architecture. Mount the dmg and you should see two installer packages: one for the MySQL database, and the other installs the MySQL startup item.</p>
<p>The easiest thing to do is just run the standard installer for the database. It should be called something like <strong>mysql-standard-VERSION-apple-ETC.pkg</strong>. After that is installed, install the file <strong>MySQL.prefPane</strong> by double-clicking it. This is a panel in the System Preferences that allows you to start, stop and configure the database for automatic start.</p>
<p>Your database is installed. Look into the MySQL documentation if you want to secure it, because right now, the user name is <strong>root</strong> and there is no password.</p>
<h2>Step 3: Install PHP.</h2>
<p>Go to <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a> and download the latest source version. You&#8217;ll want to put this in your directory (that&#8217;s my preference, at least), so open up a terminal:</p>
<pre>cd /usr/local/src/ sudo fetch http://path/to/the/latest/download/from/php.net/ sudo tar zxvf php-VERSION-ETC.tar.gz cd php-VERSION</pre>
<p>At this point you&#8217;re in the PHP source directory. We&#8217;ll now configure our PHP. <em><strong>NOTE</strong>: This example has the bare minimum of options to get this all working properly. See the PHP documentation for more configure options.</em></p>
<pre>sudo make sudo make install sudo cp php.ini-dist /usr/local/lib/php.ini</pre>
<p>Make sure to edit to your desired settings. Now we need to edit <strong>httpd.conf</strong>:</p>
<pre>sudo open -a TextEdit /etc/httpd/httpd.conf</pre>
<p>And make sure these lines are in their proper locations:</p>
<pre>LoadModule php5_module libexec/libphp5.so # Should have been added already AddModule mod_php5.c # Should have been added already AddType application/x-httpd-php .php</pre>
<p>Now restart Apache:</p>
<pre>sudo apachectl graceful</pre>
<p>And verify that the install worked by creating a file called <strong>test.php</strong> under your Sites directory (/Users/myusername/Sites/) with the following text:</p>
<pre>&lt;?php phpinfo(); ?&gt;</pre>
<p>Go to http://localhost/~myusername/test.php to verify that it worked.</p>
<h3>Step 4: Enable mod_rewrite. <em>(Optional)</em></h3>
<p>Enabling <strong>mod_rewrite</strong> requires additional modification of the <strong>httpd.conf</strong> (and related) files so we can use <strong>.htaccess</strong> files.</p>
<pre>sudo open -a TextEdit /etc/httpd/httpd.conf</pre>
<p>Under this line:</p>
<pre>&lt;Directory "/Library/WebServer/Documents"&gt;</pre>
<p>You&#8217;ll see:</p>
<pre>AllowOverride None</pre>
<p>Change this to:</p>
<pre>AllowOverride All</pre>
<p>You&#8217;ll also want to modify your user&#8217;s configuration file:</p>
<pre>sudo open -a TextEdit /etc/httpd/users/myusername.conf</pre>
<p>The <strong>Options</strong> directive must include <strong>FollowSymLinks</strong>, and the <strong>AllowOverride</strong> should be <strong>AuthConfig All</strong>. Example:</p>
<pre>&lt;Directory "/Users/myusername/Sites/"&gt; Options Indexes MultiViews FollowSymLinks AllowOverride AuthConfig All Order allow,deny Allow from all &lt;/Directory&gt;</pre>
<p>Restart Apache and you&#8217;ll be able to use <strong>.htaccess</strong> files.</p>
]]></content:encoded>
			<wfw:commentRss>http://richbui.com/2006/06/05/mac-os-x-setting-up-apache-mysql-php-and-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

