---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
--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
./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
./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
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
<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