# PHP upgrade causes internal server error - related to webdav

**URL:** <https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733>\
**Category:** ℹ️ Support\
**Tags:** php73, php, nginx, webdav, php72\
**Created:** [December 7, 2019, 1:44pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733 "2019-12-07T13:44:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadlec.ondr](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kadlec.ondr/32/10706_2.png) [@kadlec.ondr](https://help.nextcloud.com/u/kadlec.ondr)\
**Post date:** [December 7, 2019, 1:44pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/1 "2019-12-07T13:44:31Z")

</div>

Hi everyone,

I’ve just run into an error while trying to update to PHP 7.3, now I have no idea what could be wrong. It seems like I have some issue with WebDav (there are about 30 users using Nextcloud windows desktop client).

Everything important should be noted bellow. I really appreciate any help. Thank you very much 🙂

Nextcloud version: 16.0.3  
Operating system and version: Ubuntu 18.04.2 LTS  
nginx version: nginx/1.14.0 (Ubuntu)  
PHP version: 7.2 to be replaced with 7.3

- PHP 7.2.24-0ubuntu0.18.04.1
- PHP 7.3.11-1+ubuntu18.04.1+deb.sury.org+1

The issue you are facing: I am facing an internal server error after changing my nginx `nextcloud.conf` config file. Only change I do is replacing outdated `php-fpm` socket like following:  
`#fastcgi_pass unix:/run/php/php7.2-fpm.sock; #old fastcgi_pass unix:/run/php/php7.3-fpm.sock; #new`  
Both files exists, I’ve checked that.

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

1. Change php7.2-fpm.sock to php7.3-fpm.sock file reference in nginx web config file.
2. Run `nginx -t` - that says everything is fine.
3. Restart nginx.
4. Load nextcloud in web-browser.
5. You will get following error:

```auto
Internal Server Error 
The server encountered an internal error and was unable to complete your request. 
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log. 

```

The output of your Nextcloud log in **Admin \> Logging** :

```auto
{"reqId":"--reqID--","level":3,"time":"2019-12-07T12:24:05+00:00","remoteAddr":"--IPaddress--","user":"--","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/--username--/","message":"Error: Class 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' not found at /usr/share/nginx/nextcloud/remote.php#57","userAgent":"Mozilla/5.0 (Windows) mirall/2.6.0stable-Win64 (build 20190927) (Nextcloud)","version":"16.0.3.0","id":"--id--"}

```

– That refers to this in `/usr/share/nginx/nextcloud/remote.php`:

```auto
...
if ($isXmlContentType === 0) {
                // fire up a simple server to properly process the exception
                $server = new Server();
                if (!($e instanceof RemoteException)) {
                        // we shall not log on RemoteException //LINE 56
                        $server->addPlugin(new ExceptionLoggerPlugin('webdav', \OC::$server->getLogger())); //LINE 57
                }

...

```

The output of your nginx/system log in `/var/log/nginx/error.log`:

```auto
2019/12/07 13:24:05 [info] 9963#9963: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63

```

– this refers to _“php7.2-fpm.sock”_ to _“php7.3-fpm.sock”_ change in `nextcloud.conf` config file.

I hope that I expressed clearly all important things, English is not my mother language so if you have any questions I’m happy to answer them.

---

<div class="post-metadata">

**Author:** ![muppeth](https://help.nextcloud.com/user_avatar/help.nextcloud.com/muppeth/32/3504_2.png) [@muppeth](https://help.nextcloud.com/u/muppeth)\
**Post date:** [December 9, 2019, 9:52am UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/2 "2019-12-09T09:52:41Z")

</div>

HI,  
Try to enable slowlog in php and see what gets logged (set it to 10 seconds). Something tells me it’s a Hasher function. Check this thread:

> <https://github.com/nextcloud/server/issues/17241>
>
> Steps to reproduce
> Have php-fpm 7.3.8 or 7.3.9 installed. Versions prior to these work fine.
> Initiate the syncing of an app on a...

---

<div class="post-metadata">

**Author:** ![kadlec.ondr](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kadlec.ondr/32/10706_2.png) [@kadlec.ondr](https://help.nextcloud.com/u/kadlec.ondr)\
**Post date:** [December 25, 2019, 7:05pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/3 "2019-12-25T19:05:51Z")

</div>

Hello,  
Thanks for your response but I have a stupid question I couldn’t google myself - how to enable showlog in php?

All I get in `/var/log/php7.3-fpm.log` is this:

```auto
[23-Dec-2019 00:07:46] NOTICE: error log file re-opened

```

And in `php.ini ` file I already have  
`error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT`

There might be also be a problem with php7.3 itself asi I get this warning while executing php7.3 in terminal:  
`PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20180731/redis.so (/usr/lib/php/20180731/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20180731/redis.so.so (/usr/lib/php/20180731/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0`  
But I thing this is another problem which I should solve for php7.3.

Once again, thank you very much and I wish you a pleasant rest of Christmas.

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [December 26, 2019, 9:24am UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/4 "2019-12-26T09:24:46Z")

</div>

> [@kadlec.ondr](#):
>
> PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’

There are ususally two PHP configurations impacted the PHP web component and the PHP cli component (command line interface). For both you have to make sure that the Redis cache is up-and-running.

For the PHP web component you can create e.g. a file name info.php, which contains the following code line: `<?php phpinfo() ?>`. If you open this file with your web browser, it should show detailed configuration information.  
For the PHP cli component, you can run the command like this: `php -r 'phpinfo();'`.

Compare the pathes of the loaded modules to make sure you are using the right modules associated to the php version. There have been many similar reports in the past where users tried to upgrade the php version and ended in mixed-up module pathes etc.

The search function of this forum is very useful when analysing this kind of problems 😉

---

<div class="post-metadata">

**Author:** ![kadlec.ondr](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kadlec.ondr/32/10706_2.png) [@kadlec.ondr](https://help.nextcloud.com/u/kadlec.ondr)\
**Post date:** [February 15, 2020, 2:46pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/5 "2020-02-15T14:46:00Z")

</div>

After all, I’ve fixed this issue by upgrading php7.3 to newer version recently, rebooting the server and then it started working.

Anyway j-ed, thanks for your advice. 🙂

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 12:23pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/6 "2024-12-04T12:23:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 4:06pm UTC](https://help.nextcloud.com/t/php-upgrade-causes-internal-server-error-related-to-webdav/65733/7 "2024-12-11T16:06:25Z")

</div>


