PDA

View Full Version : speeding up your web server



lkbryant
12-28-2007, 02:43 PM
anyone know what is the best way to speed up and fully optimize your apache2/php5 server?

i have tried the following so far:
- install xCache
- gzip compression
- setup --enable-inline-optimization and --disable-debug on php
- setup --with-mm on apache2 and set session.save_handler = mm on php.ini (this somehow gives me segfault error with xCache so i disabled it. any workaround to this?)

i am on a quad core server with 4gb ram and it seems to run slower than my other machine with p4 3g on 1 gb ram!

could it could be that i have installed mod_security, KISS and mod_evasive which is causing atleast 1-2 seconds of slower page loads?

iceuk626
12-28-2007, 03:45 PM
Depending on how large your modsecurity rules are, this could have a major impact on the speed of your server.

lkbryant
12-28-2007, 05:07 PM
yeah i guess its fairly minimal

anyone have experience with using Apache as MPM Worker instead of MPM Prefork?

I heard this speeds up tremendously on multi-processor core servers.

but this means i need to enable fastcgi , which would break probably all the php apps.