?
Solved

how do I speed up my httpd,php and mysql ?

Posted on 2009-05-11
5
Medium Priority
?
242 Views
Last Modified: 2013-12-16
Hello
I have a server the load average don't get more than 0.5 but I hjave my sites working slowly how do I speed up my server to chow my site very fast . ?
what hardware make my server work very fast ?
what software should I install to make  my server work very fast ?
thank you
0
Comment
Question by:xserverx
  • 3
4 Comments
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24361957
First of all, compile apache with MPM worker and not prefork. (even if by default it should use worker).

Then, you should use a multicore machine, so that every concurrent connection gets elaborated by a dedicated core.
But there are other factors, like RAM, which have to hold all the databases referecend and all the web pages.
And don't forget the bandwidth.

You should provide more informations of your type of website, the usage statistics and the current system you own
0
 

Author Comment

by:xserverx
ID: 24363248
ai_ja_nai, why MPM worker and not prefork ??
how do I setting up worker directives is there any rules to calculate worker directives values ?
what about php cache ?
0
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 2000 total points
ID: 24372728
Because prefork is fork based; it adds a lot of overhead due to the fact that it has to isntantiate another child apache2 process. Worker is thread based and, beside being lighter, on multicore cpus it really kicks.
Prefork is good just for stability purposes on old versions of PHP.

You can find directives explanations on apache webpage (http://httpd.apache.org/docs/2.0/mod/worker.html)

Of course, caching gives a real boost to performances, when it comes to repetitive tasks that are similar/equal for all the users. But you still didn't tell me what's going this website do, how many users it's going to carry, etc..
0
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24436705
Why did you leave a C? Were you unhappy with your solution?
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question