Skip to content

Instantly share code, notes, and snippets.

@mCzolko
Last active December 14, 2015 20:18
Show Gist options
  • Save mCzolko/5142632 to your computer and use it in GitHub Desktop.
Save mCzolko/5142632 to your computer and use it in GitHub Desktop.
sudo port -v selfupdate

## Install Apache2

sudo port install apache2
sudo port load apache2
sudo port install php +apache2 +pear

Install MySQL Sever

sudo port install mysql5-server
sudo port load mysql5-server

PHP

sudo port install php +apache2
sudo port install php5-mysql +mysqlnd

Copy php.ini file:

sudo cp /opt/local/etc/php5/php.ini-development /opt/local/etc/php5/php.ini

Setup default mysql socket:

pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock

Activate PHP5 apache module:

cd /opt/local/apache2/modules
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so

Install environment

sudo port install git
sudo port install nodejs

Install NPM:

sudo curl http://npmjs.org/install.sh | sh

Install composer:

sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer
sudo composer self-update

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment