您好,登錄后才能下訂單哦!
一、安裝php前準備:
rpm -qa zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel openssl-devel libxslt-devel
mysql,apache,libiconv需要源碼安裝
二、編譯參數
./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里關于htdocs權限
Order allow,deny
Allow from all
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。