安裝環(huán)境:REDHAT AS 4
時間:2005-11-21
作者:millsguo
Blog:http://bbs./blog/mills
安裝步驟:
系統(tǒng)默認安裝包:
autoconf-2.59-5
libtool-1.5.6-4
一,、下載安裝APACHE2
1,、下載httpd-2.0.55.tar.gz源碼包
該源碼包中包含APR和APR-UTIL模塊,,不需重新下載
#tar xvzf httd-2.0.55.tar.gz
#cd httpd-2.0.55
//安裝APR和APR-UTIL
#cd srclib/apr
#./buildconf
#./configure --prefix=/usr/local/apr
#make && make install
#cd ../apr-util
#./buildconf
#./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
#make && make install
#cd ../..
#./configure --enable-dav --enable-maintainer-mode --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-mpm=worker --enable-track-vars --enable-cgi --enable-modules=so --enable-rewrite
#make && make install
修改httpd.conf文件
加入
LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/mod_perl.so
AddType application/x-httpd-php .php .php3 .inc
AddType application/x-httpd-php-source .phps
二,、PHP安裝
configure --enable-pic --with-bz2 --with-png --with-freetype-dir --with-gd --enable-gd-native-ttf --with-iconv --with-jpeg-dir=/usr/lib --with-xml --with-zlib --enable-ftp --enable-sockets --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring=all --prefix=/usr/local/php4 --enable-exif
三,、安裝subversion
#./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-apxs=/usr/local/apache2/bin/apxs
#make && make install
#/usr/local/subversion/bin/svnadmin create /data/svn/root
#chown -R nobody /data/svn
在apache2的httpd.conf中加入以下代碼:
<Location /svn>
DAV svn
SVNPath /data/svn/root
AuthType Basic
AuthName "CSYL Version Control System"
AuthUserFile /data/svn/svn-auth-file
Require valid-user
</Location>
生成密碼文件
#mkdir /data/svn
#chown -R nobody /data/svn
#/usr/local/apache2/bin/htpasswd -c /data/svn/svn-auth-file mills
[quote]
在安裝完后出現(xiàn)以下問題:
svn: PROPFIND request failed on ‘/svn/repository‘
svn:Could not open the requested SVN filesystem
GOOGLE了半天后,,終于發(fā)現(xiàn)是httpd.conf中的<location>標簽中的路徑?jīng)]設(shè)好,。
<Location /svn>
DAV svn
SVNPath /data/svn/root
</Location>
訪問方式:http://blog./svn
[/quote]