apachel log files are gone

lvps

New member
Joined
Jan 23, 2013
Messages
4
Today I have noticed that on one of my DirectAdmin virtual servers the apache log files in "/var/log/httpd/domains" are gone. After some investigation I noticed that in the apcache configuration file for each user, the lines that should wright the logs are commented with #. Here is one example:

<VirtualHost xxx.xxx.xxx.xxx:80 >


ServerName www.domain.com
ServerAlias www.domain.com domain.com
ServerAdmin [email protected]
DocumentRoot /home/domain/domains/domain.mk/public_html
ScriptAlias /cgi-bin/ /home/domain/domains/domain.com/public_html/cgi-bin/

UseCanonicalName OFF

SuexecUserGroup domain domain
#CustomLog /var/log/httpd/domains/domain.com.bytes bytes
#CustomLog /var/log/httpd/domains/domain.com.log combined
#ErrorLog /var/log/httpd/domains/domain.com.error.log

after that I wright a small script which enable them again so it was ok. After that tried with custombuild 1.1 to rebuild apache (just in case) and after the rebuild was done they were disabled again.

p.s. last thing that I have done before notice this was that I upgraded apache, mysql and php using custombuild.

Any help will be appreciated.

Thanks,
 
You must have a custom template in /usr/local/directadmin/data/templates/custom
 
The files are there. But the "log" lines are there also commented.

Here is an example.

|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/usr/local/lib/php/|
<VirtualHost |IP|:80 |MULTI_IP|>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
ServerName www.|DOMAIN|
ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|
|CGI|

|USECANONICALNAME|

User |USER|
Group |GROUP|
#CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
#CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
#ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
-----------------------------------------------

and these files I have there:

virtual_host2.conf
virtual_host2_secure_sub.conf
virtual_host.conf
virtual_host_secure_sub.conf
virtual_host2_secure.conf
virtual_host2_sub.conf
virtual_host_secure.conf
virtual_host_sub.conf
-------------------------------------------------
Do I need to uncomment the lines in these files? After that what need to be done? Recompile apache again or something else?

thanks,
 
Back
Top