[solved] error 503 gallery

DoM

Well-Known Member
#1
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:

webizen

Well-Known Member
#2
try from command line and see if any error messages
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]
 

mistwang

LiteSpeed Staff
#4
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
 

craigles

Active Member
#6
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
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;
}
 
Top