LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] 503 Error when using Gallery (Menalto)

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2012, 07:47 AM
super_kev super_kev is offline
New Member
 
Join Date: Mar 2012
Posts: 2
Default [solved] 503 Error when using Gallery (Menalto)

Hi all,
My host (Eleven2) just completed the switch from Apache to Litespeed on their shared servers, and for the past few weeks I've been trying to figure out why my Gallery 3 site is not working (giving me the 503 Service Unavailable: The server is temporarily busy, try again later! error) and I just connected the dots that it must be Litespeed.

I've posted the error log that is available to me. I believe it has something to do with .htaccess file. The only thing in .htaccess file at root of server (folder up from where gallery is stored) is "Options -Indexes". I commented out the username and IPs for privacy.

2012-03-08 23:29:04.330 [INFO] [***.***.**.***:50133-0#APVH_********.com] File not found [/home/********/public_html/503.shtml]
2012-03-08 23:29:03.164 [INFO] [HTAccess] Updating configuration from [/home/********/public_html/.htaccess]

Any ideas of where I can start? Eleven2 support was great but they said it's a problem with my software, and I know Gallery 3 is not built nor tested on Litespeed servers. I have a thread on the Menalto forums but have not heard anything yet, I would like to get the site back up as Litespeed is supposed to be interchangeable with Apache.

Last edited by NiteWave; 02-10-2013 at 01:09 AM..
Reply With Quote
  #2  
Old 03-13-2012, 09:35 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
http://www.litespeedtech.com/support...ead.php?t=5545

please contact Eleven2 about this.
Reply With Quote
  #3  
Old 03-19-2012, 10:49 PM
super_kev super_kev is offline
New Member
 
Join Date: Mar 2012
Posts: 2
Eleven2 said they will not disable this for me since I'm on a shared server. Was the issue with ZendGuardLoader ever cleared up on that other thread? It seems as though you submitted a bug report but there is no follow-up.
Reply With Quote
  #4  
Old 03-20-2012, 12:52 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
check with your host, if you can choose what lsphp you'd run:
http://www.litespeedtech.com/support...rol_panel_lsws
Reply With Quote
  #5  
Old 02-09-2013, 10:05 PM
kpkammer kpkammer is offline
New Member
 
Join Date: Feb 2013
Posts: 2
Arrow 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;

Reply With Quote
  #6  
Old 02-10-2013, 01:08 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
Thanks for the update!
to summary:
1. root cause is ZendGuardLoader
2. best not load ZendGuardLoader.so if not really need it
3.if have to load ZendGuardLoader, then above is a workaround to modify the source code of Gallery 3!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:25 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.