Webサーバ apache のバージョン2です。
tar jxf httpd-2.0.53.tar.bz2 cd httpd-2.0.53
./configure --enable-so --enable-dav --enable-dav-fs --enable-suexec \ --enable-ssl --with-suexec-docroot=/home/www --with-suexec-caller=apache
make su make install
real | user | sys | |
configure | 7m26.674s | 3m41.050s | 3m37.170s |
make | 26m50.580s | 22m11.460s | 4m33.980s |
make install | 0m44.869s | 0m22.400s | 0m14.130s |
cd /usr/local/apache2/bin ls -l -rwxr-xr-x 1 root root 134970 Feb 12 00:25 ab -rwxr-xr-x 1 root root 3126 Feb 11 23:58 apachectl -rwxr-xr-x 1 root root 6656 Feb 12 00:25 apr-config -rwxr-xr-x 1 root root 5764 Feb 12 00:25 apu-config -rwxr-xr-x 1 root root 22795 Feb 11 23:58 apxs -rwxr-xr-x 1 root root 48037 Feb 12 00:25 checkgid -rwxr-xr-x 1 root root 8735 Feb 11 23:58 dbmmanage -rw-r--r-- 1 root root 796 Sep 8 02:09 envvars -rw-r--r-- 1 root root 831 Feb 11 23:58 envvars-std -rwxr-xr-x 1 root root 68513 Feb 12 00:25 htdbm -rwxr-xr-x 1 root root 59914 Feb 12 00:25 htdigest -rwxr-xr-x 1 root root 71703 Feb 12 00:25 htpasswd -rwxr-xr-x 1 root root 3220474 Feb 12 00:25 httpd -rwxr-xr-x 1 root root 51462 Feb 12 00:25 logresolve -rwxr-xr-x 1 root root 57420 Feb 12 00:25 rotatelogs -rwsr-xr-x 1 root root 63189 Feb 12 00:25 suexec
cd /usr/local/apache2/bin strip -p * ls -lt -rwxr-xr-x 1 root root 1516708 Feb 12 00:25 httpd -rwsr-xr-x 1 root root 10096 Feb 12 00:25 suexec -rwxr-xr-x 1 root root 12204 Feb 12 00:25 htdbm -rwxr-xr-x 1 root root 4056 Feb 12 00:25 checkgid -rwxr-xr-x 1 root root 35724 Feb 12 00:25 ab -rwxr-xr-x 1 root root 7644 Feb 12 00:25 logresolve -rwxr-xr-x 1 root root 7300 Feb 12 00:25 rotatelogs -rwxr-xr-x 1 root root 7868 Feb 12 00:25 htdigest -rwxr-xr-x 1 root root 10732 Feb 12 00:25 htpasswd -rwxr-xr-x 1 root root 5764 Feb 12 00:25 apu-config -rwxr-xr-x 1 root root 6656 Feb 12 00:25 apr-config -rwxr-xr-x 1 root root 3126 Feb 11 23:58 apachectl -rwxr-xr-x 1 root root 8735 Feb 11 23:58 dbmmanage -rw-r--r-- 1 root root 831 Feb 11 23:58 envvars-std -rwxr-xr-x 1 root root 22795 Feb 11 23:58 apxs -rw-r--r-- 1 root root 796 Sep 8 02:09 envvars
root@kuro2:/usr/local/apache2/lib# ls -l -rw-r--r-- 1 root root 7864 Feb 12 00:25 apr.exp -rw-r--r-- 1 root root 3643 Feb 12 00:25 aprutil.exp -rw-r--r-- 1 root root 3004910 Feb 12 00:25 libapr-0.a -rw-r--r-- 1 root root 845 Feb 12 00:25 libapr-0.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so -> libapr-0.so.0.9.6 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so.0 -> libapr-0.so.0.9.6 -rwxr-xr-x 1 root root 603387 Feb 12 00:25 libapr-0.so.0.9.6 -rw-r--r-- 1 root root 1570678 Feb 12 00:25 libaprutil-0.a -rw-r--r-- 1 root root 835 Feb 12 00:25 libaprutil-0.la lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so -> libaprutil-0.so.0.9.6 lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so.0 -> libaprutil-0.so.0.9.6 -rwxr-xr-x 1 root root 378162 Feb 12 00:25 libaprutil-0.so.0.9.6 -rw-r--r-- 1 root root 367624 Feb 12 00:25 libexpat.a -rwxr-xr-x 1 root root 807 Feb 12 00:25 libexpat.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so -> libexpat.so.0.1.0 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so.0 -> libexpat.so.0.1.0 -rwxr-xr-x 1 root root 306878 Feb 12 00:25 libexpat.so.0.1.0 root@kuro2:/usr/local/apache2/lib# strip -p *.so.* root@kuro2:/usr/local/apache2/lib# ls -lt -rw-r--r-- 1 root root 3643 Feb 12 00:25 aprutil.exp -rw-r--r-- 1 root root 1570678 Feb 12 00:25 libaprutil-0.a -rw-r--r-- 1 root root 835 Feb 12 00:25 libaprutil-0.la lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so -> libaprutil-0.so.0.9.6 lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so.0 -> libaprutil-0.so.0.9.6 -rwxr-xr-x 1 root root 97288 Feb 12 00:25 libaprutil-0.so.0.9.6 -rw-r--r-- 1 root root 367624 Feb 12 00:25 libexpat.a -rwxr-xr-x 1 root root 807 Feb 12 00:25 libexpat.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so -> libexpat.so.0.1.0 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so.0 -> libexpat.so.0.1.0 -rwxr-xr-x 1 root root 133936 Feb 12 00:25 libexpat.so.0.1.0 -rw-r--r-- 1 root root 7864 Feb 12 00:25 apr.exp -rw-r--r-- 1 root root 3004910 Feb 12 00:25 libapr-0.a -rw-r--r-- 1 root root 845 Feb 12 00:25 libapr-0.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so -> libapr-0.so.0.9.6 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so.0 -> libapr-0.so.0.9.6 -rwxr-xr-x 1 root root 148664 Feb 12 00:25 libapr-0.so.0.9.6 root@kuro2:/usr/local/apache2/lib# strip -pg * root@kuro2:/usr/local/apache2/lib# ls -lt -rw-r--r-- 1 root root 3643 Feb 12 00:25 aprutil.exp -rw-r--r-- 1 root root 140256 Feb 12 00:25 libaprutil-0.a -rw-r--r-- 1 root root 835 Feb 12 00:25 libaprutil-0.la lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so -> libaprutil-0.so.0.9.6 lrwxrwxrwx 1 root root 21 Feb 12 00:25 libaprutil-0.so.0 -> libaprutil-0.so.0.9.6 -rwxr-xr-x 1 root root 97288 Feb 12 00:25 libaprutil-0.so.0.9.6 -rw-r--r-- 1 root root 190196 Feb 12 00:25 libexpat.a -rwxr-xr-x 1 root root 807 Feb 12 00:25 libexpat.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so -> libexpat.so.0.1.0 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libexpat.so.0 -> libexpat.so.0.1.0 -rwxr-xr-x 1 root root 133936 Feb 12 00:25 libexpat.so.0.1.0 -rw-r--r-- 1 root root 7864 Feb 12 00:25 apr.exp -rw-r--r-- 1 root root 212902 Feb 12 00:25 libapr-0.a -rw-r--r-- 1 root root 845 Feb 12 00:25 libapr-0.la lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so -> libapr-0.so.0.9.6 lrwxrwxrwx 1 root root 17 Feb 12 00:25 libapr-0.so.0 -> libapr-0.so.0.9.6 -rwxr-xr-x 1 root root 148664 Feb 12 00:25 libapr-0.so.0.9.6
#! /bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/usr/bin:/bin CMDPATH=/usr/local/apache2/bin/ CMD=apachectl test -f $CMDPATH$CMD || exit 0 start() { echo -n "Starting httpd ... " $CMDPATH$CMD start echo "done." } stop() { echo -n "Stopping httpd ... " $CMDPATH$CMD stop echo "done." } case "$1" in start) start ;; stop) stop ;; restart|force-reload) stop sleep 2 start ;; *) echo "Usage: /etc/rc.d/init.d/rc.httpd2 {start|stop|restart}" exit 1 ;; esac exit 0
cd /etc/rc.d/rc2.d/ ln -s ../init.d/httpd2 S20apache2 cd /etc/rc.d/rc0.d/ ln -s ../init.d/httpd2 K20apache2 cd /etc/rc.d/rc6.d/ ln -s ../init.d/httpd2 K20apache2