# APACHE
# Install Apache 2.2
sudo port install apache2
# Edit Apache2 Config
vi /opt/local/apache2/conf/httpd.conf
# Find/Edit the following
ServerName localhost:80
# PHP
Install PHP 5.4
sudo port install php54-apache2handler
# Execute following command to include PHP5 module to Apache2
cd /opt/local/apache2/modules
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so
# MYSQL SERVER
# Install MySQL serversudo port install mysql55-server
# Setup MySQL DB
sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
# Start MySQL
sudo port load mysql55-server
# Setup root password
/opt/local/lib/mysql55/bin/mysqladmin -u root password 'new-password'
# Stop MySQL
sudo port unload mysql55-server
No comments:
Post a Comment