SymptomsSite cannot be published with the following error shown in Sitebuilder Wizard:
The site has been published with errors.
Cannot update modules data.
And the following error is shown when open the site with http://your-domain.com.
Warning: main(SB/Modules.php) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/your-domain.com/httpdocs/init.php on line 24
Fatal error: main() [function.require]: Failed opening required 'SB/Modules.php' (include_path='.:') in /var/www/vhosts/your-domain.com/httpdocs/init.php on line 24
CausePlesk server where the site is published to has PHP version 5.2.5 installed and php_admin_value is specified in apache configuration files for virtial hosts.
~# grep php_admin_value HTTPD_VHOSTS_D/*/conf/vhost.conf
Where HTTPD_VHOSTS_D can be found in /etc/psa/psa.conf.
There is a bug fixed in PHP version 5.2.5 that php_admin_value set in apache configuration cannot be overwritten with function ini_set:
Values set with php_admin_* in httpd.conf can be overwritten with ini_set()
ResolutionYou should downgrade/upgrade PHP on the publishing server or remove options php_admin_value from apache configuration files for all virtual hosts.
After PHP/Apache are reconfigured you should republish the site through Plesk Sitebuilder Wizard.