I have a debian 6 at 64bit. I want install lamp. On some website i find:
apt-get install apache2
on some other:
apt-get install apache-mpm-prefork
Which one should I choose?
Thanks
|
I have a debian 6 at 64bit. I want install lamp. On some website i find:
on some other:
Which one should I choose? Thanks
| |||
|
feedback
|
|
The poster might be interested in the reasons why:
As PHP is not thread-safe, the common suggestion is to install Apache with the "prefork" MPM. Differences between Apache MPMs: http://httpd.apache.org/docs/2.0/en/mod/#core Short answer to your question: Debian will automatically choose the right Apache version if you're installing PHP. | |||
|
feedback
|
|
| |||
feedback
|
|
This is a question of dependencies. In this particular case, if you install apache2, it will install the default dependencies for the distribution, which might be apache2-mpm-worker instead of apache2-mpm-prefork. If what you need is prefork, it would be better to install it specifically instead of the generic apache2 package. | |||
|
feedback
|
|
I suggest you to use aptitude for those tasks, it will provide a ncurses interface which shows you all the dependencies and allows you to change your choices before the actual install process. It's simply the best tool for package management. In your case you have to start aptitude, then press Edit: for lamp you have to select also the php5 package which provide all the php infrastructure both for apache and php cli scripts, the mysql-server package which provides the mysql server and the php5-mysql package which provides the php mysql and pdo functions. | |||
|
feedback
|