Known problems with php / webserver modules or configs

Here we try to answer typical questions
Forum rules
Answers should only relate to FAQ entry. Please put your owncloud questions to appropriate forums-

Known problems with php / webserver modules or configs

Postby Rancor » Sun Dec 23, 2012 1:07 pm

Hi,

this are the modules of php or webservers which are known to cause problems with OwnCloud:

Apache Authentication

Description: https://httpd.apache.org/docs/2.2/howto/auth.html

with entries like:

AuthType Basic


in your vhosts file.

Apache with mod_php and enabled mod_spdy (SPDY) module

Running Apache with mod_spdy enabled could lead to various issues when using mod_php:

Much like the Apache Worker MPM, mod_spdy is a multithreaded module, and processes multiple SPDY requests from the same connection simultaneously. This poses a problem for other Apache modules that may not be thread-safe, such as mod_php. Fortunately, it is fairly easy to adjust your Apache configuration to make your existing PHP code safe to use with mod_spdy (and with the Worker MPM as well).


The following documentation shows how to switch to mod_fcgid:

https://developers.google.com/speed/spdy/mod_spdy/php

mod_auth_apple on Mac OS X server

Description: https://support.apple.com/kb/PH9733

There is a module mod_auth_apple available on Mac OS X servers which is doing the Basic Auth like on an apache server. Disable this module.

eAccelerator PHP module

Description: http://eaccelerator.net/

How to disable it: (Thanks to RandolfCarter for this link)
http://linuxwindowsmaster.com/how-do-i- ... celerator/

Instead of the settings like described in the linked article it is possible to disable the whole extension. Where this extension is loaded depends on the installation / system / used distro. This article describes how the extension is loaded:

https://github.com/eaccelerator/eaccele ... ccelerator

On debian this .so file is loaded in /etc/php5/conf.d/ for example.

PHP OPcache configuration

When setting the PHP directive opcache.save-comments to 0 in your php.ini you need to set it to 1 again to avoid problems with the CSRF check / protection of ownCloud.

Source: viewtopic.php?f=26&t=21889&start=10#p62989

Webserver WebDAV modules

OwnCloud brings it's own WebDAV PHP implementation (SabreDAV). Enabling the WebDAV module of your webserver can cause many problems with OwnCloud. This are the WebDAV modules of the most common webservers:

Apache

NginX

Lightttpd

IIS

On Mountain Lion

Webserver security modules

Some webserver security modules are also known to be problematic when running on your webserver:

mod_evasive
mod_security
libapache2-mod-php5filter installed instead of libapache2-mod-php5 (php5filter don't pass all needed methods to PHP)

Other modules
mod_deflate (viewtopic.php?f=4&t=15604#p40211)
mod_pagespeed when having upgrade problems

Problematic server configurations

Some tutorials recommending adding the following lines for "security" or "performance" reasons to your /etc/apache2/conf.d/security on Ubuntu:

Code: Select all
Header unset ETag
FileETag None


Those changes will break the ownCloud sync client and will cause an "The server did not provide an Etag" or "No E-Tag received from Server" error in the client. (Thanks to blitt001 for reporting this)

You need to remove those lines to be able to work with the sync client.
Last edited by Rancor on Mon Jun 30, 2014 11:50 am, edited 8 times in total.
Reason: Added node about missing etag problem, Added warning about mod_spdy (SPDY), Added infos for PHP OPcode
*mostly inactive*
Rancor
OwnCloud master
 
Posts: 7591
Joined: Sat May 26, 2012 2:00 pm
ownCloud version: 6.0.4
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Known problems with php and webserver modules

Postby enterpincode » Wed Jan 02, 2013 10:59 pm

Hi,

When I paste the code to disable the eAccelerator the install shows fatal server error. So thats sadly no option.

I'm going to try a new install and see how it goes with the client under windows 8.

If you have a new idea, I'd love to give it a try

Thanks!!
enterpincode
Newbie
 
Posts: 6
Joined: Wed Jan 02, 2013 1:25 pm

Re: Known problems with php and webserver modules

Postby RandolphCarter » Thu Jan 03, 2013 1:21 am

When I paste the code to disable the eAccelerator the install shows fatal server error. So thats sadly no option.

Could you check in the server log what the actual error message is?
RandolphCarter
Inventory
 
Posts: 4017
Joined: Wed May 30, 2012 7:42 am
ownCloud version: 6.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Known problems with php and webserver modules

Postby Rancor » Thu Jan 03, 2013 11:37 am

Yes, when you're getting an error it's always useful to post this error message instead of just writing that you're getting one.

Instead of the settings like described in the linked article you can disable the whole extension. Where this extension is loaded depends on your installation / system / used distro. Have a look at this article how the extension is loaded:

https://github.com/eaccelerator/eaccele ... ccelerator

On debian this .so file is loaded in /etc/php5/conf.d/
*mostly inactive*
Rancor
OwnCloud master
 
Posts: 7591
Joined: Sat May 26, 2012 2:00 pm
ownCloud version: 6.0.4
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: Known problems with php and webserver modules

Postby plbee » Mon Mar 18, 2013 12:20 am

There is a module mod_auth_apple available on Mac OS X servers which is doing the Basic Auth like on an apache server. Disable this module.


thank you for this info (hoping this is why it doesn't work) but how do you disable this function on Mountain lion server ? can't find anything about it
plbee
Newbie
 
Posts: 1
Joined: Mon Mar 18, 2013 12:17 am
ownCloud version: 5.0.0
Webserver: Apache
Database: MySQL
OS: Mac OS X Server

Re: Known problems with php and webserver modules

Postby Rancor » Mon Mar 18, 2013 10:02 am

Don't know anything about the configuration of apache on mac os x. But maybe you will find the needed informations at this article:

http://www.macdevcenter.com/pub/a/mac/2 ... e_six.html

or in the documentation of apache.
*mostly inactive*
Rancor
OwnCloud master
 
Posts: 7591
Joined: Sat May 26, 2012 2:00 pm
ownCloud version: 6.0.4
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.5.x


Return to FAQ

Who is online

Users browsing this forum: No registered users and 3 guests