Symptoms
The site generates the following error in Sitebuilder Wizard during publication:The site has been published with errors.
Cannot update modules data.
and displays the error below in domain URL 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
Cause
Plesk 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.confWhere 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:
http://www.php.net/ChangeLog-5.php#5.2.5
Values set with php_admin_* in httpd.conf can be overwritten with ini_set()
Resolution
You 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.
Additional information
The issue may happen if the site is published to server without Plesk Control Panel, but specific PHP/Apache configuration: it is PHP 5.2.5 and php_admin_value in apache configuration files.Keywords: site; publishing; php5.2.5