Apache with subversion & php

---apache
./configure --prefix=/home/$USER/local/httpd \
    --enable-so    \
    --enable-cgi \
    --enable-info \
    --enable-rewrite \
    --enable-speling \
    --enable-usertrack \
    --enable-deflate \
    --enable-ssl \
    --enable-mime-magic \
    --enable-dav
make && make install

--- php
./configure --prefix=/home/$USER/local/php \
    --with-apxs2=/home/$USER/local/httpd/bin/apxs \
    --with-mysql=/home/$USER/local/mysql/mysql-5.1.30 \
    --with-config-file-path=/home/$USER/local/httpd/php \
    --disable-cgi \
    --with-zlib \
    --with-gettext \
    --with-gdbm
make && make test && make install

cp php.ini-development /home/$USER/local/httpd/php/php.ini


In $APACHE_HOME/conf/httpd.conf, add the following lines.
# .start: Add php moulde and php preprocessor
LoadModule php5_module        modules/libphp5.so
AddHandler php5-script        .php

# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php

AddType text/html .phpb
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps
# .end: Add php moulde and php preprocessor


--- SVN
./configure  --prefix=/home/$USER/local/sqlite

./config --prefix=/home/$USER/local/openssl zlib shared

./configure --prefix=/home/$USER/local/serf \
            --with-apr=/home/$USER/local/httpd/bin \
            --with-apr-util=/home/$USER/local/httpd/bin \
            --with-openssl=/home/$USER/local/openssl/ssl

./configure  --prefix=/home/$USER/local/svn \
             --with-apr=/home/$USER/local/httpd/bin/apr-1-config \
             --with-apr-util=/home/$USER/local/httpd/bin/apu-1-config \
             --with-sqlite=/home/$USER/local/sqlite \
             --without-berkeley-db \
             --with-zlib --enable-shared \
             --with-serf=/home/$USER/local/serf \
             --with-openssl=/home/$USER/local/openssl \
             --with-apxs=/home/$USER/local/httpd/bin/apxs \
             --with-jdk=/home/$USER/local/jdk/bin/java

$APACHE_HOME/bin/htpasswd -c $APACHE_HOME/conf/svn-auth-file username1
$APACHE_HOME/bin/htpasswd -n username2


vi $APACHE_HOME/conf/httpd.conf
# .start.section1 Add svn server configuration
LoadModule dav_svn_module     modules/mod_dav_svn.so
#LoadModule authz_svn_module   modules/mod_authz_svn.so
# .end.section1   Add svn server configuration


# .start.section2 Add svn server configuration                                                                              
<Location /svn>
  DAV svn
  SVNPath /home/$USER/code/svn-repos
  AuthType Basic
  AuthUserFile conf/svn-auth-file # created by $APACHE_HOME/bin/htpasswd
  AuthName "subversion repos"
  Require valid-user
#  <LimitExcept GET PROPFIND OPTIONS REPORT>
#     Require valid-user
#  </LimitExcept>
</Location>
# .end.section2   Add svn server configuration

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值