Apache server failes to start.

Posted on 2006-05-30
Last Modified: 2010-03-04
I tried to start the apache webserver on a RedHat Linux 9.0 and the folowing error appears,

Failed to start apache :
Starting httpd: (2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.

What files do i need to create or install?
Question by:Alex_Calcan
    LVL 4

    Expert Comment

    try to set anothor path for your error log in apache  configuration files - httpd.conf
    LVL 1

    Author Comment

    This is what i have in httpd.conf

    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog logs/error_log
     is this what I have to change? What do I change it to?
    LVL 4

    Accepted Solution

    choose   the location where you want your apache log files to be stored
    like /var/log/apache.

    Directories must exists and apache must have permissions to write there.
     then set:

    ErrorLog /var/log/apache/error_log

    same for TransferLog etc.
    also check if your apache startup script has config-test options or something .. this could be helpful on situations like  this

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now