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

  • Applies to:
  • Plesk Automation 11.5


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

The following output is in vhost error log (/var/www/vhosts/ at the error moment:

[Sat Mar 14 10:57:25 2015] [warn] [client] mod_fcgid: read data timeout in 45 seconds, referer:
[Sat Mar 14 10:57:25 2015] [error] [client] Premature end of script headers: wp-comments-post.php, referer:


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.


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

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

Subscriptions > > 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