You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Savio Dias <sa...@gmail.com> on 2008/11/08 20:00:30 UTC
[users@httpd] Apache worker / PHP issue
Hello,
I am using Ubuntu 8.04.
I have installed apache2 using apt-get, this installs the mpm-worker mode.
However when i try to install php5 using apt-get, it removes the
mpm-worker and installs prefork.
I need to keep the worker mode intact......please suggest.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache worker / PHP issue
Posted by Issac Goldstand <mm...@gmail.com>.
André Warnier wrote:
> Savio Dias wrote:
>> Hello,
>>
>> Is there anyone who can help resolve this issue ?
>>
> Hi.
> What the Debian packager (through the apt-get program) and Eric are
> telling you, is that the PHP5 package removes mpm-worker and replaces it
> by mpm-prefork for a good reason.
> The good reason is probably that mpm-worker is a threaded version of
> Apache, and PHP5 has something that does not work in a threaded version
> of Apache, so they are not compatible.
>
That's correct. To correctly run PHP5 in a threaded Apache, don't use
mod_php5 - use FastCGI. That'll give you all of the benefits of worker
without bombing out on non-threadsafe PHP calls (or if you're POSITIVE
that you don't need threadsafe PHP5 extensions, you can use mod_php5 -
AFAIK the php5 core IS threadsafe and I know of several folks using this
in production)
Issac
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache worker / PHP issue
Posted by André Warnier <aw...@ice-sa.com>.
Savio Dias wrote:
> Hello,
>
> Is there anyone who can help resolve this issue ?
>
Hi.
What the Debian packager (through the apt-get program) and Eric are
telling you, is that the PHP5 package removes mpm-worker and replaces it
by mpm-prefork for a good reason.
The good reason is probably that mpm-worker is a threaded version of
Apache, and PHP5 has something that does not work in a threaded version
of Apache, so they are not compatible.
What Eric is further telling you, is that you can decide to live
dangerously, and still force PHP5 to run under a threaded version of
Apache. But the way to do that, would be to build your own threaded
version of Apache from the Apache source.
> Thanks
>
> On Sun, Nov 9, 2008 at 1:48 AM, Eric Covener <co...@gmail.com> wrote:
>> On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <sa...@gmail.com> wrote:
>>> Hello,
>>>
>>> I am using Ubuntu 8.04.
>>>
>>> I have installed apache2 using apt-get, this installs the mpm-worker mode.
>>> However when i try to install php5 using apt-get, it removes the
>>> mpm-worker and installs prefork.
>>>
>>> I need to keep the worker mode intact......please suggest.
>> Your distro is wisely preventing you from using that combination.
>>
>> http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
>>
>> If you know better, build your own.
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache worker / PHP issue
Posted by Savio Dias <sa...@gmail.com>.
Hello,
Is there anyone who can help resolve this issue ?
Thanks
On Sun, Nov 9, 2008 at 1:48 AM, Eric Covener <co...@gmail.com> wrote:
> On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <sa...@gmail.com> wrote:
>> Hello,
>>
>> I am using Ubuntu 8.04.
>>
>> I have installed apache2 using apt-get, this installs the mpm-worker mode.
>> However when i try to install php5 using apt-get, it removes the
>> mpm-worker and installs prefork.
>>
>> I need to keep the worker mode intact......please suggest.
>
> Your distro is wisely preventing you from using that combination.
>
> http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
>
> If you know better, build your own.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache worker / PHP issue
Posted by Eric Covener <co...@gmail.com>.
On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <sa...@gmail.com> wrote:
> Hello,
>
> I am using Ubuntu 8.04.
>
> I have installed apache2 using apt-get, this installs the mpm-worker mode.
> However when i try to install php5 using apt-get, it removes the
> mpm-worker and installs prefork.
>
> I need to keep the worker mode intact......please suggest.
Your distro is wisely preventing you from using that combination.
http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
If you know better, build your own.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org