真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

apache2.2.x+php5.5安裝部署

1.安裝apr,apr-util

創(chuàng)新互聯(lián)公司主營(yíng)武穴網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,app軟件定制開(kāi)發(fā),武穴h5小程序制作搭建,武穴網(wǎng)站營(yíng)銷推廣歡迎武穴等地區(qū)企業(yè)咨詢

tar -zxf apr-1.4.5.tar.gz

cd apr-1.4.5

./configure --prefix=/usr/local/apr

make && make install

tar -zxf apr-util-1.3.12.tar.gz

cd apr-util-1.3.12

./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config

make && make install

2.安裝pcre

unzip -o pcre-8.10.zip

cd pcre-8.10

./configure --prefix=/usr/local/pcre

make && make install

3.安裝其他依賴

yum install –y zlib zlib-devel openssl openssl-devel

4.編譯安裝apache

tar zxf httpd-2.2.31.tar.gz

cd httpd-2.2.31

./configure \

--prefix=/usr/local/apach-2.2.31 \

--with-apxs2=/usr/local/apache-2.2.31/bin/apxs \

--enable-deflate \

--enable-expires \

--enable-headers \

--enable-modules=most \

--enable-so \

--with-ssl \

--enable-ssl \

--enable-cgid \

--enable-cgi \

--with-apr-util=/usr/local/apr-util \

--with-mpm=worker \

--enable-rewrite \

--with-pcre=/usr/local/pcre \

--with-included-apr

make && make install

5.安裝php依賴

yuminstall –y zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel libxml2*libcurl* libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel xml2xml2-devel libxslt-devel

6.安裝libiconv

tar -zxf libiconv-1.14.tar.gz

cd libiconv-1.14

./configure --prefix=/usr/local/libiconv

make

make install

7.編譯安裝php5.5

tar -zxf php-5.5.20.tar.gz

cd php-5.5.20

./configure \

--prefix=/usr/local/php5.5.20 \

--enable-MySQLnd \

--with-mysql=mysqlnd \

--with-mysqli=mysqlnd \

--with-pdo-mysql=mysqlnd \

--enable-bcmath \

--with-gettext \

--with-xmlrpc \

--with-openssl \

--with-zlib \

--with-freetype-dir \

--with-gd \

--with-jpeg-dir \

--with-png-dir \

--with-iconv=/usr/local/libiconv \

--enable-short-tags \

--enable-sockets \

--enable-soap \

--enable-mbstring \

--enable-static \

--enable-gd-native-ttf \

--enable-zip \

--with-curl \

--with-xsl \

--enable-ftp \

--with-gettext \

--enable-opcache \

--with-libxml-dir

ln -s /usr/local/php5.5.20 /usr/local/php

cp php.ini-production /usr/local/php/lib/php.ini

8.配置apache支持php

1)添加主持.php后綴名

DirectotyIndex index.html index.php

 2)找到如下兩行

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

在后面添加

AddType application/x-httpd-php .php.phtml

AddType application/x-httpd-php-source.phps



網(wǎng)頁(yè)名稱:apache2.2.x+php5.5安裝部署
URL標(biāo)題:http://weahome.cn/article/gjdpps.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部