您好,登錄后才能下訂單哦!
版本:php-5.4.13
編譯環境
yum install autoconf automake libtool curl-devel libjpeg-devel libpng-devel freetype-devel gd gd-devel glibc glibc-common -y |
編譯安裝ncurses-5.9.tar.gz、openssl-1.0.1e.tar.gz、zlib-1.2.7.tar.gz 、libmcrypt-2.5.7.tar.gz、php-5.4.13.tar.gz
tar zxvf ncurses-5.9.tar.gz cd ncurses-5.9./configuregmake && gmake install |
tar zxvf openssl-1.0.1e.tar.gzcd openssl-1.0.1e ./confg --prefix=/usr/local/ssl shared zlib-dynamic enable-camelliamake && make installecho "/usr/local/ssl/lib/" >/etc/ld.so.conf.d/usr_local_ssl_lib.conf |
tar zxvf zlib-1.2.7.tar.gz cd zlib-1.2.7 ./configure --prefix=/usr/local/zlibmake && make install |
tar zxvf libmcrypt-2.5.7.tar.gz cd libmcrypt-2.5.7 ./configure make && make installcd libltdl/./configure --enable-ltdl-installmake && make install/sbin/ldconfig |
tar zxvf php-5.4.13.tar.gz cd php-5.4.13 ./configure --prefix=/usr/local/php \#指定位置# --with-apxs2=/usr/local/apache2/bin/apxs \#以apache做解析開啟--with-mysql=/usr/local/mysql \#mysql安裝位置--with-pdo-mysql=/usr/local/mysql/bin/mysql_config \--with-mysqli=/usr/local/mysql/bin/mysql_config \--with-config-file-path=/etc \配置文件路徑--disable-debug \--enable-cgi \--enable-fastcgi \--disable-short-tags \--with-openssl=/usr/local/ssl \--with-zlib=/usr/local/zlib \--enable-bcmath \--enable-calendar \--enable-dba \--with-pcre-dir \--enable-ftp \--enable-json \--with-mcrypt \--with-freetype-dir \--with-jpeg-dir \--with-png-dir \--with-ttf \--enable-xml \--enable-zip \--enable-fpm \#開啟fpm,以nginx等靜態服務器解析開啟--with-gd \--enable-discard-path \--enable-safe-mode \--enable-shmop \--enable-sysvsem \--with-curl \#64位去掉--with-curlwrappers \#64位去掉--enable-mbregex \--enable-force-cgi-redirect \--enable-mbstring \--enable-dbx--enable-sockets \--enable-soap \--with-ncurses \--with-pear \--enable-zend-multibytemake && make installmv /etc/php.ini /etc/php.ini.bakcp php.ini-production /etc/php.inicp sapi/fpm/init.d.php-fpm /etc/rc.d/init.d/php-fpmchmod 755 /etc/rc.d/init.d/php-fpm #支持靜態服務器解析php
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。