Apache update breaks php compatibility of owncloud

Problems with packages? Post here, using [tags] of the package name.

Apache update breaks php compatibility of owncloud

Postby hp4 » Thu Mar 13, 2014 6:00 pm

My archlinuxarm distribution on RaspberryPi recently updated to apache 2.4.

This implied that the php-module isn't running anymore since it is not multi-threaded.

The recommended workaround with php-fpm doesn't work for owncloud, which previously worked fine with apache 2.2.

Guidelines in the Archlinux wiki are still based on apache 2.2, so I'm not able to find any workaround.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm

Re: Apache update breaks php compatibility of owncloud

Postby WarheadsSE » Thu Mar 13, 2014 6:03 pm

This is new, and comes from upstream.

See this mailing list thread : [arch-dev-public] Upgrading Apache to 2.4
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Apache update breaks php compatibility of owncloud

Postby pepedog » Thu Mar 13, 2014 7:34 pm

pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Apache update breaks php compatibility of owncloud

Postby moonman » Thu Mar 13, 2014 10:00 pm

Why not use lighttpd or nginx instead. You will probably notice that everything runs faster too.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Apache update breaks php compatibility of owncloud

Postby hp4 » Thu Mar 13, 2014 11:59 pm

$this->bbcode_second_pass_quote('moonman', 'W')hy not use lighttpd or nginx instead. You will probably notice that everything runs faster too.


up to now owncloud was running on apache 2.2, so there was no reason for me to expect problems with the upgrade to apache 2.4. But maybe I've to switch to one of the alternatives you mentioned.

$this->bbcode_second_pass_quote('pepedog', 'h')ttp://httpd.apache.org/docs/2.4/upgrading.html


I've read these hints while adapting httpd.conf to my server but didn't find anything relevant to the owncloud problem. Since I want to rely on ready-to-run packages (pacman) I found the hint to use php-fpm. The old php-module-technique doesn't exist for apache 2.4 or at least not in my distribution, since it only provides the non-thread-safe package for the module.

I've filed a bug in ownloud, since to my impression owncloud is not able to work correctly with the $_SERVER content provided by php-fpm. But maybe owncloud will blame php-fpm in case the $_SERVER content is not compliant with the old apache-environments.

$this->bbcode_second_pass_quote('WarheadsSE', 'T')his is new, and comes from upstream.

See this mailing list thread : [arch-dev-public] Upgrading Apache to 2.4


could you please send a link? I'm new to this forum and wasn't able to find the thread.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm
Top

Re: Apache update breaks php compatibility of owncloud

Postby WarheadsSE » Fri Mar 14, 2014 12:15 am

Mailing list.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Apache update breaks php compatibility of owncloud

Postby pepedog » Fri Mar 14, 2014 12:34 am

It leads to that link I gave you, but this is better
https://wiki.archlinux.org/index.php/Ap ... leshooting
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Apache update breaks php compatibility of owncloud

Postby hp4 » Fri Mar 14, 2014 9:01 pm

The solution with mod_proxy_fcgi and mod-fpm seems to have serious problems with providing a correct environment for php, e.g the bug

https://bugs.php.net/bug.php?id=65641

seems to be still unresolved. Also you can find a lot of comments in the mod-fpm sources which point to apache-specific problems (for an example see below).

So I'm not sure whether it's really a good idea to include these packages in the archlinux distribution. At least the default configuration for normal LAMP-users should omit mod-fpm and provide other ways to support apache for php. Since I'm not an LAMP-expert I'm not sure whether returning to the single threaded model for apache 2.4 is really the better option than returning to apache 2.2.

-------------------------------------------------------------------------------------------------------------------------
in the mod-fpm sources I've found the comment with different to bug references.

#define APACHE_PROXY_FCGI_PREFIX "proxy:fcgi://"
/* Fix proxy URLs in SCRIPT_FILENAME generated by Apache mod_proxy_fcgi:
* proxy:fcgi://localhost:9000/some-dir/info.php/test?foo=bar
* should be changed to:
* /some-dir/info.php/test
* See: http://bugs.php.net/bug.php?id=54152
* https://issues.apache.org/bugzilla/show ... i?id=50851
*/
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm

Re: Apache update breaks php compatibility of owncloud

Postby WarheadsSE » Fri Mar 14, 2014 9:42 pm

Take it up with Arch proper. This wasn't us.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Apache update breaks php compatibility of owncloud

Postby hp4 » Mon Mar 17, 2014 2:03 pm

see discussion in

https://bbs.archlinux.org/viewtopic.php?id=178551

apache 2.4 with php currently is not running out-of-the-box. You have to build a workaround package mod_proxy_handler till an apache correction will be available.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 2 guests