Apache

Web server

NSS_Initialize failed when starting Apache httpd

I got the following error in /var/log/httpd/error_log when trying to start httpd on Fedora11 64 bit:

NSS_Initialize failed. Certificate database: /etc/httpd/alias.
SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED

Which led me to discover the file /etc/httpd/install.log

############################################
Generating new server certificate and key database.
############################################
/usr/sbin/gencert: line 91: /usr/bin/certutil: No such file

I found I needed to install certutil by typing

yum install nss-tools*

Then I ran

/usr/sbin/gencert /etc/httpd/alias

Subject: 

How to setup awstats-Web Analyser

AWSTATS is an Apache log file analyzer that will show details about traffic to your web sites.

Setting up awstats guide

now run the awstats.pl script:
% cd /usr/share/awstats/wwwroot/cgi-bin/
% sudo perl awstats.pl -update -config=mysite

If all goes well, you should see something along the lines of:
Found 0 dropped records
Found 0 corrupted records,
Found 150 old records,
Fount 50 new qualified records.

…at the end of the update script output.

So, to do this with multiple domains, just repeat the steps above, making sure to make the appropriate changes to each domain…

This will hopefully create a config file fore each of your domains in /etc/awstats with the name awstats.web3us.com.

Subject: 

Pages

Subscribe to RSS - Apache