PHP安装

RedHat6(CentOS6)下PHP+Nginx安装

醉酒当歌 提交于 2019-12-06 16:35:10
PHP安装 1.下载php-5.5.30.tar.bz2,我的是放到/home/php目录下, 2.解压安装PHP,输入命令,tar -xjf php-5.5.30.tar.bz2 3.进入解压目录php-5.5.30,我是安装到/home/php/php5530,输入命令, ./configure --prefix=/home/php/php5530 \ --with-config-file-path=/home/php/php5530/etc --with-bz2 --with-curl \ --enable-ftp --enable-sockets --disable-ipv6 --with-gd \ --with-jpeg-dir=/usr/local --with-png-dir=/usr/local \ --with-freetype-dir=/usr/local --enable-gd-native-ttf \ --with-iconv-dir=/usr/local --enable-mbstring --enable-calendar \ --with-gettext --with-libxml-dir=/usr/local --with-zlib \ --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with