Apache unable to open logs error

apache unable to open logs error

Resolution · Connect to the Plesk server via SSH. · Create the missing Apache directory and set required permissions: # mkdir /etc/httpd/logs # mkdir /var/log/. sprers.eu › Aleph › Knowledge Articles. On a Linux server, you can access Apache error logs from var/log/apache2/sprers.eu You can then log out the errors from the error log file by writing the.

Apache unable to open logs error - advise

Perform the steps below to resolve this issue.

To refresh the Webtrends Apache HTTP configuration:
1. Ensure the Webtrends - MySQL (or MS SQL system database) and the Webtrends - User interface service are running. If the User interface has not started, you will be unable to proceed until they do.

2. Open the following file in a text editor:


3. Find the line that reads similar to the following:


4. On the line below, paste the following:


5. Find the a line similar to "ServerName pdxfasteenn" (pdxfasteenn02 should be the name of the Webtrends server).

6. Replace it with the following:

ServerName pdxfasteenn

Ensure both the Listen line and the ServerName line do not contain a '#'.

7. Save the sprers.eu file.

8. Open a command prompt and navigate to the following folder:


9. Type the following, and then press enter:


The command window may appear as if it has hung or locked up but this is the expected behavior.

Open the Windows Services snap-in and verify that Apache is started.

If necessary, start the Tomcat service.

Do not stop and then start Webtrends - User interface service. If you do, it will overwrite the changes made to the sprers.eu file with faulty data.

Log into Webtrends and click Administration > System Management > Hosts > UI Server.

If the box for "Enable HTTP" is not checked, check it. If it is checked, uncheck and then recheck it, also check or uncheck the box for Enable Tomcat logging (making this change will force a write to the configuration file; you can go back and undo the Tomcat logging change later).

In the "Apache Port" box, type , and then click Save.

If you are prompted to restart the Webtrends services, click Restart Services.

The Apache service should now start normally. If you made a change to the Tomcat logging settings in step 13, go back and undo that change now.

SAS Foundation runs on Tomcat servers. When I try to restart the Tomcat Apache service on the machine I get the following message

enter image description here

I opened Windows Event Viewer to see the log. It relates to Apache with the error message:

The Apache service named reported the following error: Unable to
open logs .

I get no other information here. I assume Tomcat is running on Port .
When I do a on my cmd, I see taken by TCP. Could this be the conflict?

Would appreciate any help!

I realized actually get 4 logs with every restart attempt. Here are the other three:

The Apache service named reported the following error: (OS )An
attempt was made to access a socket in a way forbidden by its access
permissions. : make_sock: could not bind to address [::] .

The Apache service named reported the following error: (OS )An
attempt was made to access a socket in a way forbidden by its access
permissions. : make_sock: could not bind to address .

The Apache service named reported the following error: no listening
sockets available, shutting down .

Apache startup fails: "Permission denied: httpd: could not open error log file"

  1. Last updated
  2. Save as PDF
  • Article Type: General
  • Product: Aleph
  • Product Version: 20

Problem Symptoms:
After rebooting the server, attempt to start apache on port with util w/3/6 fails with "Permission denied: httpd: could not open error log file". (See Additional Information below for complete error message in the log.)

Incorrect permissions on /exlibris/aleph/u20_1/alephe/apache/logs/error_log and access_log files:

[[email protected] logs]$ ls -lrt
-rw-r--r-- 1 root root Apr 3 access_log
-rw-r--r-- 1 root root Apr 3 error_log

1. su or sudo to root.
2. Change the permissions:
[[email protected] logs]# chmod error_log
[[email protected] logs]# chmod access_log

3. ls -lrt should then show:
[[email protected] logs]# ls -lrt
-rw-rw-rw- 1 root root Apr 3 access_log
-rw-rw-rw- 1 root root Apr 3 error_log

4. Exit root and start apache as "aleph" with util w/3/6:
/exlibris/aleph/u20_1/alephe/apache/bin/apachectl restart: httpd not running, trying to start
/exlibris/aleph/u20_1/alephe/apache/bin/apachectl restart: httpd started

Additional Information

Complete startup error message:

/exlibris/aleph/u20_1/alephe/apache/bin/apachectl restart: httpd not running, trying to start
(13)Permission denied: httpd: could not open error log file /exlibris/aleph/u20_1/alephe/apache/logs/error_log.
Unable to open logs
/exlibris/aleph/u20_1/alephe/apache/bin/apachectl restart: httpd could not be started

Note: The above was with Apache on port If starting on port < , util w/3/6 can not be used. One needs to log on to lib-web1 as root -- or su - root -- and then do apachectl.

  • Article last edited: 4/16/

Apache cannot be started: Unable to open logs

It is difficult to find useful things from the information given,

Let you not know what went wrong. Fortunately, usually you will not be the first person to encounter this problem. Fortunately, there is Du Niang.


As soon as I booted it up today, Apache could not be started. As a result, I saw in the Event Viewer: Unable to open logs

I do not know what that means.


After some searching, I learned that this error will only be reported if Apache’s default port 80 is occupied.


The solution is simple:

Use netstat -ano to view the PID of the Listening 80 application in Local Address, find the corresponding process in the task manager, and close the process.


The process I found here is actually occupied by a process called skype, and I don’t know why it listens to port It looks a bit weird.

grep .png. Now, you&#;ll be monitoring only logs with .png file types. Using commands and a console to analyze data can be challenging, especially in larger environments with many logs and a high volume of log data, but there are tools capable of helping you view data in a UI.

Using a Dashboard to Monitor Apache Logs

Although using command-line tools to monitor log messages isn&#;t difficult, it isn’t easy to read these log messages on a console—there’s a lot of noise and not much signal. It&#;s much better and easier if you can view these log messages in a way that makes it easy to spot the problem from the server. Using software can give you the ability to view these log messages in a more readable way and alert you so you can act on your business needs.


Quite a few platforms offer such services. SolarWinds® Loggly® helps you monitor Apache logs and can also alert you so you can resolve errors on the website. This means you can act quickly, before the business is affected. Loggly provides a variety of ways to quickly visualize data, and the dashboards let you organize data in the most useful ways for detecting and understanding the problems arising in software and infrastructure. You can sign up here and use Loggly to monitor Apache logs.


See unified log analysis and monitoring for yourself.


You simply can&#;t avoid logs; they provide data you can use to offer the best user experience. One error can cause a business to lose sums of money. Acting quickly to solve the issue is key, and the only way you can know about these errors before your users do is by logging the error messages—or any other logs you desire to work with.

This post was written by Mathews Musukuma. Mathews is a software engineer with experience in web and application development. Some of his skills include Python/Django, JavaScript, and Ionic Framework. Over time, Mathews has also developed an interest in technical content writing.