Apache worker / PHP issue

This is a discussion on Apache worker / PHP issue within the Apache forums in Application Servers & Tools category; 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...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-08-2008, 02:00 PM
Savio Dias
Guest
 
Default 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


Reply With Quote
  #2  
Old 11-08-2008, 03:18 PM
Eric Covener
Guest
 
Default Re: Apache worker / PHP issue

On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <saviodias@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.ins...lation.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


Reply With Quote
  #3  
Old 11-11-2008, 01:50 AM
Savio Dias
Guest
 
Default Re: Apache worker / PHP issue

Hello,

Is there anyone who can help resolve this issue ?

Thanks

On Sun, Nov 9, 2008 at 1:48 AM, Eric Covener <covener@gmail.com> wrote:
> On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <saviodias@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.ins...lation.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


Reply With Quote
  #4  
Old 11-11-2008, 02:20 AM
André Warnier
Guest
 
Default Re: Apache worker / PHP issue

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 <covener@gmail.com> wrote:
>> On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <saviodias@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.ins...lation.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


Reply With Quote
  #5  
Old 11-11-2008, 02:40 AM
Issac Goldstand
Guest
 
Default Re: Apache worker / PHP issue

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


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.