![mac os x apache mysql php mac os x apache mysql php](https://xuri.me/wp-content/uploads/2013/10/wamp-5.png)
To start your apache2 and mysql5 manually, type the command below:.LoadModule php5_module modules/libphp5.so Now you need to configure apache to load php file, open /opt/local/apache2/conf/nf and add this 2 line:.Sudo launchctl load -w /Library/LaunchDaemons/ Next, you can configure apache and mysql to start automatically by enter the command below:.Once done, change your root password /opt/local/lib/mysql5/bin/mysqladmin -u root password 'new-password' Sudo /opt/local/lib/mysql5/bin/mysql_install_db -user=mysql Now use the command below to setup the mysql db.*** You must disable the Personal Web Sharing to avoid any conflict between your apache2 and the default apache. Go to System Preference -> Sharing -> uncheck the Personal Web sharing.Now you need to stop the local apache process.
![mac os x apache mysql php mac os x apache mysql php](https://blog.korphome.ru/wp-content/uploads/2013/05/Screenshot-2013-05-12-20.36.42.png)
*** you must put the +server at the back, else you wont be able to configure it to auto start at boot up *** ** This process take quite some time, go take a walk and come back after 30 min ***
#Mac os x apache mysql php install#
Sudo port install php5 +apache2 +mysql5 +server sudo port install php5 +apache2 +mysql5-server