<?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: Setting up PHP, MySQL, and Apache in Mac OSX Leopard</title>
	<atom:link href="http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/</link>
	<description>version .02: slowly getting there</description>
	<lastBuildDate>Mon, 05 Jul 2010 20:58:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jon</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-325</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 05 Jul 2010 20:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-325</guid>
		<description>Hi! I had the same &quot;ERROR! Manager of pid-file quit without updating file.&quot; problem.

I had installed mysql using MacPorts and it turned out mysqld.sock defaulted to be in &#039;/opt/local/var/run/mysql5&#039; - a directory that didn&#039;t exist! So after creating &#039;run&#039; and &#039;mysql5&#039; and setting owner and group to &#039;_mysql&#039; followed by fixing up php.ini to point at mysqld.sock (and restarting Apache) everything works!

This is on an old PPC Mini with OSX 10.5.8.</description>
		<content:encoded><![CDATA[<p>Hi! I had the same &#8220;ERROR! Manager of pid-file quit without updating file.&#8221; problem.</p>
<p>I had installed mysql using MacPorts and it turned out mysqld.sock defaulted to be in &#8216;/opt/local/var/run/mysql5&#8242; &#8211; a directory that didn&#8217;t exist! So after creating &#8216;run&#8217; and &#8216;mysql5&#8242; and setting owner and group to &#8216;_mysql&#8217; followed by fixing up php.ini to point at mysqld.sock (and restarting Apache) everything works!</p>
<p>This is on an old PPC Mini with OSX 10.5.8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khalid</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-323</link>
		<dc:creator>Khalid</dc:creator>
		<pubDate>Sat, 05 Jun 2010 04:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-323</guid>
		<description>Ok. I fixed the problem with sudo. It was permission problem.

But the problem of not finding sql.sock is still with me.</description>
		<content:encoded><![CDATA[<p>Ok. I fixed the problem with sudo. It was permission problem.</p>
<p>But the problem of not finding sql.sock is still with me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khalid</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-320</link>
		<dc:creator>Khalid</dc:creator>
		<pubDate>Sat, 05 Jun 2010 02:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-320</guid>
		<description>This is an excellent tutorial on how to setup PHP, MYSQL, and APACHE on a Mac. Thank you so much for this!!.I just hope this discussion is still open.

I faced one problem with my sql. When I looked at /etc I could not find sql.sock that is where I got stuck. Also, when I tried to start mysql via terminal I get the following:
Oryx:~ kskhater$ sudo /usr/local/mysql-5.5.2-m2-osx10.6-x86/support-files/mysql.server start
sudo: /etc/sudoers is mode 0644, should be 0440
Segmentation fault</description>
		<content:encoded><![CDATA[<p>This is an excellent tutorial on how to setup PHP, MYSQL, and APACHE on a Mac. Thank you so much for this!!.I just hope this discussion is still open.</p>
<p>I faced one problem with my sql. When I looked at /etc I could not find sql.sock that is where I got stuck. Also, when I tried to start mysql via terminal I get the following:<br />
Oryx:~ kskhater$ sudo /usr/local/mysql-5.5.2-m2-osx10.6-x86/support-files/mysql.server start<br />
sudo: /etc/sudoers is mode 0644, should be 0440<br />
Segmentation fault</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-313</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 27 Apr 2010 19:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-313</guid>
		<description>Hey Jim,

I have exactly the same issue as you. I had installed MySQL and had is running fine yesterday. Since then I have restarted my macbook and now can&#039;t get the server to start.

Exactly the input in terminal producing exactly the same error message.

If you get it sorted then please post and let me know</description>
		<content:encoded><![CDATA[<p>Hey Jim,</p>
<p>I have exactly the same issue as you. I had installed MySQL and had is running fine yesterday. Since then I have restarted my macbook and now can&#8217;t get the server to start.</p>
<p>Exactly the input in terminal producing exactly the same error message.</p>
<p>If you get it sorted then please post and let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-309</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sat, 06 Mar 2010 11:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-309</guid>
		<description>So, some progress.

I completely unistalled mysql by following this http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/

I then reinstalled mysql-5.1.44-osx10.5-x86.dmg and installed the startup items and the pref pane.

I could then start/stop mysql either through the pref pane or using the Terminal commands:
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

Green &quot;running&quot; in the MySQL Pref Pane. Cool!

From this point I continued on with your tutorial&quot;Getting MySQL and PHP to communicate&quot; and create the my.cnf. Just as soon as I create it, the MySQL server stopped and cannot be started unless I remove the my.cnf file.

So, this is where I am now stuck. Ideas?</description>
		<content:encoded><![CDATA[<p>So, some progress.</p>
<p>I completely unistalled mysql by following this <a href="http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/" rel="nofollow">http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/</a></p>
<p>I then reinstalled mysql-5.1.44-osx10.5-x86.dmg and installed the startup items and the pref pane.</p>
<p>I could then start/stop mysql either through the pref pane or using the Terminal commands:<br />
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start<br />
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop</p>
<p>Green &#8220;running&#8221; in the MySQL Pref Pane. Cool!</p>
<p>From this point I continued on with your tutorial&#8221;Getting MySQL and PHP to communicate&#8221; and create the my.cnf. Just as soon as I create it, the MySQL server stopped and cannot be started unless I remove the my.cnf file.</p>
<p>So, this is where I am now stuck. Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-308</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sat, 06 Mar 2010 10:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-308</guid>
		<description>I&#039;m still struggling with getting the mysql to work via prefpane. I think I&#039;ve messed up the prefpane. I somehow ended up with two mysql icons in the system pref panel. In my frustration I just dragged one of the icons to the trash. Now I get an error message when I click the other one. I rebooted. Back in the system pref panel it now shows a gearbox icon instead of a mysql icon. When I clicked it, it showed &quot;Loading com.mysql.MYSQL&quot; then an error window opened that says &quot;Preferences Error: You cannot open com.mysql.MySQL preferences becasue ti doesn&#039;t work on an Intel-vbased Mac.&#039; SO I just closed it and went searching online.

I found this bug report. http://bugs.mysql.com/bug.php?id=28854 I read the post about:
**************
I could not start up the server using the Preference Pane, however. I had to run
&quot;/Library/StartupItems/MySQLCOM/MySQLCOM start&quot; manually. Then I could connect with the
CLI client without any problems.

Once started, I could not stop the server using the Preference Pane either. However,
stopping it from the CLI with &quot;/Library/StartupItems/MySQLCOM/MySQLCOM stop&quot; worked
fine.
***************
I really don&#039;t know at this point what I&#039;m doing. BUt to hell with it, I tried those start and stop commands in Term and so far as I know they were accepted.

imac:~ jim$ /Library/StartupItems/MySQLCOM/MySQLCOM stop
Stopping MySQL database server
imac:~ jim$ 

Maybe that solves my problem, maybe not. I do know that I now have a problem with that mysql icon in the Systems Panel. I&#039;m thinking I should just completely dump mysql off the computer and start over. But I don&#039;t know how to do that either. More reading to do.

I thought mac&#039;s were suppose to make my life easier.</description>
		<content:encoded><![CDATA[<p>I&#8217;m still struggling with getting the mysql to work via prefpane. I think I&#8217;ve messed up the prefpane. I somehow ended up with two mysql icons in the system pref panel. In my frustration I just dragged one of the icons to the trash. Now I get an error message when I click the other one. I rebooted. Back in the system pref panel it now shows a gearbox icon instead of a mysql icon. When I clicked it, it showed &#8220;Loading com.mysql.MYSQL&#8221; then an error window opened that says &#8220;Preferences Error: You cannot open com.mysql.MySQL preferences becasue ti doesn&#8217;t work on an Intel-vbased Mac.&#8217; SO I just closed it and went searching online.</p>
<p>I found this bug report. <a href="http://bugs.mysql.com/bug.php?id=28854" rel="nofollow">http://bugs.mysql.com/bug.php?id=28854</a> I read the post about:<br />
**************<br />
I could not start up the server using the Preference Pane, however. I had to run<br />
&#8220;/Library/StartupItems/MySQLCOM/MySQLCOM start&#8221; manually. Then I could connect with the<br />
CLI client without any problems.</p>
<p>Once started, I could not stop the server using the Preference Pane either. However,<br />
stopping it from the CLI with &#8220;/Library/StartupItems/MySQLCOM/MySQLCOM stop&#8221; worked<br />
fine.<br />
***************<br />
I really don&#8217;t know at this point what I&#8217;m doing. BUt to hell with it, I tried those start and stop commands in Term and so far as I know they were accepted.</p>
<p>imac:~ jim$ /Library/StartupItems/MySQLCOM/MySQLCOM stop<br />
Stopping MySQL database server<br />
imac:~ jim$ </p>
<p>Maybe that solves my problem, maybe not. I do know that I now have a problem with that mysql icon in the Systems Panel. I&#8217;m thinking I should just completely dump mysql off the computer and start over. But I don&#8217;t know how to do that either. More reading to do.</p>
<p>I thought mac&#8217;s were suppose to make my life easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stevie</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-306</link>
		<dc:creator>Stevie</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-306</guid>
		<description>Jim... I sent you an email.</description>
		<content:encoded><![CDATA[<p>Jim&#8230; I sent you an email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-305</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 16 Feb 2010 12:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-305</guid>
		<description>Stevie,
I&#039;m stuck at trying to get MYSQL to start either in the pref panel or in terminal. The Pref panel prompts for the password, I enter it and nothing happens. In terminal:
imac:~ myname$ sudo /usr/local/mysql/support-files/mysql.server start
Password:
Starting MySQL
...... ERROR! Manager of pid-file quit without updating file. 

When I first d//l the mysql and installed it yesterday it was working because I even had the widget on the dashboard showing server local status running a green line graph.

I&#039;ve kept a text file of what I&#039;ve done. Can I email you?

THanks,
Jim</description>
		<content:encoded><![CDATA[<p>Stevie,<br />
I&#8217;m stuck at trying to get MYSQL to start either in the pref panel or in terminal. The Pref panel prompts for the password, I enter it and nothing happens. In terminal:<br />
imac:~ myname$ sudo /usr/local/mysql/support-files/mysql.server start<br />
Password:<br />
Starting MySQL<br />
&#8230;&#8230; ERROR! Manager of pid-file quit without updating file. </p>
<p>When I first d//l the mysql and installed it yesterday it was working because I even had the widget on the dashboard showing server local status running a green line graph.</p>
<p>I&#8217;ve kept a text file of what I&#8217;ve done. Can I email you?</p>
<p>THanks,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-304</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 16 Feb 2010 12:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-304</guid>
		<description>Stevie,
Thanks for the prompt reply. I&#039;m not on SnowLeopard yet. I&#039;m currently running 10.5.8 (I should have mentioned that earlier). I downloaded mysql-5.1.43-osx10.5-x86_64.dmg, mysql-gui-tools-5.0-r12-osx10.4-universal.dmg

When I first started this process, I could not even edit httpd.conf so I found a tip online about using pico in Terminal and that worked just fine. 

1. Open terminal.
2. sudo pico /etc/apache2/httpd.conf
3. Make changes and save.

So I assumed I could do the same with the hosts file. Now yesterday I could not do that. This morning I could. Go figure. Obviously a finger problem :) So now my /etc/hosts file looks like this:

#
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
127.0.0.1       myname.dev

Is that right? Two 127.0.0.1 listed? Anyway, I&#039;m rolling through the steps again to see what happens.

Thanks,
Jim</description>
		<content:encoded><![CDATA[<p>Stevie,<br />
Thanks for the prompt reply. I&#8217;m not on SnowLeopard yet. I&#8217;m currently running 10.5.8 (I should have mentioned that earlier). I downloaded mysql-5.1.43-osx10.5-x86_64.dmg, mysql-gui-tools-5.0-r12-osx10.4-universal.dmg</p>
<p>When I first started this process, I could not even edit httpd.conf so I found a tip online about using pico in Terminal and that worked just fine. </p>
<p>1. Open terminal.<br />
2. sudo pico /etc/apache2/httpd.conf<br />
3. Make changes and save.</p>
<p>So I assumed I could do the same with the hosts file. Now yesterday I could not do that. This morning I could. Go figure. Obviously a finger problem <img src='http://superfancy.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So now my /etc/hosts file looks like this:</p>
<p>#<br />
# Host Database<br />
#<br />
# localhost is used to configure the loopback interface<br />
# when the system is booting.  Do not change this entry.<br />
##<br />
127.0.0.1       localhost<br />
255.255.255.255 broadcasthost<br />
::1             localhost<br />
fe80::1%lo0     localhost<br />
127.0.0.1       myname.dev</p>
<p>Is that right? Two 127.0.0.1 listed? Anyway, I&#8217;m rolling through the steps again to see what happens.</p>
<p>Thanks,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stevie</title>
		<link>http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/comment-page-2/#comment-303</link>
		<dc:creator>Stevie</dc:creator>
		<pubDate>Tue, 16 Feb 2010 04:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.steviebenge.com/?p=33#comment-303</guid>
		<description>Hi Jim. First off, you must have Administrator rights to edit and save UNIX files. Make sure your user account includes admin rights. If you&#039;re on Snow Leopard, I had a similar problem where Coda (as well as TextEdit) wouldn&#039;t allow me to save UNIX files either. I rectified the problem by purchasing a copy of TextMate. This was right when Snow Leopard came out so this may issue may have been rectified. I think I may have just edited the &lt;code&gt;hosts&lt;/code&gt; file with Terminal before I purchased TextMate.

Yes you are correct... MacHDD/etc/hosts and MacHDD/private/etc/hosts are the same. The former is just a symbolic link to the latter.

As for your MySQL issues, I would reinstall to be sure it is installed correctly. Luckily I&#039;ve never really had any weird issues with MySQL on any of my computers so I have almost no experience in debugging it. Again if you&#039;re on Snow Leopard, make sure you install the 64-bit version. Good Luck...</description>
		<content:encoded><![CDATA[<p>Hi Jim. First off, you must have Administrator rights to edit and save UNIX files. Make sure your user account includes admin rights. If you&#8217;re on Snow Leopard, I had a similar problem where Coda (as well as TextEdit) wouldn&#8217;t allow me to save UNIX files either. I rectified the problem by purchasing a copy of TextMate. This was right when Snow Leopard came out so this may issue may have been rectified. I think I may have just edited the <code>hosts</code> file with Terminal before I purchased TextMate.</p>
<p>Yes you are correct&#8230; MacHDD/etc/hosts and MacHDD/private/etc/hosts are the same. The former is just a symbolic link to the latter.</p>
<p>As for your MySQL issues, I would reinstall to be sure it is installed correctly. Luckily I&#8217;ve never really had any weird issues with MySQL on any of my computers so I have almost no experience in debugging it. Again if you&#8217;re on Snow Leopard, make sure you install the 64-bit version. Good Luck&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
