On Tue, Dec 15, 2020 at 3:42 AM Ralf Lang <lang@b1-systems.de> wrote:
Am 15.12.2020 um 09:39 schrieb Eric Schirra:
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.
We had the argument for and against /srv/www for several years. I don't really feel any side of the argument is superior. We should settle for one or the other and work out the details on how to implement it and document that, not go back to the general question time and again.
Using /srv in packages breaks their usability for MicroOS setups (e.g. openSUSE MicroOS web app appliance images, etc.). So it is strongly discouraged that applications install files into /srv. -- 真実はいつも一つ!/ Always, there's only one truth!