Note
You are viewing the documentation for an older release of Interworx (7.14). To see documentation for the current generally available release of Interworx, click here: 8.2.
AH00103 Error in Apache Error Log¶
Contents
How the Issue Manifests¶
Apache does not start. Errors similar to the following are found in
/var/log/error_log:AH00015: Unable to open logs (24)Too many open files: AH00103: piped_log_spawn: unable to setup child process '/usr/sbin/rotatelogs -l -f /home/user/var/domain.com/logs/transfer-%Y-%m-%d.log 86400' AH00015: Unable to open logs (24)Too many open files: AH00103: piped_log_spawn: unable to setup child process '/usr/sbin/rotatelogs -l -f /home/user/var/domain.com/logs/transfer-%Y-%m-%d.log 86400' AH00015: Unable to open logs
Cause of the Issue¶
The Apache service has reached its open file limit.
How to Resolve¶
Log in to the server at the CLI as root, either via SSH or from the terminal
At the CLI, using a text editor, create a new file named
/etc/systemd/system/httpd.service.d/limits.conf. The following uses the Vim text editor:vim /etc/systemd/system/httpd.service.d/limits.conf
Add the following setting. This example sets the limit to 20000, however, this setting should be customized based on server needs:
[Service] LimitNOFILE=20000
Save the file and exit the text editor
Reload the daemon and restart Apache
systemctl daemon-reload systemctl restart httpd