Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

I get timeout error when try publishing a site with huge number of images in Image Gallery or eShop

Article ID: 5788 
Last Review: Apr,3 2009
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Sitebuilder 4.x for Linux/Unix

Symptoms

I created new site with Image Gallery or eShop and uploaded lots of images to the modules.
Site publishing fails with timeout error. The following message may be shown:

Error:  The site has not been published.
Cannot copy the site files to the specified site location. It is possible that you do not have enough permissions for writing, or there is not enough free disk space on the server.


Resolution

Try increasing of PHP option max_execution_time in Sitebuilder PHP configuration file php.ini

~# sb_config --help | grep php
 --phpcli_path        PHP CLI executable [/opt/php52/bin/php5]
 --phpcgi_path        PHP CGI executable [/opt/php52/cgi-bin/php5]
~#
~#find /opt/php52 -name php.ini
/opt/php52/cgi-bin/php.ini
/opt/php52/etc/php.ini
~#
~# grep max_execution_time /opt/php52/cgi-bin/php.ini
max_execution_time = 3600     ; Maximum execution time of each script, in seconds
~#


Also it may be useful to increase option ftp_connect_timeout in Sitebuilder configuration file.
Add the option in section [general] of /usr/local/sitebuilder/config (/opt/sitebuilder/config for Debian and Ubuntu)

[general]
ftp_connect_timeout=60


It is 30 seconds by default.

Actually it is not recommended to upload all images to the site at ones and then publish it. You may upload all images one by one, this will allow to decrease total size of uploaded images.

Remember that when you upload images to Sitebuilder modules like Image Gallery or eShop the images are uploaded to the publishing server immediately. If you need to publish a site with huge number of images you should first create site and publish it. And then open site in Sitebuilder wizard and upload images one by one.When you publish the site only configuration is uploaded.



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