Skip to main content

Sites not sending email unless php-fpm is enabled?

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! As a test, are you able to view a PHP info page, or other PHP content on the domain when php-fpm is disabled?
    0
  • ttremain
    info page, and other PHP content, yes... WordPress appears to be working but then cannot send the email, and sticks it in a PHP based queue instead.
    0
  • cPRex Jurassic Moderator
    Do you happen to have a file at /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml on the server?
    0
  • ttremain
    Do you happen to have a file at /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml on the server?

    --- php_admin_flag_allow_url_fopen: 'off' php_admin_flag_log_errors: present_ifdefault: 0 php_admin_value_disable_functions: exec,passthru,shell_exec,system php_admin_value_doc_root: present_ifdefault: 0 php_admin_value_error_log: present_ifdefault: 0 php_admin_value_short_open_tag: present_ifdefault: 0 php_flag_log_errors: name: php_flag[log_errors] present_ifdefault: 1 value: 'on' php_value_doc_root: name: php_value[doc_root] present_ifdefault: 1 value: "\"\"" php_value_error_log: name: php_value[error_log] present_ifdefault: 1 value: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log" php_value_error_reporting: E_ALL & ~E_NOTICE php_value_short_open_tag: name: php_value[short_open_tag] present_ifdefault: 1 value: 'off' pm_max_children: 5 pm_max_requests: 20 pm_process_idle_timeout: 10
    0
  • cPRex Jurassic Moderator
    Just for fun, can you rename that file so it can't be read by the system, restart the service, and see if that gets the mail working? mv /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml.bak /scripts/restartsrv_apache_php_fpm
    0

Please sign in to leave a comment.