You are not logged in.

#1 2011-08-01 14:36:36

awayand
Member
Registered: 2009-09-25
Posts: 398

/srv/http/mywebapp vs /usr/share/webapps/mywebapp

Hello everyone,

the Archlinux Packaging Standards say that no package should include "/srv".

Does that mean that I can still package an "/srv/http/myWebApp"?

Is there some standard out there that defines that webapps should go into "/srv/http/" or "/usr/share/webapps/"?

After a lot of googling and finding old discussions dating back to 2008, 2007 and even 2005, it seems to me that /srv/http is the most sensible option for installing webapps like phpmyadmin, wordpress, etc., but I still see webapps getting installed into /usr/share/webapps and then stuff getting symlinked from /srv/http which seems very unclean to me...

Thanks for enlightening me!

Offline

#2 2011-08-01 23:02:15

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: /srv/http/mywebapp vs /usr/share/webapps/mywebapp

awayand wrote:

...it seems to me that /srv/http is the most sensible option for installing webapps like phpmyadmin, wordpress, etc., but I still see webapps getting installed into /usr/share/webapps and then stuff getting symlinked from /srv/http which seems very unclean to me...

I agree 100% personally, but unfortunately the consensus seems to be that they should go into /usr and get symlinked sad

Having said that, it's your computer so you can put it where you like... I still put everything in /srv/http/ on my boxes

Offline

#3 2011-08-02 02:33:50

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: /srv/http/mywebapp vs /usr/share/webapps/mywebapp

thanks for agreeing with me, nothing feels better than being understood. I remember seeing somewhere that the FHS standard defines /usr/ (or was it /usr/share?) to be read-only, shareable data, which makes sense to me and is the primary reason why I'd think a webapp should not be there. And then there are the config files which are even less justified in such a directory. Unless, of course, a webapp is extracted/installed into /usr/share/webapps and then simply copied in its entirety into /srv/http and left as a read-only copy for reference in /usr/share, which would be a good compromise for me...

Offline

#4 2011-08-02 06:18:06

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: /srv/http/mywebapp vs /usr/share/webapps/mywebapp

awayand wrote:

I remember seeing somewhere that the FHS standard defines /usr/ (or was it /usr/share?) to be read-only, shareable data, which makes sense to me and is the primary reason why I'd think a webapp should not be there.

Yes, the FHS states that /usr should be read-only, that's the main reason I think it should be in /srv
EDIT:

FHS wrote:

/usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere.

awayand wrote:

Unless, of course, a webapp is extracted/installed into /usr/share/webapps and then simply copied in its entirety into /srv/http and left as a read-only copy for reference in /usr/share, which would be a good compromise for me...

Except that kind of defeats the purpose of installing it with a package manager... You may as well download the tarball directly and just keep a copy of the tarball somewhere as a reference.

Last edited by fukawi2 (2011-08-02 06:20:45)

Offline

#5 2011-08-02 06:42:26

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: /srv/http/mywebapp vs /usr/share/webapps/mywebapp

right but pacman allows me to track what is installed...

Offline

Board footer

Powered by FluxBB