
On Tuesday 2020-12-15 08:43, Ralf Lang wrote:
Am 15.12.2020 um 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? in my opinion, PHP code should not go into a runtime specific directory. It is feasible to run multiple versions of PHP on one machine, even though one would look at containers today. so usr/share/php without any version should be correct.
I would argue that, in practice, /usr/share/<theusualpackagename> (not /usr/share/php) is used, and the admin is then supposed to add a httpd configuration fragment to his apache/nginx that maps it into the URI space. Kind of like how the server:mail:kopano/kopano-webapp package does it.