tar -jxvf subversion-deps-x.x.x.tar.bz2
cd subversion-x.x.x
Now we'll compile the APR first.
cd apr
./configure --prefix=/usr/local/apr
make
make install
cd ..
Next we'll compile APR-UTIL.
cd apr-util
./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr/
make
make install
cd ..
After we're done with APR and APR-UTIL, we'll need to compile NEON.
cd neon
./configure --prefix=/usr/local/neon
make
make install
cd ..
Finally we need to compile subversion with the support for all the we just installed.
./configure --prefix=/usr/local/subversion --with-apxs={Location where you installed apache}/bin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-neon=/usr/local/neon/ --with-ssl
make
make install
Creating a user for apache and modifying httpd.conf:
groupadd apache
useradd -g apache -d /usr/local/apache2
After installing apache we need to set ownership of all the files in /usr/local/apache2 to user apache.
chown -Rv apache.apache /usr/local/apache2
Finally we need to set which user the Apache server will be running as.
Edit the default configuration file, or whatever configuration file apache uses to run as.
I am going to assume the configuration file is /usr/local/apache2/conf/httpd.conf.
vi /usr/local/apache2/conf/httpd.conf
Locate the line where it states something like.
User nobody
Group #-1
Make it look like this.
User apache
Group apache
댓글 없음:
댓글 쓰기