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
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
|
Details
Description:
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: https://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size 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)
Monday, 22 April 2019, 14:30 GMT
Reason for closing: Fixed
Additional comments about closing: open_basedir removed (in svn/trunk only)