您好,登錄后才能下訂單哦!
一、安裝php前準備:
rpm -qa zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel openssl-devel libxslt-devel
mysql,apache,libiconv需要源碼安裝
二、編譯參數(shù)
./configure \
--prefix=/application/php-5.6.13 \
--with-apxs2=/application/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-xmlrpc \
--with-openssl \
--with-zlib \
--with-freetype-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-iconv=/application/libiconv-1.14 \
--enable-short-tags \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--enable-static \
--enable-gd-native-ttf \
--with-curl \
--with-xsl \
--enable-ftp \
--with-libxml-dir
三、make && make install
四、配置修改
ln -s /application/php5.3.10 /application/php
cp php.ini-production /application/php/lib/php.ini
修改httpd.conf
grep php conf/httpd.conf
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.php index.html
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
./bin/apachectl -t
Syntax OK
./bin/apachectl graceful
httpd.conf里關(guān)于htdocs權(quán)限
Order allow,deny
Allow from all
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。