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
#updating php versions is a hassle, these steps help make it less so... | |
sudo port uninstall php7* | |
sudo port selfupdate | |
sudo port install php72 php72-apache2handler php72-calendar php72-cgi php72-curl php72-exif php72-fpm php72-ftp php72-gd php72-geoip php72-gettext php72-gmagick php72-iconv php72-imagick php72-imap php72-intl php72-ipc php72-ldap php72-lzf php72-mailparse php72-mbstring php72-mcrypt php72-mysql php72-openssl php72-pdflib php72-xdebug php72-zip php_select | |
cd /opt/local/lib/apache2/modules/ | |
sudo /opt/local/bin/apxs -a -e -n php7 mod_php72.so | |
sudo port select php php72 | |
cd /opt/local/etc/php72/ | |
sudo cp php.ini-development php.ini | |
#update as required filemerge util is handy to see what has changed. needed to set up mysqli default sockets etc. |