Skip to main content

error "Too many open files" after apache update

Comments

5 comments

  • TheFaSt
    Hello I did fix it by running the following in SSH: [CODE=bash]mkdir /usr/lib/systemd/system/httpd.service.d printf "[Service]\nLimitNOFILE=40000" > /usr/lib/systemd/system/httpd.service.d/limits.conf systemctl daemon-reload /scripts/restartsrv_httpd --hard
    As instructed on How to increase the number of open files allowed for Apache on CentOS 7. Kind regards Werner AlfaNet bv
    0
  • Volodymyr Petrov
    My another server with 200+ account also failed after update. I have investigated Cpanel docs and found solution: -- mkdir /usr/lib/systemd/system/httpd.service.d echo -e "[Service]\nLimitNOFILE=101000" > /usr/lib/systemd/system/httpd.service.d/limits.conf systemctl daemon-reload systemctl stop httpd systemctl start httpd -- Without this Apache fails when trying to open 1025 files. But I would like to hear from CPanel staff why it happened?
    0
  • vacancy
    Please try; yum clean all yum -y upgrade
    0
  • andrew.n
    You can also look into these 2:
    0
  • cPRex Jurassic Moderator
    @vacancy - thanks for posting that. We did revert the change overnight to fix that issue. The specific case that was reverted was EA-9784.
    0

Please sign in to leave a comment.