Centos LAMP(二)
mkdir -p /tmp/src
cd /tmp/src
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 libpng10 libpng10-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 unzip
yum install gcc gcc-c++ flex autoconf automake make m4 patch libtool openssl-devel file time mlocate sudo bind-utils -y
yum update -y
http://monkey.org/~provos/libevent-2.0.9-rc.tar.gz
tar -xzf libevent-2.0.9-rc.tar.gz
cd libevent-2.0.9-rc
./configure
make && make install
cd /tmp/src
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
tar -xzf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure
make && make install
cd /tmp/src
wget http://launchpad.net/libmemcached/1.0/0.44/+download/libmemcached-0.44.tar.gz
tar -xzf libmemcached-0.44.tar.gz
cd libmemcached-0.44
./configure
make && make install
cd /tmp/src
yum install mysql-server -y
rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm
yum --enablerepo=webtatic install php-devel php php-mysql php-sockets php-process php-pecl-memcache php-pecl-gearman httpd php-mcrypt php-mbstring -y
cd /var/www/html
wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.8.1%2FphpMyAdmin-3.3.8.1-all-languages.tar.gz/download
tar -xzf phpMyAdmin-3.3.8.1-all-languages.tar.gz
mv phpMyAdmin-3.3.8.1-all-languages phpmyadmin
cd /root
none