Ubuntu12.04server上自己编译PHP5.3,比繁琐,共享之。
安装Apache2.2
代码如下:
然后安装MySQL5.5
代码如下:
接着就是编译依赖环境:
代码如下:
相关的lib支持库:
代码如下:
安装:
代码如下:
./configure –prefix=/usr/local/php –with-mcrypt –with-gettext –with-mysql –with-gd –with-jpeg-dir –with-png-dir –with-curl –with-freetype-dir –enable-gd-native-ttf –enable-mbstring –enable-sockets –with-pdo-mysql –enable-fpm –with-zlib –enable-zip –with-bz2 –enable-bcmath –with-tidy –with-fpm-user=daemon –with-fpm-group=daemon
sudo make
sudo make install
然后安装cli和dev:
代码如下:
最后开启Apache2支持:
代码如下:
最后就大功告成了~