Solved

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

Posted on 2009-05-11
5
234 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.

Question has a verified solution.

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

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

785 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