Bug 39951 - apache2 doesen't start if path to errorlog is wrong
Summary: apache2 doesen't start if path to errorlog is wrong
Status: RESOLVED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.0.54
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: ErrorMessage
Depends on:
Blocks:
 
Reported: 2006-07-03 13:04 UTC by Ruben Barkow
Modified: 2006-07-03 14:03 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Barkow 2006-07-03 13:04:43 UTC
i installed apache2 and when i transfered the httpd.conf to the new structure
with sites-available ..., i got a severe problem:
apache2 doesen't start without telling why. i found out after a long search,
that the path to the ErrorLog for some old virtualhosts didnt exist on the mashine.

this was the definition i tried to add at first:
<VirtualHost *>
    ServerAdmin webmaster@spacetrace.org
    DocumentRoot /web/spacetrace/pics
    ServerName spacetrace.hirnbrand.de
    ErrorLog /var/log/httpd/space_errors.log
    CustomLog /var/log/httpd/space_access.log common
</VirtualHost>

and the right configuration later was:
<VirtualHost *>
    ServerAdmin webmaster@spacetrace.org
    DocumentRoot /web/spacetrace/pics
    ServerName spacetrace.hirnbrand.de
    ErrorLog /var/log/apache2/space_errors.log
    CustomLog /var/log/apache2/space_access.log common
</VirtualHost>

another solution would have been to enter a symlink 
ln -s /var/log/apache2 /var/log/httpd

but i think there should be a warning, when you try to start apache and it
cannot start like "directory doesent exist: /var/log/httpd" or so
Comment 1 Ruediger Pluem 2006-07-03 21:03:22 UTC
Sorry but I cannot reproduce this error. If httpd fails to open the error log of
the main server it writes an error message to stderr. If it can open the main
server error log and fails to open an error log of a virtual host it writes this
to the error log of the main server.