Product:
Search Type:

My site is published with an error and not displayed in domain URL.

Article ID: 5426 
Last Review: Jul,23 2008
APPLIES TO:
  • Sitebuilder 4.x for Linux/Unix

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.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:

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

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.
*Please type the code you can see.
* - required fields