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.