News:

Wondering if this will always be free?  See why free is better.

Main Menu

Too much traffic Help!!

Started by Directy, September 09, 2006, 05:28:09 AM

Previous topic - Next topic

Orstio

Try this:

Turn off compressed output in both Joomla and SMF.

Add this to the top of your .htaccess:

AddType application/x-httpd-php .html
php_value output_handler ob_gzhandler


(Thanks to GooseMoose for that!)  ;)

Mongoose

Yes, It works!
But is it safe solution?

chadness

Definitely safe.  It's basically just telling your site's server to put its php output through gzip, instead of having Joomla do it internally.

Mongoose

Hmmm... Have iteresting issue.
Setting RG_EMULATION to 0 in globals.php still disables the compression. :(

Directy



Mongoose

But...
Quote from: Mongoose on October 12, 2006, 02:26:30 PM
Hmmm... Have iteresting issue.
Setting RG_EMULATION to 0 in globals.php still disables the compression. :(


Orstio

Then chances are something is producing an error when register_globals is off. 

Check your error logs.

Mongoose

No errors. Neither Joomla nor SMF.

Thornbrand

#29
I was experiencing the same problem, and thought I'd offer what seems to be another working solution - incase anyone else gets hung up on this.  For some reason I could not get the solution presented by Orstio (from GooseMoose) to work:

Quote from: Orstio on October 09, 2006, 08:22:15 PM
Try this:

Turn off compressed output in both Joomla and SMF.

Add this to the top of your .htaccess:

AddType application/x-httpd-php .html
php_value output_handler ob_gzhandler


(Thanks to GooseMoose for that!)  ;)

Instead, this seemed to work well for me:

I have compressed output in both Joomla and SMF turned off.

RG_EMULATION set to 0 in globals.php

And have added this to my .htaccess file.

php_flag register_globals off
php_flag zlib.output_compression on
php_value zlib.output_compression_level 5


Seems to be working just fine.

Mongoose


directtech

Quote from: Orstio on September 30, 2006, 09:02:44 PM
Register_globals is only a security risk if allow_url_fopen is on.

How can I check this for my site?


directtech

Ok, my allow_url_fopen is set to ON.  How do I change that?  Thanks for all the help.

Orstio

That usually cannot be changed locally.  You'll have to talk to your host.  Until it is off, you are best to make sure that register_globals is off.

Advertisement: