目前創(chuàng)新互聯(lián)建站已為超過千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、綿陽服務(wù)器托管、企業(yè)網(wǎng)站設(shè)計、尼木網(wǎng)站維護(hù)等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
C語言xml parser類庫 libxml2 http://pan.baidu.com/s/1eQhIQf4
openssl 類庫下載地址 http://pan.baidu.com/s/1ntqYa4h
bzip2下載地址 http://pan.baidu.com/s/1gdjcKQv
zlib下載地址 http://pan.baidu.com/s/1dDgyYTr
libcurl下載地址 http://pan.baidu.com/s/1c06j336
jpeg類庫下載地址 http://pan.baidu.com/s/1mg3RqWw
libpng類庫下載地址 http://pan.baidu.com/s/1eQuAdhC
libfreetype類庫下載地址 http://pan.baidu.com/s/1mgpEgOg
libxslt 類庫下載地址 http://pan.baidu.com/s/1dDEoYit
PHP 5.6 ×××地址 http://pan.baidu.com/s/1mgEGDk8
所有安裝包下載好后,放到 /url/local下解壓,再安裝
./configure --with-python=no
make && make install
./configure
make && make install
make && make install
./configure
make && make install
./configure
make && make install
./configure
make && make install
./configure
make && make install
./configure
make && make install
./configure
make && make install
./configure
make && make install
先 which apxs 查找 apxs ,如果找不到apxs則安裝httpd-devel
yum install httpd-devel
./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc \
--with-config-file-scan-dir=/usr/local/php/etc/conf.d \
--enable-fpm \
--with-pear \
--with-curl \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-iconv \
--with-mcrypt \
--with-mhash \
--with-zlib \
--with-xmlrpc \
--with-xsl \
--with-openssl \
--with-MySQL \
--with-mysqli \
--with-pdo-mysql \
--with-apxs2=/usr/sbin/apxs \
--disable-debug \
--enable-zip \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--enable-inline-optimization \
--enable-xml \
--enable-ftp \
--enable-exif \
--enable-wddx \
--enable-bcmath \
--enable-calendar \
--enable-shmop \
--enable-dba \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg
make && make install
ln -s /usr/local/php/bin/php /usr/local/bin。
[root@localhost php]# ln -s /usr/local/php/bin/php /usr/local/bin/
[root@localhost php]# php -v
PHP 5.6.10 (cli) (built: Jun 18 2015 19:52:16)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
[root@localhost php]#。
測試成功
chcon -t texrel_shlib_t /usr/local/lib/libfreetype.so.6
chcon -t texrel_shlib_t /usr/local/lib/libpng16.so.16
chcon -t texrel_shlib_t /usr/lib/httpd/modules/libphp5.so (這句可以不執(zhí)行)
echo /usr/local/lib >> /etc/ld.so.conf & ldconfig
備注:service httpd start 運行可能會出現(xiàn)/usr/local/lib/libfreetype.so.6: cannot restore segment prot after reloc: Permission denied等錯誤,上面的命令是保證apache 啟動時 libphp5.so模塊運行的依賴類庫能正常加載,保證apache加載libphp5.so后能正常啟動所做的設(shè)置
配置文件php.ini修改。在安裝時,我們配置了配置文件的安裝目錄為 /usr/local/php/etc 從源碼目錄拷貝配置文件到這個目錄
cp /usr/local/php-5.6.10/php.ini-development /usr/local/php/etc/php.ini