Skip to main content

Failed to prepare the stderr pipe error

Comments

3 comments

  • cPanelMichael
    Hello, Could you review this post and let us know if it's the issue you are facing? Thank you.
    0
  • Nirjonadda
    Hello, Could you review this post and let us know if it's the issue you are facing? Thank you.

    Does not think because max_children already set to 150. Also error log is "Too many open files (24)"
    0
  • cPanelMichael
    ERROR: failed to prepare the stderr pipe: Too many open files (24)

    Hello, It's possible this relates to internal case EA-6628, where the open files limit for Apache PHP-FPM is too low on CentOS 7 servers with a high number of domains. You can use following commands as a workaround to remove the open files limit for Apache PHP-FPM:
    for drop in /etc/systemd/system/ea-php{54,55,56,70,71,72}-php-fpm.service.d; do mkdir -p $drop; printf '[Service]\nLimitNOFILE=infinity\n' > $drop/open_file_limit.conf; done systemctl daemon-reload /scripts/restartsrv_apache_php_fpm
    Let us know if this helps. Thank you.
    0

Please sign in to leave a comment.