[Last Call] Learn how to a build a cloud-first strategyRegister Now


Apache server failes to start.

Posted on 2006-05-30
Medium Priority
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
  • 2

Expert Comment

ID: 16796402
try to set anothor path for your error log in apache  configuration files - httpd.conf

Author Comment

ID: 16807237
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?

Accepted Solution

Tol_cv earned 2000 total points
ID: 16807465
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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month17 days, 23 hours left to enroll

831 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