<?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>MMISoftware Blog &#187; webserver</title>
	<atom:link href="http://www.mmisoftware.co.uk/weblog/tag/webserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mmisoftware.co.uk/weblog</link>
	<description>News and views of Mac OS X and iPhone Programming</description>
	<lastBuildDate>Fri, 07 Oct 2011 00:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mac OS X 10.5 (Leopard) &#8211; Webserver (Apache), MySQL and php</title>
		<link>http://www.mmisoftware.co.uk/weblog/2007/10/28/mac-os-x-105-leopard-webserver-apache-mysql-and-php/</link>
		<comments>http://www.mmisoftware.co.uk/weblog/2007/10/28/mac-os-x-105-leopard-webserver-apache-mysql-and-php/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 20:23:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.mmisoftware.co.uk/weblog/2007/10/28/mac-os-x-105-leopard-webserver-apache-mysql-and-php/</guid>
		<description><![CDATA[I have just got around to checking out some of my php/MySQL websites I have on my MacBook after upgrading to Mac OS X 10.5 (Leopard). And the good news is everything appears to work, but a few tweaks were needed. After upgrading to Mac OS X 10.5 (Leopard) the webserver was turned off (security?). [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.mmisoftware.co.uk%2Fweblog%2F2007%2F10%2F28%2Fmac-os-x-105-leopard-webserver-apache-mysql-and-php%2F&amp;via=mmisoftware&amp;text=Mac+OS+X+10.5+%28Leopard%29+-+Webserver+%28Apache%29%2C+MySQL+and+php&amp;related=mmisoftware&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fwww.mmisoftware.co.uk%2Fweblog%2F2007%2F10%2F28%2Fmac-os-x-105-leopard-webserver-apache-mysql-and-php%2F"  class="twitter-share-button">Tweet</a></div><p>I have just got around to checking out some of my php/MySQL websites I have on my MacBook after upgrading to <a type=amzn asin="B000FK88JK" >Mac OS X 10.5</a> (Leopard).  And the good news is everything appears to work, but a few tweaks were needed.</p>

<p><span id="more-259"></span>
After upgrading to <a type=amzn asin="B000FK88JK" >Mac OS X 10.5</a> (Leopard) the webserver was turned off (security?).  Turning it back on was a easy, System Preferences > Sharing, click on &#8216;Web Sharing&#8217;.  However, after turning on Apache was no longer pointing to my &#8216;Site&#8217; folder on http://localhost, but a directory called /Library/WebServer/Documents &#8211; most annoying. Plus, php was dead&#8230;.</p>

<p>To get things working I had to change three lines in the httpd.conf file (<strong>After I had made a back up of it!</strong>), which is located at /private/etc/apache2/httpd.conf .</p>

<p><strong>Change 1 to get php working:</strong></p>

<p>Change line 114 from:</p>

<p>&#35;LoadModule php5_module        libexec/apache2/libphp5.so</p>

<p>to:</p>

<p>LoadModule php5_module        libexec/apache2/libphp5.so</p>

<p>(i.e. remove the hash/pound sign at the start)</p>

<p><strong>Change 2 to get Apache &#8216;pointing&#8217; at my &#8216;Sites&#8217; folder</strong></p>

<p>Change line 163 from:</p>

<p>DocumentRoot &#8220;/Library/WebServer/Documents&#8221;</p>

<p>to:</p>

<p>DocumentRoot &#8220;/Users/my-home-user-folder/Sites&#8221;</p>

<p>Where my-home-user-folder is the name of my home folder.</p>

<p><strong>Change 3 to get Apache &#8216;pointing&#8217; at my &#8216;Sites&#8217; folder</strong></p>

<p>(If you don&#8217;t do this you will be given a 403 &#8211; Insufficient User Privileges for Access)</p>

<p>Change line 190 from:</p>

<p>Directory &#8220;/Library/WebServer/Documents&#8221;</p>

<p>to:</p>

<p>Directory &#8220;/Users/my-home-user-folder/Sites&#8221;</p>

<p>Where my-home-user-folder is the name of my home folder.</p>

<p>Finally, you may wish to change any other occurrence of /Library/WebServer/Documents to /Users/my-home-user-folder/Sites if you use an CGI scripts in you home sites directory.</p>

<p><strong>Finally, restart Apache from System Preferences.</strong></p>

<p>MySQL seems to be working fine (I am using version 5), and CocoaMySQL is working&#8230;  great!</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fwww.mmisoftware.co.uk%2Fweblog%2F2007%2F10%2F28%2Fmac-os-x-105-leopard-webserver-apache-mysql-and-php%2F" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mmisoftware.co.uk/weblog/2007/10/28/mac-os-x-105-leopard-webserver-apache-mysql-and-php/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/

Minified using disk
Page Caching using disk (enhanced)
Content Delivery Network via Rackspace Cloud Files: c0003336.cdn2.cloudfiles.rackspacecloud.com

Served from: www.mmisoftware.co.uk @ 2012-02-10 01:26:20 -->
