Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Hyper-convergence systems have taken the IT world by storm and have quickly started to change our point of view of how the data center should and could be architected. In this article, I’ll explain the benefits of employing a hyper-converged system …
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 how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

860 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