Article ID: 5373, created on Jun 16, 2008, last review on May 8, 2014

  • Applies to:
  • Plesk Sitebuilder for Linux/Unix


The following error is shown on the Sitebuilder logs file:

[Tue Oct 27 11:48:00 2009] [warn] [client] Timeout waiting for output from CGI script /opt/php52/cgi-bin/php5, referer:
[Tue Oct 27 11:48:00 2009] [error] [client] Premature end of script headers: php5, referer:

What can I do to solve the problem?


The problem is caused by file uploading via FTP taking a long time. Publishing is stopped due to timeout.


To resolve the problem, it is recommended that you 1) increase the maximum time of script execution via the parameter max_execution_time in Sitebuilder PHP configuration and 2) increase the Timeout value in Apache configuration.

1) Log in to the Parallels Plesk Sitebuilder server as root and find the location of the CGI PHP configuration file in Parallels Plesk Sitebuilder:

~# sb_config --help | grep phpcgi_path
 --phpcgi_path        PHP CGI executable [/opt/php52/cgi-bin/php5]
~# find /opt/php52 -name php.ini

Open the /opt/php52/etc/php.ini file and find max_execution_time. Increase the value (it is 30 seconds by default) and save the file.

max_execution_time = 240     ; Maximum execution time of each script, in seconds

2) On the Parallels Plesk Sitebuilder server, open the main configuration file of Apache service (/etc/httpd/conf/httpd.conf). Find the Timeout option and increase the value. For example:

# Timeout: The number of seconds before receives and sends time out.
Timeout 240

Save the file and restart Apache service. For example:

~# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

d055be4fdc562a8ecb8e6d0bf419f946 fad6dc0c8e983c17ae70a51ac7952cd0 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF