Article ID: 125157, created on Apr 8, 2015, last review on Apr 8, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

The error 500 is thrown when the comment is attempted to be sent.

The following output is in vhost error log (/var/www/vhosts/example.com/logs/error_log) at the error moment:

[Sat Mar 14 10:57:25 2015] [warn] [client 91.204.25.4] mod_fcgid: read data timeout in 45 seconds, referer: http://www.example.com/sanat-bayan-kuafor-salonu.html
[Sat Mar 14 10:57:25 2015] [error] [client 91.204.25.4] Premature end of script headers: wp-comments-post.php, referer: http://www.example.com/sanat-bayan-kuafor-salonu.html

Cause

Comments are sent by email by WP Comment component via php function. But since the mail handler is not defined in php.ini file, the comment delivering fails.

Resolution

  1. Find and backup php.ini file used by particular domain:

    cp /var/www/vhosts/system/example.com/etc/php.ini{,.back}
    
  2. Open the PHP Settings of the affected domain in CCP.

Subscriptions > Example.com > Managed By tab > Login as Customer > Websites tab > PHP Settings (under required domain)

  1. Add the following parameter to Additional configuration directives section and press 'OK'.

    sendmail_path = /bin/mail
    

NOTE: The /bin/mail utility is used by default, but on some servers the mail sender may be defferent, depending on the configuration.

Search Words

remature end of script headers: wp-comments-post.php

comment error 500

read data timeout in 45 seconds

wordpress problem

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF