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 184.108.40.206] 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 220.127.116.11] Premature end of script headers: wp-comments-post.php, referer: http://www.example.com/sanat-bayan-kuafor-salonu.html
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.
Find and backup
php.inifile used by particular domain:
- 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)
Add the following parameter to
Additional configuration directivessection and press 'OK'.
sendmail_path = /bin/mail
/bin/mail utility is used by default, but on some servers the mail sender may be defferent, depending on the configuration.