Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
LAMP Server Performance Tips

I am running a web directory using WordPress which has a lot of categories, and I mean a lot. Around 26,000 to be precise. And it takes WordPress forever to finish processing certain requests. The homepage takes around 120 seconds to finish processing and then the data is sent over. I recently moved this to a different host which has 2 GB RAM. I am using BitNami LAMPStack.

I am wondering what it is that effects the time required to process a request? Apache, MySQL, PHP or all? I am hoping I can bring the amount of time it takes down significantly and I would appreciate if someone could maybe point me to the right direction? I have tried playing with apache configuration and mysql file(s).

And apache is using prefork and mod_php

share|improve this question

marked as duplicate by mailq, Wesley, mgorven, pQd, Scott Pack Jul 16 '12 at 19:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Duplicate of serverfault.com/a/11741/113375 –  Ben Lessani - Sonassi Jun 30 '12 at 17:03
    
one way is to not use LAMP, use nginx+php-fpm instead like we use, we've described how we do it at logicwreck.com/index.php/2012/07/02/… –  Logic Wreck Jul 3 '12 at 11:55
1  
Nothing server-side is going to help a badly built site. Rebuild your site. –  Ben Lessani - Sonassi Jul 10 '12 at 7:27

1 Answer 1

Use a faster web server like Nginx and enable Opcode and WordPress object caching using APC. The quality of your code also has a lot to do with it.

Reduce the number of queries, cache results using the enter link description hereWordPress API, cache static html versions of your pages using Varnish or a load balancer.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.