大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
安装之前:
创新互联公司服务项目包括遂川网站建设、遂川网站制作、遂川网页制作以及遂川网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,遂川网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到遂川省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!
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