<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing PHP 5.2.8 on OSX Leopard 10.5.6</title>
	<atom:link href="http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/</link>
	<description>Max Westen's ramblings on OSX and PHP</description>
	<lastBuildDate>Wed, 27 Jan 2010 09:08:23 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-601</link>
		<dc:creator>max</dc:creator>
		<pubDate>Sun, 19 Apr 2009 20:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-601</guid>
		<description>Hello Ditko,

If you need a dev-environment to learn PHP and you aren&#039;t very skilled in the OSX base-system/unix terminal, it might be better to opt for an all-in-one solution like &lt;a href=&quot;http://www.apachefriends.org/en/xampp-macosx.html&quot; rel=&quot;nofollow&quot;&gt;XAMPP&lt;/a&gt; (or one of the other packages listed in the 2nd comment).
Good luck !</description>
		<content:encoded><![CDATA[<p>Hello Ditko,</p>
<p>If you need a dev-environment to learn PHP and you aren&#8217;t very skilled in the OSX base-system/unix terminal, it might be better to opt for an all-in-one solution like <a href="http://www.apachefriends.org/en/xampp-macosx.html" rel="nofollow">XAMPP</a> (or one of the other packages listed in the 2nd comment).<br />
Good luck !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-600</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Sun, 19 Apr 2009 02:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-600</guid>
		<description>I&#039;m attempting to follow this tutorial, so i can get a web dev environment set up on my system so I can learn PHP. When I open my terminal to execute second step, I get the following error (It won&#039;t accept my password)

------------------------------------------------------
Last login: Sat Apr 18 19:43:10 on ttys000
Ditko:~ Ditko$ sudo port selfupdate

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type &quot;man sudo&quot; for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Sorry, try again.
Password:
Sorry, try again.
Password:

------------------------------------------------------

Any ideas of what I might be doing wrong? When I type, nothing appears in the terminal following the word &#039;Password:&#039;

Any help?
Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m attempting to follow this tutorial, so i can get a web dev environment set up on my system so I can learn PHP. When I open my terminal to execute second step, I get the following error (It won&#8217;t accept my password)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Last login: Sat Apr 18 19:43:10 on ttys000<br />
Ditko:~ Ditko$ sudo port selfupdate</p>
<p>WARNING: Improper use of the sudo command could lead to data loss<br />
or the deletion of important system files. Please double-check your<br />
typing when using sudo. Type &#8220;man sudo&#8221; for more information.</p>
<p>To proceed, enter your password, or type Ctrl-C to abort.</p>
<p>Password:<br />
Sorry, try again.<br />
Password:<br />
Sorry, try again.<br />
Password:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Any ideas of what I might be doing wrong? When I type, nothing appears in the terminal following the word &#8216;Password:&#8217;</p>
<p>Any help?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-594</link>
		<dc:creator>max</dc:creator>
		<pubDate>Sat, 21 Feb 2009 20:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-594</guid>
		<description>Hi Joseph,

Apache doesn&#039;t add the Sites directory; OSX adds the directory to your userfolder if a new useraccount is created.
Apache does load it into the configuration. To enable this do the following:
make sure the following module is loaded in your httpd.conf:
&lt;pre lang=&quot;apache&quot;&gt;
LoadModule userdir_module modules/mod_userdir.so
&lt;/pre&gt;
You now have to add the following line to the httpd.conf to direct apache to the right subfolder below the userdir:
&lt;pre lang=&quot;apache&quot;&gt;
UserDir Sites
&lt;/pre&gt;

To set the permissions correctly you&#039;ll have the following to the httpd.conf too
&lt;pre lang=&quot;apache&quot;&gt;
&lt;Directory &quot;/Users/username/&quot;&gt;
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;

&lt;Directory &quot;/Users/username/Sites/&quot;&gt;
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
&lt;/pre&gt;

After restarting your webserver with &lt;strong&gt;sudo apachectl restart&lt;/strong&gt;, calling the URL: &lt;strong&gt;http://localhost/~username&lt;/strong&gt; should direct you to the &lt;strong&gt;/Users/username/Sites&lt;/strong&gt; folder.

The rights have to be set for each user; this won&#039;t work automatically anymore. If there is enough response I could write a post on how to fix some of this.</description>
		<content:encoded><![CDATA[<p>Hi Joseph,</p>
<p>Apache doesn&#8217;t add the Sites directory; OSX adds the directory to your userfolder if a new useraccount is created.<br />
Apache does load it into the configuration. To enable this do the following:<br />
make sure the following module is loaded in your httpd.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> userdir_module modules/mod_userdir.so</pre></div></div>

<p>You now have to add the following line to the httpd.conf to direct apache to the right subfolder below the userdir:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">UserDir</span> Sites</pre></div></div>

<p>To set the permissions correctly you&#8217;ll have the following to the httpd.conf too</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;/Users/username/&quot;</span>&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">None</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&nbsp;
&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;/Users/username/Sites/&quot;</span>&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> MultiViews
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></div></div>

<p>After restarting your webserver with <strong>sudo apachectl restart</strong>, calling the URL: <strong><a href="http://localhost/~username" rel="nofollow">http://localhost/~username</a></strong> should direct you to the <strong>/Users/username/Sites</strong> folder.</p>
<p>The rights have to be set for each user; this won&#8217;t work automatically anymore. If there is enough response I could write a post on how to fix some of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-593</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Wed, 18 Feb 2009 23:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-593</guid>
		<description>Hi Max,
Thanks for the great walk through.

PHP didn&#039;t function as expected until I added:


  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
 
  
    DirectoryIndex index.php index.html
  


To the end of the httpd.conf file as you explained to Ari. Now all works.

Wondering how to set up Apache to create a new site directory for each added user as the default Apple configuration does?


Joseph</description>
		<content:encoded><![CDATA[<p>Hi Max,<br />
Thanks for the great walk through.</p>
<p>PHP didn&#8217;t function as expected until I added:</p>
<p>  AddType application/x-httpd-php .php<br />
  AddType application/x-httpd-php-source .phps</p>
<p>    DirectoryIndex index.php index.html</p>
<p>To the end of the httpd.conf file as you explained to Ari. Now all works.</p>
<p>Wondering how to set up Apache to create a new site directory for each added user as the default Apple configuration does?</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-592</link>
		<dc:creator>max</dc:creator>
		<pubDate>Sun, 15 Feb 2009 22:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-592</guid>
		<description>Hi Jan,

Did you stop the current running version of &quot;Websharing&quot; (The shipped version of Apache2).?
you could check this by running:
&lt;pre lang=&quot;bash&quot;&gt;ps waux&#124;grep httpd&lt;/pre&gt;
If you see /usr/bin/httpd in this list, you need to type 
&lt;pre lang=&quot;bash&quot;&gt;sudo apachectl-leopard stop&lt;/pre&gt;
or turn off &quot;Web sharing&quot; from the &quot;system preferences&quot; -&gt; &quot;Sharing&quot; tab.
then (re)start the newly installed apache:
&lt;pre lang=&quot;bash&quot;&gt;sudo apachectl restart&lt;/pre&gt;
Then try the testpage again....
Good luck!</description>
		<content:encoded><![CDATA[<p>Hi Jan,</p>
<p>Did you stop the current running version of &#8220;Websharing&#8221; (The shipped version of Apache2).?<br />
you could check this by running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ps</span> waux|<span style="color: #c20cb9; font-weight: bold;">grep</span> httpd</pre></div></div>

<p>If you see /usr/bin/httpd in this list, you need to type</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apachectl-leopard stop</pre></div></div>

<p>or turn off &#8220;Web sharing&#8221; from the &#8220;system preferences&#8221; -> &#8220;Sharing&#8221; tab.<br />
then (re)start the newly installed apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apachectl restart</pre></div></div>

<p>Then try the testpage again&#8230;.<br />
Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-591</link>
		<dc:creator>max</dc:creator>
		<pubDate>Sun, 15 Feb 2009 22:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-591</guid>
		<description>Hi John,
Sorry to hear it generates errors.
For me it&#039;s very difficult to troubleshoot remotely. Things you could check:
&lt;ul&gt;
	&lt;li&gt;Make sure MySQL is installed; this is a prerequisite for compiling PHP with MySQL support.&lt;/li&gt;
	&lt;li&gt;The explanation is tested on Intel systems only, so If your using PPC, I can&#039;t be of any help.&lt;/li&gt;
&lt;/ul&gt;

Hope this gives you some leads...</description>
		<content:encoded><![CDATA[<p>Hi John,<br />
Sorry to hear it generates errors.<br />
For me it&#8217;s very difficult to troubleshoot remotely. Things you could check:</p>
<ul>
<li>Make sure MySQL is installed; this is a prerequisite for compiling PHP with MySQL support.</li>
<li>The explanation is tested on Intel systems only, so If your using PPC, I can&#8217;t be of any help.</li>
</ul>
<p>Hope this gives you some leads&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-590</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Sun, 15 Feb 2009 20:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-590</guid>
		<description>Hi Max,
Thanks for this walk through.

After following your direction  my &quot;infophp.php&quot; file is still displaying my old php version php 5.2.6.

Strangely enough I can navigate to the php 5.2.8 directory in /opt/local/
and it&#039;s link as &quot;/opt/local/php&quot;.

Typing &quot;which php&quot; as root generates &quot;/usr/bin/php&quot; which is a link to &quot;/opt/local/php-5.2.8/bin/php&quot;

Am I missing a step here?

Jan</description>
		<content:encoded><![CDATA[<p>Hi Max,<br />
Thanks for this walk through.</p>
<p>After following your direction  my &#8220;infophp.php&#8221; file is still displaying my old php version php 5.2.6.</p>
<p>Strangely enough I can navigate to the php 5.2.8 directory in /opt/local/<br />
and it&#8217;s link as &#8220;/opt/local/php&#8221;.</p>
<p>Typing &#8220;which php&#8221; as root generates &#8220;/usr/bin/php&#8221; which is a link to &#8220;/opt/local/php-5.2.8/bin/php&#8221;</p>
<p>Am I missing a step here?</p>
<p>Jan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Spiger</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-589</link>
		<dc:creator>John Spiger</dc:creator>
		<pubDate>Sun, 15 Feb 2009 19:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-589</guid>
		<description>I tried to configure php and got a error at the end. It says:

configure: error: mysql configure failed. Please check config.log for more information.

I checked the config.log, and there are actually several errors mentioned. Lots of them seem to have to do with finding files related to gcc.

Are these important, or should I just ignore the errors and continue?

Thanks,
John</description>
		<content:encoded><![CDATA[<p>I tried to configure php and got a error at the end. It says:</p>
<p>configure: error: mysql configure failed. Please check config.log for more information.</p>
<p>I checked the config.log, and there are actually several errors mentioned. Lots of them seem to have to do with finding files related to gcc.</p>
<p>Are these important, or should I just ignore the errors and continue?</p>
<p>Thanks,<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-588</link>
		<dc:creator>max</dc:creator>
		<pubDate>Thu, 12 Feb 2009 07:00:25 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-588</guid>
		<description>Hi Ari,

Please have a look in your &lt;strong&gt;/opt/local/apache2/conf/httpd.conf&lt;/strong&gt; and change th following line from the main &lt;Directory&gt; block (the one that points to your web-directory) from
&lt;pre lang=&quot;apache&quot; line=&quot;208&quot;&gt;
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
&lt;/pre&gt;
to the following:
&lt;pre lang=&quot;apache&quot; line=&quot;208&quot;&gt;
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All
&lt;/pre&gt;

And make sure to have the following set or included in the same file:
&lt;pre lang=&quot;apache&quot;&gt;
&lt;IfModule php5_module&gt;
	AddType application/x-httpd-php .php
	AddType application/x-httpd-php-source .phps

	&lt;IfModule dir_module&gt;
		DirectoryIndex index.php index.html
	&lt;/IfModule&gt;
&lt;/IfModule&gt;
&lt;/pre&gt;

Hope it will get you better results now....
Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Ari,</p>
<p>Please have a look in your <strong>/opt/local/apache2/conf/httpd.conf</strong> and change th following line from the main <directory> block (the one that points to your web-directory) from</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>208
209
210
211
212
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;">    <span style="color: #adadad; font-style: italic;"># AllowOverride controls what directives may be placed in .htaccess files.</span>
    <span style="color: #adadad; font-style: italic;"># It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:</span>
    <span style="color: #adadad; font-style: italic;">#   Options FileInfo AuthConfig Limit</span>
    <span style="color: #adadad; font-style: italic;">#</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span></pre></td></tr></table></div>

<p>to the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>208
209
210
211
212
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;">    <span style="color: #adadad; font-style: italic;"># AllowOverride controls what directives may be placed in .htaccess files.</span>
    <span style="color: #adadad; font-style: italic;"># It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:</span>
    <span style="color: #adadad; font-style: italic;">#   Options FileInfo AuthConfig Limit</span>
    <span style="color: #adadad; font-style: italic;">#</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span></pre></td></tr></table></div>

<p>And make sure to have the following set or included in the same file:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> php5_module&gt;
	<span style="color: #00007f;">AddType</span> application/x-httpd-php .php
	<span style="color: #00007f;">AddType</span> application/x-httpd-php-source .phps
&nbsp;
	&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> dir_module&gt;
		<span style="color: #00007f;">DirectoryIndex</span> index.php index.html
	&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></div></div>

<p>Hope it will get you better results now&#8230;.<br />
Cheers!</directory></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ari Baum</title>
		<link>http://dlmax.org/2008/12/29/installing-php-on-osx-leopard/comment-page-1/#comment-587</link>
		<dc:creator>Ari Baum</dc:creator>
		<pubDate>Thu, 12 Feb 2009 00:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://dlmax.org/?p=155#comment-587</guid>
		<description>Hi Max,

I followed your instructions and all seemed to work. However I now do not seem to have the correct permissions to browse sites on my machine. It states &quot;You don&#039;t have permission to access...&quot;.

I have already updated my DocumentRoot in httpd.conf.

Any recommendations?

Thanks,
Ari.</description>
		<content:encoded><![CDATA[<p>Hi Max,</p>
<p>I followed your instructions and all seemed to work. However I now do not seem to have the correct permissions to browse sites on my machine. It states &#8220;You don&#8217;t have permission to access&#8230;&#8221;.</p>
<p>I have already updated my DocumentRoot in httpd.conf.</p>
<p>Any recommendations?</p>
<p>Thanks,<br />
Ari.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
