Created
November 8, 2012 14:50
-
-
Save jingoro/4039231 to your computer and use it in GitHub Desktop.
PHP on Macports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo port install apache2 php5 php5-gd php5-curl php5-openssl php5-mbstring | |
# php5-gmp php5-iconv php5-mcrypt php5-posix | |
cd /opt/local/etc/php5 | |
sudo cp php.ini-development php.ini | |
# set mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket to /opt/local/var/run/mysql5/mysqld.sock | |
cd /opt/local/apache2/conf | |
# append to httpd.conf | |
Include conf/extra/mod_php.conf | |
cd /opt/local/apache2/modules | |
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so | |
sudo /opt/local/apache2/bin/apachectl start | |
sudo /opt/local/apache2/bin/apachectl stop | |
sudo /opt/local/apache2/bin/apachectl restart | |
manually modify wp_options, home and siteurl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment