On Tue, 2020-12-15 at 09:39 +0100, Eric Schirra wrote:
Am 2020-12-15 08:40, schrieb Arjen de Korte:
According to https://en.opensuse.org/openSUSE:Packaging_PHP
PHP applications should put PHP files under /usr/share/php/{<Vendor Name> or <Application Name>}.
Currently, the /usr/share/php directory is not in the filesystem package and also not provided by PHP{7,8}. Should this directory be provided by PHP{7,8} or should packages create this directory themselves as needed? Or should packages install in the /usr/share/php{7,8} instead? Why should a php-web-application go under this directory? This is totally illogical and not reproducible. For me a web application should be under /srv/www. It's not a "normal" application. It's application which runs under one server.
There is actually a technical argument to all this as well: /srv is a separate btrfs volume. So if a packag installs to /srv/…, then an admin that a snapshot rollback, the RPM database O(in /usr) is being rolled back, referencing the old package, but the files on /srv stay non-rolled back, as it is intentionally split out. /srv is for the admin to populate his data, non-packaged stuff, there we do not want a system-rollback to revert the admin (and potenitally even user data) files. Cheers, Dominique