[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Both apache and apache2 (sarge) ?



On Mon, 2004-06-28 at 14:25, Kenneth Jacker wrote:
> I'm trying to install 'phpmyadmin' and 'acidlab' on testing/sarge.
> 
> The default web server installed was 'apache2'.  Yet when I try and
> install the above, dependencies want to force an install of 'apache'
> (the fact that 'apache2' is already there seems to be ignored).
> 
> Doesn't seem right installing *two* versions of 'apache'.
> 
> Any comments, suggestions, and/or help is appreciated!

Apache2 comes in several variants depending on which MPM
(multi-processing module) has been compiled in. There is an MPM called
the "prefork MPM" that essentially behaves like Apache1, in that a pool
of *processes* is created. And there is the "worker" MPM in which a pool
of *threads* is created within the same apache process.

Unfortunately a number of apache extension modules are not thread-safe,
and hence will not work with the apache2 "worker" version. PHP is one of
them. So PHP and friends tend to just require apache1 instead of apache2
(anyway, that's what I gather from articles I have read).

Provided you are using the "prefork" mode for apache2, and can find an
appropriate apache2 module for PHP, it *should* work. However you will
need to fiddle around a bit with the install as this setup isn't the
"default" setup. You can probably find instructions on the PHP website.

You can run "apache2 -l" to list the installed modules, one of which
will be the MPM module that your installed apache2 instance is using.

NB: I'm not a PHP user, so all the above is hearsay....

Regards,

Simon



Reply to: