SUSE Linux apache,Mysql,php,svn的安装

 一 、安装apache
 1. tar -zxvf httpd-2.2.17.tar.gz
 2. cd httpd-2.2.17
 3. sudo ./configure --prefix=/space/soft/apache2 --enable-so --enable-dav --enable-dav-fs --enable-maintainer-mode --with-included-apr --enable-rewrite --enable-ssl --enable-proxy --enable-proxy-http
 4. sudo make
 5. sudo make install
 
 二、Mysql 安装
 1. tar zxvf mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
 2. mv mysql-5.6.10-linux-glibc2.5-x86_64 /space/soft/mysql
 3. sudo /usr/sbin/groupadd mysql
 4. sudo /usr/sbin/useradd -g mysql mysql
 5. mkdir -p /space/soft/mysql/data
 6.   sudo chown -R mysql:mysql /space/soft/mysql/data
 7. sudo /space/soft/mysql/scripts/mysql_install_db --basedir=/space/soft/mysql --datadir=/space/soft/mysql/data --user=mysql
 8. sed -i "s#/space/soft/mysql#/space/soft/mysql#g" /space/soft/mysql/bin/mysqld_safe
 9. 修改 /space/soft/mysql/my.cnf
    增加socket=/tmp/mysql.sock
 10. mysql启动
   sudo /space/soft/mysql/bin/mysqld_safe --defaults-file=/space/soft/mysql/my.cnf --user=mysql &
 11. mysql关闭
   sudo /space/soft/mysql/bin/mysqladmin -uroot --socket=/tmp/mysql.sock shutdown
 12. sudo vi /etc/ld.so.conf
    增加/space/soft/mysql/lib
 13. sudo ldconfig
 
 三、PHP 安装
 1. tar -zxvf php-5.2.14.tar.gz
 2. cd php-5.2.14
 3. sudo ./configure --prefix=/space/soft/php --with-apxs2=/space/soft/apache2/bin/apxs --with-mysql=/space/soft/mysql --enable-mbstring
 4. sudo make
 5. sudo make install
 6. sudo cp php.ini-recommended /space/soft/php/etc/php.ini
 
 四、测试php安装是否成功
  1. sudo vi /space/soft/apache2/conf/httpd.conf
  2. 检查是否有以下内容,没有则添加:
     LoadModule php5_module        modules/libphp5.so
   增加Index.php
    <IfModule dir_module>
    DirectoryIndex index.php index.html
    </IfModule>
  增加以下内容
    AddType application/x-httpd-php .php .php3 .phtml .inc
    AddType application/x-httpd-php-source .phps  
 
  五、安装SVN                                               
   1.  tar -zxvf subversion-1.6.6.tar.gz
   2.  tar -zxvf subversion-deps-1.6.6.tar.gz
   3.  cd subversion-1.6.6
   4. sudo ./configure --prefix=/space/soft/svn --with-apxs=/space/soft/apache2/bin/apxs --with-apr=/space/soft/apache2/bin/apr-1-config --with-apr-util=/space/soft/apache2/bin/apu-1-config --without-berkeley-db
   5. sudo make
   6su. sudo make install
   
  六、SVN 配置
   1. sudo mkdir -p /space/svndata #分创建svn的版本库的总目录
   2. sudo chown -R daemon:daemon /space/svndata
   3. 修改/space/soft/apache2/conf/httpd.conf增加以下内容
   sudo vi /space/soft/apache2/conf/httpd.conf
  <Location /svn>                                                                   
  DAV svn                                                                                
  SVNListParentPath On                                                         
  SVNParentPath /space/svndata                                                    
  AuthType Basic                                                                     
  AuthName "SVN REPOS"                                                   
  AuthUserFile /space/soft/svn/svn_passwdfile                    
  AuthzSVNAccessFile //space/soft/svn/svn/svn_accessfile        
  Require valid-user                                                             
  </Location>                                                                          

sudo    /space/soft/svn/bin/svnadmin create /space/svndata/test        
sudo zypper install  lexpat
   
   
 <Directory "/space/soft/apache2/htdocs/svnman/">
 AllowOverride None
 Order deny,allow
 Deny from all
 Allow from all
 </Directory>
 
 
 七、安装VersionControl_SVN
 tar -zxvf VersionControl_SVN-0.3.3.tgz
 sudo /space/soft/php/bin/pear install –alldeps VersionControl_SVN-0.3.3.tgz

svnadin/123456

你可能感兴趣的:(apache,linux,mysql,PHP,SVN,SuSE)