- Plesk Sitebuilder 4.5 for Linux
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.
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 ~# ~# egrep 'max\_execution\_time|max\_input\_time' /opt/php52/cgi-bin/php.ini max\_execution\_time = 3600 ; Maximum execution time of each script, in seconds max\_input\_time = 3600 ; Maximum amount of time each script may spend parsing request data ~#
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)
It is 30 seconds by default.
In general, 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.