Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: In Plesk Site preview Site Loads as "Error"  (Read 2393 times)

0 Members and 1 Guest are viewing this topic.

sumesh

  • Guest
In Plesk Site preview Site Loads as "Error"
« on: November 23, 2013, 05:05:35 pm »
Hi,

Recently I have faced an issue in Plesk in which the domain Preview is loading as "Error".

Fix : First we need to find the custom error log of the domain, If not enable the Custom error log by editing Apache configuration file,

For example: tailf /var/www/vhosts/example.com/statistics/logs/error_log

The error in the log file is:
                            malformed header from script. Bad header=<br />: cgi_wrapper
                            PHP Fatal error:  Cannot re-assign auto-global variable _FILES
                            PHP Warning:  mysql_pconnect(): Access denied for user 'admin'@'localhost' (using password: YES)

Fix : 

1) malformed header from script. Bad header=<br />: cgi_wrapper
       >>>> yum install mod_perl* -y

2) PHP Fatal error:  Cannot re-assign auto-global variable _FILES
       >>>> Disable the line   
                                            #function SaveImage($_FILES, $module, $id, $mode) {
                                            # }   
                  In Include/CommonUtils.php
      This is a common error which occur's when we use the latest version of PHP (5.4 or higher). This is related to the PHP variable declaration, which will be already defined with the PHP configuration. So only we need to disable the entry for the $ FILES in the domain's Include/CommonUtils.php.

3) PHP Warning:  mysql_pconnect(): Access denied for user 'admin'@'localhost' (using password: YES)

       This is common database login credential issue in the configuration.php file of the domain which can be easily correct it using the correct credentials


This fix this issue ,

Enjoy  :) :)