[Phpug] Caching / Optimising / Speeding Up Php Scripts / Sites?

Ken Guest ken at linux.ie
Fri Jun 29 15:29:14 IST 2007


On Fri, Jun 29, 2007 at 03:01:11PM +0100, Michele Neylon wrote:
> Hi all
> 
> One of those $random and rather general queries ....
> 
> Does anyone have any secret foo to help speed up sites running php /
> mysql on apache2.
> I've already got APC installed but Apache keeps segfaulting :(
> 
> The server's going to be getting an extra 2 gigs of ram next week (it's
> sitting on my desk!) but until then I need to keep it running
> 
> And before anyone asks - no it's not a Blacknight server - it's one of
> my own
> 

have you tried any of the other op code caches? ones that might be less buggy
perhaps? ;-) eaccelerator, turckmmache etc.

would you delve into changing the code to speed things up or are you looking
for useful settings in configuration files?

is the directory where the session files are saved to in tmpfs? that should be
quicker than having too many writes to disk occur. (there's a use for the extra
ram you are getting!)

check which engines you are using with mysql - some are quicker than others.

if you aren't going to bother analysing the logs - turn it off [again less
resources used on non-essentials]

if you don't mind getting your hands dirty optimising the code there are quite
a few more options available.

also read http://phplens.com/phpeverywhere/tuning-apache-php - there are plenty
more gems of advice there.

hth

k.

-- 
Ken Guest
Mobile: +353 86 8252 141    http://blogs.linux.ie/kenguest/
Irish PHP Users Group       http://php.ie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.iephpug.org/pipermail/phpug/attachments/20070629/70e8092f/attachment.bin 


More information about the Phpug mailing list