Optimum configuration for Apache and PHP
| From: | php at lmem dot icsurselva dot ch | Date: | Sat, 18 Mar 2006 13:35:51 +0000 |
| Subject: | Optimum configuration for Apache and PHP | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-17202@lists.php.net to get a copy of this message | ||
Hello all,
We are building a new LAMP system, which will contain lots of virtualhosts
(most of them are Typo3 vhosts).
Hardware:
Processors: 2 x Xeon(TM) CPU 3.20GHz, 2048 KB
(EM64T, HyperThreading)
RAM: 4GB
Im wondering what would be the best solution to setup apache and PHP
(we want install php4 and php5 on the same machine)
I thought about the following possibilities
(Configuration_1)
- apache2 compiled with "worker mpm" and "threads"
- php compiled as "cgi" and "threads"
? what about fastcgi in this configuartion ?
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_1)
(Configuration_2)
- apache2 compiled with "prefork mpm"
- php compiled as "cgi"
(all without threads)
? what about fastcgi in this configuartion ?
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_2)
(Configuration_3)
- apache2 compiled with "prefork mpm"
- php compiled as "mod_php"
? what about eaccelerator or pecl-apc in this configuartion ?
(/Configuration_3)
Which one is the way to go regarding stability, performance and security?
How does mod_suphp affect performance and stability?
Thanks for helping us.