PDA

Bekijk Volledige Versie : how to crash apache/php in cpanel



Ed Wiget
23/02/06, 02:53
--nextPart1174700.SXLWAA6fCo
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I am really not sure if this is a cpanel, php, or apache problem but will l=
et=20
others find out. This is the entire reason I am supplying this=20
information....

In a recent post concerning a mambo error message:
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after=20
'URL-Rewriter' in /home/xxx/public_html/xxx/includes/mambo.php on line 2771

http://forum.mamboserver.com/showthread.php?t=3D70555

There was a recommended fix by a 3rd party that contains this code:

original:
if ( extension_loaded('zlib') ) {
ob_start( 'ob_gzhandler' );
return;

Changing this to:=20
if ( extension_loaded('xzlib') ) {
ob_start( 'ob_gzhandler' );
return;

Of course this doesn't solve the underlying problem which simply requires=20
turning off gzip compression in mambo or turning off zlib compression when=
=20
using the one in mambo....but it does have a pretty weird effect if you try=
=20
it.

Applying this change to a cpanel web site will cause the web site to stop=20
responding for all php web sites on the server. Changing the line of code=
=20
back to the original does not help for that specific web site. I don't hav=
e=20
root access to the server to find out what crashed or to restart the=20
services, or to even take a further look at it.....

Looking at services through the cpanel account shows httpd failed as soon a=
s=20
the page is loaded but other static content on the web server for other=20
domains was working fine.

Server Specs:
Operating system FreeBSD
Kernel version 4.7-RELEASE
Machine Type i386
Apache version 1.3.31 (Unix)
PERL version 5.8.2
PHP version 4.3.4
MySQL version 4.0.13
cPanel Build 10.8.1-CURRENT 112

Here is another post I made concerning this issue (the last line of this=20
post):
http://forum.mamboserver.com/showthread.php?p=3D335376#post335376

I never notified anyone, because this is really incomplete, I don't have th=
e=20
resources to take this further, and I wouldn't know who to notify at this=20
point.

=2D-=20
Ed Wiget

"I'd crawl over a million acres of 'Visual This++' and 'Integrated=20
Development That' to get to gcc, Emacs, and gdb"

--nextPart1174700.SXLWAA6fCo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQBD+grSIyudXYLVVn0RAsMpAJ9h6WkV2uepIMdezLWkOj bCtsCTMwCgygso
Smar1KVNTkZIfbJUPwmhwhs=
=eCCN
-----END PGP SIGNATURE-----

--nextPart1174700.SXLWAA6fCo--