LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Optimization (https://www.linuxquestions.org/questions/linux-newbie-8/apache-optimization-888909/)

Shahnawaz Uqaili 06-29-2011 02:11 AM

Apache Optimization
 
Hello friends,

Please guide me about the optimization of Apache. I am using ubuntu 10.04.1 LTS.

I have read many documentation but i didn't understand. I have assigned a task of how we can optimize apache. please help me as i'm not an expert in this field.. :p

Cheers

John VV 06-29-2011 02:52 AM

If you do not understand the Apache documentation ?????
http://httpd.apache.org/docs/2.2/
The Doc's are very strait forward and easy to use .
the httpd.conf is VERY well documented - so documented in fact that once you remove that it is 1/10th the size.

then you have a problem
what you might want to do is start from scratch
remove the deb install and install from source .That way YOU LEARN how to set it up and configure it .

you might also want to go over to Amazon and buy a book
form : O'reilly
"Apache - the definitive guide "

Shahnawaz Uqaili 06-29-2011 02:56 AM

Thanks for quick response John

Actually i have some experience of apache, now i'm at my job and everything is setup here. They only ask me to optimize apache and php, if whenever our server goes down what we should do on that time?

travisdh1 06-29-2011 09:19 AM

Apache can run it's own cluster services so you could setup another machine with the exact same apache/php things and just configure that. See the httpd.conf and man pages for details.

You can also do things like caching the compiled php pages rather than making the server compile them every time someone requests a page (big performance increase there when using a single server as the web host.) If the site gets large enough you can also do some sql caching, but you really have to have an overloaded sql server for that to make sense performance wise. (Not knowing how much traffic your site gets I'm just throwing these two things out.) Sorry I don't have time to find some links for you to look at.


All times are GMT -5. The time now is 02:21 AM.