LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   [solved] error 503 gallery (http://www.litespeedtech.com/support/forum/showthread.php?t=5545)

DoM 12-12-2011 02:18 AM

[solved] error 503 gallery
 
Hello,
each time someone try to install gallery (menalto) he obtains error 503:

2011-12-11 22:23:01.040 [INFO] [x.x.x.x:60796-1#APVH_xxx.xxx] connection to [/tmp/lshttpd/APVH_xxx.xxx_Suphp.sock] on request #0, confirmed, 1, associated process: 885136, running: 0, error: Connection reset by peer!
2011-12-11 22:23:01.040 [NOTICE] [x.x.x.x:60796-1#APVH_xxx.xxx] Max retries has been reached, 503!
2011-12-11 22:23:01.040 [INFO] Remove pid: 885136, exitcode: 129
2011-12-11 22:23:01.040 [NOTICE] [x.x.x.x:60796-1#APVH_xxx.xxx] oops! 503 Service Unavailable
2011-12-11 22:23:01.040 [NOTICE] [x.x.x.x:60796-1#APVH_xxx.xxx] Content len: 0, Request line: 'GET /galleriafotografica2/ HTTP/1.1'
2011-12-11 22:23:01.040 [INFO] [x.x.x.x:60796-1#APVH_xxx.xxx] File not found [/home/xxxxxxxx/public_html/503.shtml]


Waiting for your reply

Regards

webizen 12-12-2011 12:05 PM

try from command line and see if any error messages
Quote:

INSTALLATION VIA THE WEB:
- Point your web browser at gallery3/installer/ and follow the
instructions.


INSTALLATION FROM THE COMMAND LINE:
- php installer/index.php [-h host] [-u user] [-p pass] [-d dbname]


DoM 12-12-2011 06:01 PM

No error if we switch to apache and also if we execute it from command line.


Waiting for your reply

Regards

mistwang 12-12-2011 08:37 PM

In our lab, it turns out to be ZendGuardLoader.so, try comment it out in php.ini see if it helps.

We tested PHP 5.3.8 + ZendGuard 5.5.0

mistwang 12-13-2011 12:26 PM

filed a bug report at
http://forums.zend.com/viewtopic.php?f=57&t=41933

craigles 03-08-2012 05:29 PM

Howdy,

Did anything ever come of this?
Loading ZendGuardLoader.so self destructs the users account, you remove the line and it's fine.

Cheers,
Craig

kpkammer 02-09-2013 10:06 PM

Solution!
 
To fix this simply edit /system/core/Kohana.php around line 704:
PHP Code:

if ($filename Kohana::find_file($type$file))
{
    
// Load the class
    
require $filename;
}
else
{
    
// The class could not be found
    ###############
    ## BEGIN FIX ##
    ###############
    /* Avoid segmentation fault in Zend Guard (Original: http://blog.teatime.com.tw/1/post/403)
        When ZendGuardLoader is enabled, it will try to load the same class again if does not exist, it will try a random name,
        then segmentation fault.  So, we keep the name first, then, create a dummy class for it. */
    // Only check this if ZendGuardLoader exist
    
if (extension_loaded('Zend Guard Loader')) {
        static 
$last_name '';
        
        
// Reject it first
        
if ($last_name !== $class) {
            
$last_name $class;
            return 
FALSE;
        }
        
// Create dummy one if try again
        
Kohana_Log::add('debug''create dummy class: '.$class);
        eval(
"class $class { }");
    }
    
#############
    ## END FIX ##
    #############
    
return FALSE;



NiteWave 02-10-2013 01:11 AM

thanks for the update. mark as [solved]

related thread:
http://www.litespeedtech.com/support...ead.php?t=5765


All times are GMT -7. The time now is 07:15 AM.