1. 程式人生 > >ubuntu12.04安裝php5.5.15

ubuntu12.04安裝php5.5.15

sudo apt-get install libxml2-dev libssl-dev libjpeg-dev libpng12-dev libbz2-dev libcurl4-openssl-dev libfreetype6-dev libmcrypt-dev

ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/libssl.so

./configure --prefix=/usr/local/php \
--enable-fpm --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap \
--enable-zip
--enable-pcntl --enable-sockets --enable-mbstring --enable-xml \ --with-bz2 --with-openssl --with-iconv --with-zlib --with-curl \ --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt \ --with-mysql --with-mysqli