centos6.4下安装php7+nginx+mariadb环境
一,安装php7 1,创建php用户和用户组,并在github下载php7源码 #新建php用户和php组 # groupadd -r php && useradd -r -g php -s /bin/false -d /usr/local/php7 -M php ######从GitHub下载php7安装包 # wget -c --no-check-certificate -O php7-src-master.zip https://github.com/php/php-src/archive/master.zip ######开始解压php7包 # unzip -q php7-src-master.zip && cd php-src-master #####安装编译php7时需要的依赖包 php-src-master]# yum -y install libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel 2,编译安装php ./buildconf ./configure --prefix=/usr/local/php7 --exec-prefix=/usr/local/php7 \ --bindir=/usr