httpd mysql php svn安装

sudo -s
LANG=C
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib 

zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel 

krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers

看手册安装
#===apache的安装================================================
wget http://mirror.bjtu.edu.cn/apache/httpd/httpd-2.0.64.tar.gz   
(不要使用bz2,找apr和apr-util太麻烦,这个文件里面有现成的这个两文件包)

tar zxvf httpd-2.0.64.tar.gz 

#=# 编译和安装 apr 1.2=======================
cd httpd-2.0.64/srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make && make install

# 编译和安装 apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install

# 配置 httpd
cd ../../
./configure --prefix=/opt/module/httpd --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
make && make install


#===Mysql的安装=================================================
wget http://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.1.35.tar.gz
/usr/sbin/groupadd  mysql
/usr/sbin/useradd -g mysql mysql
gunzip < mysql-5.1.35.tar.gz | tar -xvf -
cd mysql-5.1.35
./configure --prefix=/opt/module/mysql
make && make install
mkdir /opt/module/mysql/etc
cp support-files/my-medium.cnf /opt/module/mysql/etc/my.cnf
/opt/module/mysql/bin/mysql_install_db --user=mysql
chown -R root /opt/module/mysql/.
chown -R mysql /opt/module/mysql/var
chgrp -R mysql /opt/module/mysql/.
/opt/module/mysql/bin/mysqld_safe --user=mysql &


#===PHP的安装================================================
wget http://cn2.php.net/get/php-5.2.14.tar.gz/from/cn.php.net/mirror
tar zxvf php-5.2.14.tar.gz
cd php-5.2.14

./configure --prefix=/opt/module/php --with-apxs2=/opt/module/httpd/bin/apxs  --enable-trans-sid --with-config-file-

path=/opt/module/php/etc --with-mysql=/opt/module/mysql --with-mysqli=/opt/module/mysql/bin/mysql_config     --enable-short-tags 

--with-gd --with-zlib --with-jpeg --with-png --enable-memory-limit --disable-posix 

make && make install
cp php.ini-dist /opt/module/php/etc/php.ini



#===PHP与Apache结合===========================================
在httpd.conf末尾添加
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
                       
启动Apache
    

#===安装eaccelerator====================================   
wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2  
tar xvf eaccelerator-0.9.6.1.tar.bz2 
cd eaccelerator-0.9.6.1
/opt/module/php5.3.3/bin/phpize 
./configure --with-php-config=/opt/module/php5.3.3/bin/php-config
make && make install
mkdir -p /var/cache/eaccelerator      
chmod 777 -R /var/       

编辑php.ini文件在最后加入vi /opt/module/php5.3.3/lib/php.ini
[eaccelerator]
zend_extension="/opt/module/php5.3.3/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="256"
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="0"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"


#===安装SVN客户端=======================================   
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.15.tar.gz  
wget http://subversion.tigris.org/downloads/subversion-1.6.15.tar.gz  
   
tar zxvf subversion-1.6.15.tar.gz  
tar zxvf subversion-deps-1.6.15.tar.gz  
   
解压这两个文件(不要乱了顺序),subversion-deps包有四个目录zlib apr apr-util neon这四个目录都是依赖包,编译subversion所必须的代码  
此时在当前目录下会出现subversion-1.6.15文件夹  
  
cd subversion-1.6.15  
  
./configure --prefix=/opt/modules/svn --with-ssl --without-berkeley-db  
SVN客户端安装好之后,默认安装目录是/usr/local/subversion  
  
make && make install  
 
将svn命令链接到/usr/local/bin目录下  
ln -s /opt/modules/svn/bin/svn /usr/local/bin  
  
测试是否已经可以在用户目录下使用svn:svnhelp如果出现命令列表,则表示已经链接成功  

你可能感兴趣的:(mysql,PHP,SVN,subversion,Zend)