Hi, Am 15.12.2020 um 09:57 schrieb Eric Schirra:
Am 2020-12-15 09:41, schrieb Ralf Lang:
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.
I does not know about the old discussion. And i don't forbid my mouth. Sure, that's not my intention. I just think we should settle it either way. /usr/share has hunderd of packages/application in it. We would have no overview wath is a "normal package" and what is a web-package.
Why would I care for such an overview? I usually care for the application I want to work with - and if it's installed. We had a tradition in SUSE and debian to symlink configs to /etc/ - which also had its times of popularity and unpopularity - and treat applications as applications, independent of ruby, php, perl, python. This would argue for using fhs-inspired layouts, putting application code in /usr/somewhere and copying/linking cli to /usr/bin. The other POV is, web apps are not apps, they belong into /srv/www and they should not be treated as apps (/etc, /usr/bin) Either is good but we should have it consistent and predictable.
This is for people which have to much time. But not for people which really must work.
-- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537