Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Last active August 29, 2015 14:20
Show Gist options
  • Save gayanvirajith/a5c5e44f1a688dfa3d09 to your computer and use it in GitHub Desktop.
Save gayanvirajith/a5c5e44f1a688dfa3d09 to your computer and use it in GitHub Desktop.
phpbrew notes

Switch php version of apache

Edit /etc/apache2/mods-enabled/php5.load update the php so file

Enable gd

sudo phpbrew install php-5.4.33 +default +mysql +intl +gettext +exif +fileinfo +zlib +ftp +iconv +gd +apxs2 -- --with-libdir=lib/x86_64-linux-gnu --with-gd=shared --enable-gd-natf --with-jpeg-dir=/usr --with-png-dir=/usr

php use 5.4xx

sudo make -C /home/gayan/.phpbrew/build/php-5.4.33/ext/gd --quiet clean

phpbrew --debug ext install gd -- --with-libdir=lib/i386-linux-gnu --with-gd=shared --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr

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