Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62363 - [nextcloud] slow on apache with example config, because php realpath caching becomes disabled

Attached to Project: Community Packages
Opened by Oliver Mangold (omangold) - Tuesday, 16 April 2019, 10:05 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 22 April 2019, 14:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



The example apache config file for nextcloud /etc/webapps/nextcloud/apache.example.conf (coming with the arch package, not upstream) contains the line:

php_admin_value open_basedir "/srv/http/:/dev/urandom:/tmp/:/usr/share/pear/:/usr/share/webapps/nextcloud/:/etc/webapps/nextcloud"

Setting open_basedir prevents PHP from caching realpath lookups, which can have a serious performance impact. See:

Additional info:
* package version(s)

nextcloud 15.0.7-1

Steps to reproduce:

- setup nextcloud on top of Apache http server
- measure http response time from browser

Depending on machine, responses can be way slower with this option set. E.g. for a VM I run it on, delay is increased for many responses from <1s to ~10-20s.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 22 April 2019, 14:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  open_basedir removed (in svn/trunk only)