Solved

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

Posted on 2009-05-11
5
236 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
[X]
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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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