Use eaccelerator.compress or apache.mod_deflate?

June 13, 2007 - 23:13
Use eaccelerator.compress or apache.mod_deflate?
Posts: 3
Joined: 2007-06-12

I prefre apache.mod_deflate to compress my website,does it also need eaccelerator.compress?if not use eaccelerator.compress,does it affect to apache's performance?

thank Chris,you are so good a man.

a friend from China.



June 18, 2007 - 05:17
Posts: 406
Joined: 2006-01-02

Greetings Friend from the great China,

You should use both, would be my recommendation. They compress different things.

If possible run eA with:
eaccelerator.check_mtime="0"

This makes eAccelerator skip checking the modified time of original php file at each access. But if you make php code changes you then have to restart Apache. That setting should be fine for most production servers.

Cheers,
Chris



June 19, 2007 - 00:40
Posts: 3
Joined: 2007-06-12

Thanks for your reply,I think I know the answer,the eaccelerator.compress compresses the php file for cacheing,and apache.mod_deflate compresses the site for viewers.

eaccelerator helps a lot for php's performance,at least in my site.Thank Chris.