tengine php mysql_CentOS 32位系统下安装tengine1.4+php5.2+mysql5.6最新版本

这份是旧的版本,主要针对32位的系统,所以没有在新版本中更新,可以参照64位系统,部分文件需要下载不同版本

yum -y install patch make gcc gcc-c++ gcc-g77 flex bison file

yum -y install libtool libtool-libs autoconf kernel-devel

yum -y install libjpeg libjpeg-devel libpng libpng-devel gd gd-devel

yum -y install freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel

yum -y install glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel

yum -y install ncurses ncurses-devel curl curl-devel e2fsprogs

yum -y install e2fsprogs-devel krb5 krb5-devel libidn libidn-devel

yum -y install openssl openssl-devel vim-minimal nano sendmail

yum -y install fonts-chinese gettext gettext-devel

yum -y install ncurses-devel

yum -y install gmp-devel pspell-devel

yum -y install openldap openldap-devel

yum -y install unzip

yum -y install libpcap-devel

mkdir /usr/local/webserver

groupadd mysql

useradd -g mysql mysql

cd /usr/local/src/

tar xzf mysql-5.6.12-linux-glibc2.5-i686.tar.gz

mv mysql-5.6.12-linux-glibc2.5-i686 /usr/local/webserver/

ln -s /usr/local/webserver/mysql-5.6.12-linux-glibc2.5-i686 /usr/local/mysql

cd /usr/local/mysql

scripts/mysql_install_db --user=mysql

chown -R root .

chown -R mysql data

chgrp -R mysql .

cp support-files/my-default.cnf /etc/my.cnf

./bin/mysqld_safe --user=mysql &

sleep 10

./bin/mysqladmin -u root password yourpassword

cp support-files/mysql.server /etc/rc.d/init.d/mysqld

chmod +x /etc/rc.d/init.d/mysqld

chkconfig --add mysqld

cd /usr/local/src/

tar xzf libiconv-1.13.1.tar.gz

cd libiconv-1.13.1

./configure --prefix=/usr/

make && make install

cd ..

tar zxvf libmcrypt-2.5.8.tar.gz

cd libmcrypt-2.5.8

./configure --prefix=/usr/

make && make install

/sbin/ldconfig

cd libltdl/

./configure --prefix=/usr/ --enable-ltdl-install

make && make install

cd ../..

tar jxvf mhash-0.9.9.9.tar.bz2

cd mhash-0.9.9.9

./configure --prefix=/usr/

make && make install

cd ..

tar zxvf mcrypt-2.6.8.tar.gz

cd mcrypt-2.6.8

./configure --prefix=/usr/

make && make install

cd ..

ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib

tar xzf php-5.2.17.tar.gz

gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1

cd php-5.2.17

./configure --prefix=/usr/local/webserver/php \

--with-config-file-path=/usr/local/webserver/php/etc \

--with-mysql=/usr/local/mysql/ \

--with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/ \

--with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/ \

--enable-xml --disable-rpath --enable-discard-path --enable-bcmath \

--enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers \

--enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring \

--with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl \

--enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap

make ZEND_EXTRA_LIBS='-liconv'

make install

cp php.ini-dist /usr/local/webserver/php/etc/php.ini

cd ..

/usr/local/webserver/php/bin/php go-pear.phar

tar zxvf memcache-2.2.6.tgz

cd memcache-2.2.6

/usr/local/webserver/php/bin/phpize

./configure --with-php-config=/usr/local/webserver/php/bin/php-config

make && make install

cd ..

tar zxvf PDO_MYSQL-1.0.2.tgz

cd PDO_MYSQL-1.0.2

/usr/local/webserver/php/bin/phpize

./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-pdo-mysql=/usr/local/mysql/

make && make install

cd ..

tar jxvf ImageMagick-6.7.2-10.tar.bz2

cd ImageMagick-6.7.2-10

./configure

make && make install

cd ..

tar zxvf imagick-3.0.1.tgz

cd imagick-3.0.1

/usr/local/webserver/php/bin/phpize

./configure --with-php-config=/usr/local/webserver/php/bin/php-config

make && make install

cd ..

tar jxvf eaccelerator-0.9.6.tar.bz2

cd eaccelerator-0.9.6/

/usr/local/webserver/php/bin/phpize

./configure -enable-eaccelerator=shared -with-php-config=/usr/local/webserver/php/bin/php-config

make && make install

cd ..

tar xzf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

mv ZendOptimizer-3.3.9-linux-glibc23-i386/ /usr/local/webserver/Zend

cd /usr/local/webserver/Zend

mkdir lib

cp data/5_2_x_comp/ZendOptimizer.so lib/

cd /usr/local/src/

tar xzf pcre-8.12.tar.gz

cd pcre-8.12

./configure --prefix=/usr/

make &&make install

cd ..

groupadd nginx

useradd -g nginx nginx

tar zxvf tengine-1.4.4.tar.gz

cd tengine-1.4.4

./configure --prefix=/usr/local/webserver/tengine --user=nginx --group=nginx \

--with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module \

--with-sha1=/usr/lib --with-md5=/usr/lib

make && make install

cd ..

tar xzvf memcached-1.4.4.tar.gz

cd memcached-1.4.4

./configure -with-libevent=/usr/

make && make install

版权属于:

转载时必须以链接形式注明原始出处及本声明。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值