十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
版本:php-5.4.13
编译环境
郫都ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为成都创新互联公司的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:028-86922220(备注:SSL证书合作)期待与您的合作!
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