MAMP setup with Macports?
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. Thomas
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.
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@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
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
Don' t know, but wouldn't say it's related.
/*** 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!
Definitely related. Do a "port cat mysql5" and read the message that should have been output to you right at the end of the installation process: you need to run "sudo -u ${mysqluser} mysql_install_db5" in order to initialize the MySQL server before you can even attempt to run it, where ${mysqluser} is the name of the user that will handling your database chores on your system (most likely '_mysql' on Leopard). Once you do that, you can try starting the server manually with "sudo / opt/local/share/mysql5/mysql/mysql.server start" and work your way from there depending on your particular setup (creating new users, editing the cnf file, whatever). After that you should be able to run MySQL5 at boot time by enabling the Launchd plist we install. Regards,... -jmpp
Juan Manuel Palacios wrote:
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
Don' t know, but wouldn't say it's related.
/*** 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!
Definitely related. Do a "port cat mysql5" and read the message that should have been output to you right at the end of the installation process: you need to run "sudo -u ${mysqluser} mysql_install_db5" in order to initialize the MySQL server before you can even attempt to run it, where ${mysqluser} is the name of the user that will handling your database chores on your system (most likely '_mysql' on Leopard). Once you do that, you can try starting the server manually with "sudo /opt/local/share/mysql5/mysql/mysql.server start" and work your way from there depending on your particular setup (creating new users, editing the cnf file, whatever). After that you should be able to run MySQL5 at boot time by enabling the Launchd plist we install.
Regards,...
-jmpp
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
I figured it out! I'll mail two great links to this list as soon as I get the chance. Thomas
On Nov 21, 2007, at 9:57 PM, Juan Manuel Palacios wrote:
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
Don' t know, but wouldn't say it's related.
/*** 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!
Definitely related. Do a "port cat mysql5" and read the message that should have been output to you right at the end of the installation process: you need to run "sudo -u ${mysqluser} mysql_install_db5" in order to initialize the MySQL server before you can even attempt to run it, where ${mysqluser} is the name of the user that will handling your database chores on your system (most likely '_mysql' on Leopard). Once you do that, you can try starting the server manually with "sudo /opt/local/share/mysql5/ mysql/mysql.server start" and work your way from there depending on your particular setup (creating new users, editing the cnf file, whatever). After that you should be able to run MySQL5 at boot time by enabling the Launchd plist we install.
Regards,...
-jmpp
Hi, That did it. Thanks a lot! I just have this funny feeling that I didn't have to do the 'sudo -u mysql mysql_install_db5' before... I'm not sure why I get that idea. Anyway, I got it to work now. :-) -- Takashi Yoshida tyoshida [at] mac [dot] com
participants (4)
-
Juan Manuel Palacios
-
Ryan Schmidt
-
Takashi Yoshida
-
Thomas Allen