Hi everyone, I can't seem to get custom logs working at all. in /etc/apache2/apache2.conf I have these two lines (for example): LogFormat "%h %l" custom123 CustomLog /var/www/testlog.log custom123 The funny thing is, is that nothing gets written to this file, while everything is being correctly logged in the standard /var/log/apache2/access and error. b.t.w, apache restart without any errors, and if the file testlog.log does not exist, it is created. Also I've noticed that if I run "apache2", I get: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Does anyone know what might be wrong?
What does % /usr/local/sbin/apachectl configtest say? Have you checked to see what is binding to port 80?
Thanks for the reply the command "apache2ctl configtest" gives: Syntax OK apache2 is bound to port 80 netstat -apn --tcp tcp6 0 0 :::80 :::* LISTEN 14670/apache2 apart from this, apache works perfectly.