[LAMP]Php-5.3.29編譯安裝
環境引數:Linux:Centos6.5,php:5.3.29,libiconv:1.14
1.必要軟體安裝準備
yum install zlib zlib-devel libxml libxml2-devel libjpeg libjpeg-devel freetype freetype-devel libpng libpng-devel gd gd-devel curl curl-devel libxslt libxslt-devel -y
2.下載libiconv,下載地址:wget
3.編譯安裝libiconv
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make && make install
4.下載Php,下載地址:sudo wget
5.解壓Php
tar xf php-5.3.29.tar.gz
cd php-5.3.29
6.編譯Php
./configure \
--prefix=/application/php5.3.29 \
--with-apxs2=/application/apache/bin/apxs \
--with-mysql=/application/mysql \
--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-zend-multibyte \
--enable-soap \
--enable-mbstring \
--enable-static \
--enable-gd-native-ttf \
--with-curl \
--with-xsl \
--enable-ftp \
--with-libxml-dir
7.安裝Php
make && make install
8.使Apache支援Php
vim /application/apache/conf/httpd.conf
加入如下紅字內容
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
1.必要軟體安裝準備
yum install zlib zlib-devel libxml libxml2-devel libjpeg libjpeg-devel freetype freetype-devel libpng libpng-devel gd gd-devel curl curl-devel libxslt libxslt-devel -y
2.下載libiconv,下載地址:wget
3.編譯安裝libiconv
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make && make install
4.下載Php,下載地址:sudo wget
5.解壓Php
tar xf php-5.3.29.tar.gz
cd php-5.3.29
6.編譯Php
./configure \
--prefix=/application/php5.3.29 \
--with-apxs2=/application/apache/bin/apxs \
--with-mysql=/application/mysql \
--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-zend-multibyte \
--enable-soap \
--enable-mbstring \
--enable-static \
--enable-gd-native-ttf \
--with-curl \
--with-xsl \
--enable-ftp \
--with-libxml-dir
7.安裝Php
make && make install
8.使Apache支援Php
vim /application/apache/conf/httpd.conf
加入如下紅字內容
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29812844/viewspace-1988853/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 編譯安裝LAMP環境編譯LAMP
- LAMP原始碼編譯安裝LAMP原始碼編譯
- [LAMP]Mysql-5.6.28編譯安裝LAMPMySql編譯
- LAMP兩種編譯安裝模式LAMP編譯模式
- LAMP 編譯安裝基本步驟LAMP編譯
- 詳解LAMP原始碼編譯安裝LAMP原始碼編譯
- LAMP原始碼編譯安裝配置+wordpressLAMP原始碼編譯
- [LAMP]Apache-2.2.31編譯安裝LAMPApache編譯
- LAMP純原始碼編譯安裝日誌LAMP原始碼編譯
- 在Centos5.2下編譯安裝LAMPCentOS編譯LAMP
- LAMP全功能編譯安裝forCentOS6.3筆記(更新)LAMP編譯CentOS筆記
- Centos6.8下編譯安裝LAMP的操作記錄梳理CentOS編譯LAMP
- CentOS5.5下快速編譯安裝最新的LAMP環境CentOS編譯LAMP
- lamp編譯詳解LAMP編譯
- 原始碼編譯安裝 httpd2.4+MariaDB5.5+php5.4(LAMP)原始碼編譯httpdPHPLAMP
- lamp安裝LAMP
- Apache伺服器的編譯安裝和LAMP環境的構建Apache伺服器編譯LAMP
- ubuntu手動編譯lampUbuntu編譯LAMP
- yum安裝lampLAMP
- 編譯LAMP環境之PHP編譯LAMPPHP
- 編譯搭建LAMP伺服器編譯LAMP伺服器
- 編譯安裝zabbix編譯
- apache編譯安裝Apache編譯
- 編譯安裝nmon編譯
- swoole 編譯安裝編譯
- 編譯安裝Nginx編譯Nginx
- 編譯安裝mysql編譯MySql
- nginx編譯安裝Nginx編譯
- 安裝編譯ffmpeg編譯
- Griffin編譯安裝編譯
- LAMP原始碼安裝+wordpress安裝LAMP原始碼
- 原始碼安裝lamp原始碼LAMP
- LAMP:用yum安裝LAMP
- Shell編譯安裝nginx編譯Nginx
- centos PHP 編譯安裝CentOSPHP編譯
- httpd編譯安裝phphttpd編譯PHP
- PHP的編譯安裝PHP編譯
- Mysql 5.7.17 編譯安裝MySql編譯