Download:
$ sudo apt update # for 18.04. (No apache2) $ sudo apt-get install apache2 $ sudo apt-get install subversion $ sudo apt-get install emacs $ sudo apt-get install openssh-server $ sudo apt-get install tcsh $ sudo apt-get install webalizer
# download pub*.tgz and expand as public_html_co.old $ ln -s pub_bak/.init $ ln -s pub_bak/.init/.ssh $ ln -s pub_bak/cgi-bin/script $ ln -s script/svn.sh # check out the latest repository. see. v3/. v1 is old! $ ./script/svn-co.sh # ssh setting # sign_and_send_pubkey: signing failed: agent refused operation $ cd .ssh $ chmod 600 id_rsa.*
#1. enable userdir. $ sudo a2enmod userdir $ sudo service apache2 restart #2. enable .htaccess in userdir $ ln -s public_html_co public_html $ sudo emacs /etc/apache2/mods-enabled/userdir.conf # enable CGI $ sudo a2enmod cgid $ sudo service apache2 restart
# enable incremental analysis, and not only 1 day or two. # incremental yes $ sudo emacs /etc/webalizer/webalizer.conf # enable hostnameLookups # comment out: HostnameLookups On $ sudo emacs /etc/apach2/apache2.conf # cron setting for run /usr/bin/webalizer everyday at 11:35 $ sudo apt-get install cron $ sudo emacs /etc/crontab # add 35 11 * * * root /usr/bin/webalizer $ sudo service cron restart