2010/08/19

[Apache Install]

# tar zxf httpd-2.2.16.tar.gz
# cd httpd-2.2.16
# ./configure --enable-mods-shared=most --with-mpm=prefork --enable-ssl=shared
# make
# make install
# cat /usr/local/apache2/bin/apachectl | sed "3 i\# chkconfig: 345 85 15" | sed "4 i\# description: Apache Web Server daemon" | sed "5 i\#" > /etc/init.d/httpd
# chmod 755 /etc/init.d/httpd
# chkconfig --level 2345 httpd on
# mkdir -m 750 /var/log/apache2
# chown root:adm /var/log/apache2

# vi /etc/logrotate.d/apache2
/var/log/apache2/*log {
    daily
    rotate 15
    missingok
    notifempty
    create 644 root adm
    sharedscripts
    postrotate
    /etc/init.d/httpd restart
    endscript
}

0 件のコメント:

コメントを投稿