[solved] error 503 gallery

Discussion in 'General' started by DoM, Dec 12, 2011.

  1. DoM

    DoM New Member

    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
    Last edited by a moderator: Feb 10, 2013
  2. webizen

    webizen New Member

    try from command line and see if any error messages
  3. DoM

    DoM New Member

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


    Waiting for your reply

    Regards
  4. mistwang

    mistwang LiteSpeed Staff

    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
  5. mistwang

    mistwang LiteSpeed Staff

  6. craigles

    craigles New Member

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

    kpkammer New Member

    Solution!

    To fix this simply edit /system/core/Kohana.php around line 704:
    PHP:
    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;
    }
  8. NiteWave

    NiteWave Administrator

Share This Page