Re: [arch-general] [arch-dev-public] Upgrading Apache to 2.4
Hi + php maintainer On Thu, Mar 6, 2014 at 3:05 PM, Rene Pasing <rene@pasing.net> wrote:
Hi Anatol,
On 03/06/2014 10:48 PM, Anatol Pomozov wrote:
Apache 2.4 has been moved from [testing] to [extra] and now available for everyone. Please update your setup, follow the migration instructions https://httpd.apache.org/docs/trunk/upgrading.html and report any problems. Thanks everyone.
I get the following error:
Mar 06 23:59:34 VAIO-ARCH apachectl[697]: [Thu Mar 06 23:59:34.072638 2014] [:crit] [pid 699:tid 139754760394624] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Mar 06 23:59:34 VAIO-ARCH apachectl[697]: AH00013: Pre-configuration failed Mar 06 23:59:34 VAIO-ARCH systemd[1]: httpd.service: control process exited, code=exited status=1 Mar 06 23:59:34 VAIO-ARCH systemd[1]: Failed to start Apache Web Server. Mar 06 23:59:34 VAIO-ARCH systemd[1]: Unit httpd.service entered failed state.
I will switch to php-fpm soon, but nevertheless... Just wanted you to be aware... ;-)
Sounds like a bug to me. Mind filing one at bugs.archlinux.org? Pierre, I found some information in Google+ related to apache24 package in aur: "The only thing was that I had to recompile PHP to be thread-safe. It was '--enable-zts' parameter, I think...". The flag sounds like a solution for this bug.
On 03/07/2014 12:39 AM, Anatol Pomozov wrote:
Hi
+ php maintainer
On Thu, Mar 6, 2014 at 3:05 PM, Rene Pasing <rene@pasing.net> wrote:
Hi Anatol,
On 03/06/2014 10:48 PM, Anatol Pomozov wrote:
Apache 2.4 has been moved from [testing] to [extra] and now available for everyone. Please update your setup, follow the migration instructions https://httpd.apache.org/docs/trunk/upgrading.html and report any problems. Thanks everyone.
I get the following error:
Mar 06 23:59:34 VAIO-ARCH apachectl[697]: [Thu Mar 06 23:59:34.072638 2014] [:crit] [pid 699:tid 139754760394624] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Mar 06 23:59:34 VAIO-ARCH apachectl[697]: AH00013: Pre-configuration failed Mar 06 23:59:34 VAIO-ARCH systemd[1]: httpd.service: control process exited, code=exited status=1 Mar 06 23:59:34 VAIO-ARCH systemd[1]: Failed to start Apache Web Server. Mar 06 23:59:34 VAIO-ARCH systemd[1]: Unit httpd.service entered failed state.
I will switch to php-fpm soon, but nevertheless... Just wanted you to be aware... ;-)
Sounds like a bug to me. Mind filing one at bugs.archlinux.org?
Pierre, I found some information in Google+ related to apache24 package in aur: "The only thing was that I had to recompile PHP to be thread-safe. It was '--enable-zts' parameter, I think...". The flag sounds like a solution for this bug.
Default mpm in apache is thread safe one. You need to switch to non-thread safe one (prefork?) in order to use mod_php5 with apache2.4 -- Note: My last name is not Krejzi.
Thanks for taking the effort to finally update Apache! When trying to start Apache with PHP, I get the same error as Rene. Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported? Thanks! Sebastiaan 2014-03-07 0:52 GMT+01:00 Armin K. <krejzi@email.com>:
On 03/07/2014 12:39 AM, Anatol Pomozov wrote:
Hi
+ php maintainer
On Thu, Mar 6, 2014 at 3:05 PM, Rene Pasing <rene@pasing.net> wrote:
Hi Anatol,
On 03/06/2014 10:48 PM, Anatol Pomozov wrote:
Apache 2.4 has been moved from [testing] to [extra] and now available for everyone. Please update your setup, follow the migration instructions https://httpd.apache.org/docs/trunk/upgrading.html and report any problems. Thanks everyone.
I get the following error:
Mar 06 23:59:34 VAIO-ARCH apachectl[697]: [Thu Mar 06 23:59:34.072638 2014] [:crit] [pid 699:tid 139754760394624] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Mar 06 23:59:34 VAIO-ARCH apachectl[697]: AH00013: Pre-configuration failed Mar 06 23:59:34 VAIO-ARCH systemd[1]: httpd.service: control process exited, code=exited status=1 Mar 06 23:59:34 VAIO-ARCH systemd[1]: Failed to start Apache Web Server. Mar 06 23:59:34 VAIO-ARCH systemd[1]: Unit httpd.service entered failed state.
I will switch to php-fpm soon, but nevertheless... Just wanted you to be aware... ;-)
Sounds like a bug to me. Mind filing one at bugs.archlinux.org?
Pierre, I found some information in Google+ related to apache24 package in aur: "The only thing was that I had to recompile PHP to be thread-safe. It was '--enable-zts' parameter, I think...". The flag sounds like a solution for this bug.
Default mpm in apache is thread safe one. You need to switch to non-thread safe one (prefork?) in order to use mod_php5 with apache2.4
-- Note: My last name is not Krejzi.
Hi On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start. The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4! And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
On Mon, Mar 10, 2014 at 7:21 PM, Anatol Pomozov <anatol.pomozov@gmail.com>wrote:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I've also had problems making nagios work under Apache 2.4. When I click on any sidebar link, instead of executing the CGI I'm presented with the download dialog to download the CGI file. I guess CGIs have stopped working after upgrading. I think mod_cgi does not exist for Apache 2.4, and none of the similarly-named mods (mod_fastcgi, mod_proxy_fcgi, mod_fastcgi) seems to be a drop-in replacement for mod_cgi. What is the recommended way to run CGIs, specifically those needed for the Nagios web interface, under Apache 2.4?
Hi On Mon, Mar 10, 2014 at 11:41 AM, geralt@gmail.com <geralt@gmail.com> wrote:
On Mon, Mar 10, 2014 at 7:21 PM, Anatol Pomozov <anatol.pomozov@gmail.com>wrote:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I've also had problems making nagios work under Apache 2.4. When I click on any sidebar link, instead of executing the CGI I'm presented with the download dialog to download the CGI file. I guess CGIs have stopped working after upgrading. I think mod_cgi does not exist for Apache 2.4, and none of the similarly-named mods (mod_fastcgi, mod_proxy_fcgi, mod_fastcgi) seems to be a drop-in replacement for mod_cgi.
What is the recommended way to run CGIs, specifically those needed for the Nagios web interface, under Apache 2.4?
Update to version 2.4.7-2 (now it stable). It added missing modules to the package: mod_cern_meta mod_cgi mod_ident mod_imagemap mod_lua mod_proxy_html mod_xml2enc
On Mon, Mar 10, 2014 at 7:46 PM, Anatol Pomozov <anatol.pomozov@gmail.com>wrote:
Hi
On Mon, Mar 10, 2014 at 7:21 PM, Anatol Pomozov < anatol.pomozov@gmail.com>wrote:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I've also had problems making nagios work under Apache 2.4. When I click on any sidebar link, instead of executing the CGI I'm presented with the download dialog to download the CGI file. I guess CGIs have stopped working after upgrading. I think mod_cgi does not exist for Apache 2.4, and none of the similarly-named mods (mod_fastcgi, mod_proxy_fcgi, mod_fastcgi) seems to be a drop-in replacement for mod_cgi.
What is the recommended way to run CGIs, specifically those needed for
On Mon, Mar 10, 2014 at 11:41 AM, geralt@gmail.com <geralt@gmail.com> wrote: the
Nagios web interface, under Apache 2.4?
Update to version 2.4.7-2 (now it stable). It added missing modules to the package: mod_cern_meta mod_cgi mod_ident mod_imagemap mod_lua mod_proxy_html mod_xml2enc
Wonderful! After nagios stopped working, I downgraded apache back to 2.2 and put it in IgnorePkg, I didn't think it was a matter of just waiting for the next update. 2.4.7-2 is working fine for me. Also, having mod_proxy_html and mod_xml2enc as part of the core apache package instead of having to get them from AUR is an improvement (the AUR PKGFILE for mod_proxy_html doesn't even compile mod_xml2enc even though the sources are downloaded in the tarball, I had to add it by hand). Thanks Anatol!
2014-03-10 15:21 GMT-03:00 Anatol Pomozov <anatol.pomozov@gmail.com>:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I was studying the php package to build an php fully compatible with apache 2.4. I understand that php is the base package and the others are split packages (many)... So, would you know if it is necessary to rebuilt all the php packages or only the php-apache? Thanks in advance. A question, i saw some references [1] that the apache MPM can be "dinamically" changed. Is it true in Arch? [1] http://kb.parallels.com/en/113007
Am 12.03.2014 00:23, schrieb Eduardo Machado:
2014-03-10 15:21 GMT-03:00 Anatol Pomozov <anatol.pomozov@gmail.com>:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I was studying the php package to build an php fully compatible with apache 2.4. I understand that php is the base package and the others are split packages (many)...
So, would you know if it is necessary to rebuilt all the php packages or only the php-apache? Thanks in advance.
A question, i saw some references [1] that the apache MPM can be "dinamically" changed. Is it true in Arch?
You need to recompile the whole PHP package and all external modules like xcache etc.. Note that there is a good chance you run into issues with esp. modules. -- Pierre Schmitz, https://pierre-schmitz.com
Why use mod_php when you can use PHP-FPM with mod_proxy_fcgi? Works wonderfully. On Wed, Mar 12, 2014 at 11:10 AM, Pierre Schmitz <pierre@archlinux.de>wrote:
2014-03-10 15:21 GMT-03:00 Anatol Pomozov <anatol.pomozov@gmail.com>:
Hi
On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com> wrote:
Thanks for taking the effort to finally update Apache!
When trying to start Apache with PHP, I get the same error as Rene.
Just to be clear, what is the recommended way to run Apache+PHP now? Will mod_php5 will still be supported?
Ok, it seems that main source of questions is php-apache package that causes "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP." error at apache start.
The answer is that you need to switch apache MPM from default mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See more information in at wiki page https://wiki.archlinux.org/index.php/LAMP#Troubleshooting BTW kudos to our users who already updated wiki for Apache2.4!
And of course anyone is welcome to create a threadsafe version of php-apache in AUR so it can be used with mpm_event.
I was studying the php package to build an php fully compatible with apache 2.4. I understand that php is the base package and the others are split
Am 12.03.2014 00:23, schrieb Eduardo Machado: packages
(many)...
So, would you know if it is necessary to rebuilt all the php packages or only the php-apache? Thanks in advance.
A question, i saw some references [1] that the apache MPM can be "dinamically" changed. Is it true in Arch?
You need to recompile the whole PHP package and all external modules like xcache etc.. Note that there is a good chance you run into issues with esp. modules.
-- Pierre Schmitz, https://pierre-schmitz.com
-- Kirill Churin Jabber: reflexing@reflexing.ru
participants (7)
-
Anatol Pomozov
-
Armin K.
-
Eduardo Machado
-
geralt@gmail.com
-
Kirill Churin
-
Pierre Schmitz
-
Sebastiaan Lokhorst