Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

While trying to publish a site, after some minutes it stops and shows a blank page or "Internal Server Error"

Article ID: 5373 
Last Review: Nov,6 2009
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Parallels Plesk Sitebuilder for Linux/Unix

Symptoms

The following error is shown on Sitebuilder logs file:

/var/log/httpd/sitebuilder_error.log

--->8---

[Tue Oct 27 11:48:00 2009] [warn] [client xxx.xxx.xxx.xxx] Timeout waiting for output from CGI script /opt/php52/cgi-bin/php5, referer: http://sitebuilder.hostname.com/Admin/Site/Form
[Tue Oct 27 11:48:00 2009] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: php5, referer: http://sitebuilder.hostname.com/Admin/Site/Form
---8<---

What can I do to solve the problem?

Cause

The problem is caused by long time of uploading files via FTP. Publishing is stopped due to timeout.

Resolution

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

1) Login to Parallels Plesk Sitebuilder server as root and find location of 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
/opt/php52/etc/php.ini
~#


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

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


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

--->8---
# Timeout: The number of seconds before receives and sends time out.
Timeout 240
---8<---


Save the file and restart service Apache. For example:

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



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products