您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
版本: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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。