Skip to content

Instantly share code, notes, and snippets.

View pgee70's full-sized avatar

pgee70

View GitHub Profile
@pgee70
pgee70 / update_php72.sh
Created August 23, 2018 23:38
update mac ports php installation
#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.