Solved

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

Posted on 2009-05-11
5
232 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
5 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The 6120xp switches seem to have a bug when you create a fiber port channel when you have a UCS fabric interconnects talking to them.  If you follow the Cisco guide for the UCS, the FC Port channel will never come up and it will say that there are n…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now