MAMP setup with Macports?

Takashi Yoshida tyoshida at mac.com
Wed Nov 21 04:41:35 PST 2007


On Nov 21, 2007, at 1:03 PM, Ryan Schmidt wrote:

> On Nov 20, 2007, at 20:12, Thomas Allen wrote:
>
>> I'm trying to setup a local MAMP server using Macports, and all I'm
>> running into are problems. MySQL (4) can't connect, http://localhost/
>> is DOA, and I have no real way to test my PHP installation. I'd like
>> to have the following setup:
>>
>> MySQL 5, PHP 5, Apache 2
>>
>> I suspect that my main problem is daemons for these services not
>> starting. Anyway, I really put my faith in Macports here, and it  
>> would
>> mean a lot if someone could lend a hand.
>
> sudo port install mysql5 +server
> sudo port install apache2
> sudo port install php5 +apache2
>
> It will show you the launchctl commands you need to enter to start  
> mysql5 and apache2 at system startup.
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users


I'm having a problem with MySQL5 not starting up on a MacBook Pro  
running (a fresh Mac OS X 10.5 Leopard).

After running:

sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist

MySQL5 does not start.
In the console log, I can seee that:

11/21/07 7:57:19 PM org.macports.mysql5[1531] Starting MySQL

/*** not sure if these are relevant ***/

11/21/07 7:57:19 PM com.apple.launchd[1] (0x10dfa0.nohup[1553]) Could  
not setup Mach task special port 9: (os/kern) no access
11/21/07 7:57:19 PM com.apple.launchd[1] (0x10dfa0.nohup[1554]) Could  
not setup Mach task special port 9: (os/kern) no access
11/21/07 7:57:19 PM com.apple.launchd[1] (0x10dfa0.nohup[1559]) Could  
not setup Mach task special port 9: (os/kern) no access

/*** end of not sure part ***/

11/21/07 7:57:20 PM org.macports.mysql5[1531] .
11/21/07 7:57:21 PM org.macports.mysql5[1531] .
11/21/07 7:57:22 PM org.macports.mysql5[1531] /opt/local/share/mysql5/ 
mysql/mysql.server: line 159: kill: (1540) - No such process
11/21/07 7:57:22 PM org.macports.mysql5[1531]  ERROR!

For Apache2, you will need to comment out the mod_ssl or something  
like that.
Running: opt/local/apache2/bin/apachectl configtest will tell you  
which line needs to be commented out.

Regards,


--
Takashi Yoshida
tyoshida [at] mac [dot] com





More information about the macports-users mailing list