记录个人php编译安装-创新互联
安装之前:
在安平等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供网站设计、成都网站建设 网站设计制作按需网站制作,公司网站建设,企业网站建设,品牌网站设计,全网营销推广,外贸网站制作,安平网站建设费用合理。centos下: yum -y install gcc pcre-devel curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl-devel libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 ubuntu下: apt-get -y install libxml2-dev libxml2 libpng-dev zlib1g-dev openssl libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libfreetype6-dev --force-yes wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz tar -zxvf libmcrypt-2.5.7.tar.gz cd libmcrypt-2.5.7 ./configure --prefix=/usr/local/libmcrypt make && make install下载安装php5.6:
wget -c http://au1.php.net/get/php-5.6.8.tar.gz/from/this/mirror tar -zxvf mirror cd php-5.6.8/ ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt --with-freetype-dir==/usr/lib64/ --with-jpeg-dir=/usr/lib64/ --with-gd make && make install下载安装php7.0.2
wget -c http://cn2.php.net/distributions/php-7.0.2.tar.gz tar -xzxvf php-7.0.2.tar.gz cd php-7.0.2 ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt --with-freetype-dir==/usr/lib64/ --with-jpeg-dir=/usr/lib64/ --with-gd make && make install cp php.ini-development /usr/local/php/lib/php.ini vi /etc/profile 在最低部添加 PATH=$PATH:/usr/local/php/bin export PATH source /etc/profile cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm chmod +x /etc/init.d/php-fpm vi /usr/local/php/etc/php-fpm.d/www.conf 修改 user = www group = www groupadd www useradd -g www www /etc/init.d/php-fpm restart另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前文章:记录个人php编译安装-创新互联
文章URL:http://azwzsj.com/article/jccgp.html