Skip to content

Instantly share code, notes, and snippets.

@birchestx
Last active January 1, 2016 01:09
Show Gist options
  • Save birchestx/8070862 to your computer and use it in GitHub Desktop.
Save birchestx/8070862 to your computer and use it in GitHub Desktop.
From http://blog.magudia.com/2009/08/22/installing-php53-apache2-mysql5-using-macports/ Install PHP From MacPorts, using MAMP for mySQL
Go thro sections in link above to configure php and apache.
sudo vi /opt/local/etc/php5/php.ini
Xdebug Config:
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
Change document root to be under MAMP:
sudo vi /opt/local/apache2/conf/httpd.conf
DocumentRoot "/Applications/MAMP/htdocs"
Under alias_module area:
Alias /phpmyadmin "/Applications/MAMP/bin/phpMyAdmin"
sudo port install php5-mbstring php5-iconv php5-curl php5-mcrypt php5-gd php5-soap php5-xdebug php5-openssl
apachectl restart
Installing ant
sudo su
mkdir /usr/local/share
mkdir /usr/local/bin
cd ~/Webshopapps/repos13/Utilities/Ant
cp -r apache-ant-1.8.2 /usr/local/share
sudo ln -s /usr/local/share/apache-ant-1.8.2/bin/ant /usr/local/bin/ant
chmod 775 /usr/local/bin/ant
Add to ~/.bash_profile
export JAVA_HOME="$(/usr/libexec/java_home)"
reload - . ~/.bash_profile
Install Java SDK
Without this the serial key logic wont work. Note: I used the serial mac directory in repos13
cd /var/
sudo mkdir mysql
sudo chmod 755 mysql
cd mysql/
sudo ln /Applications/MAMP/tmp/mysql/mysql.sock mysql.sock
cd /tmp
ln -s /var/mysql/mysql.sock mysql.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment