记一次php5.3.10安装
安装环境 CentOS 6.6 x64 php 5.3.10 安装编译工具 yum install -y gcc gcc-c++ 安装mysql yum install -y mysql mysql-devel #如果是64位系统,执行 ln -s /usr/lib64/mysql/* /usr/lib/ 安装依赖 yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel freetype-devel openldap-devel cyrus-sasl-ldap libtool libtool-ltdl-devel #如果是64位系统,执行 ln -s /usr/lib64/libldap* /usr/lib/ ln -s /usr/lib64/mysql/* /usr/lib/ openldap-devel 这个在我工作的项目当中使用到了,如果不需要这个可以不要安装这个 安装php curl -o php-5.3.10.tar.gz 'http://museum.php.net/php5/php-5.3.10.tar.gz' tar xzvf php-5.3.10.tar.gz cd php-5.3.10 ./configure --prefix=/usr/local/php-5.3.10 --with-config-file-path=/usr/local/php-5.3.10/etc --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap make make install ln -s /usr/local/php-5.3.10 /usr/local/php 启动脚本 使用下面的脚本需要修改php-fpm.conf,把pid那行的注释去掉 ...