Hi,

I've just installed the OwnCloud package from the OwnCloud CentOS repos
[1] and recognized, that all files are going to /var/www/html/owncloud.
I could not find anything relevant on this mailing list's archives, but
I am interested in why that path was chosen, since it does not comply
with other PHP web application packages from the official CentOS repos.

All PHP based web application packages of CentOS (and also Fedora) I
know of, are separated into code and data. The code is being installed
to /usr/share/<appname> and the data to /var/lib/<appname>. The
application is then configured to be served by Apache httpd via an
Alias directive. This is the case for e.g. phpMyAdmin, phpPgAdmin,
nagios, drupal7, etc. Even the package owncloud shipped by CentOS
itself follows that structure.

I can see many advantages of this deployment strategy, but I only want
to highlight one at this point: consistency with other packages.

Nevertheless I can see some disadvantages in deploying the complete app
to /var/www/html, some of which also made me write this e-mail:

Since /var/www/html is the default DocumentRoot of Apache httpd on
CentOS, one (like me) might use it for other purposes, like serving
plain static files, which do not require any kind of scripting
processor. In my case I even disabled PHP processing on
complete /var/www/html, since its only used to store and serve static
web files. It would require to reconfigure my complete web server to
use the CentOS OwnCloud package.

I'd really appreciate the idea of having packages for web applications
like OwnCloud, since it makes upgrading very easy. Nevertheless I am
unable to use this package, since deploying OwnCloud to /var/www/html
is not an option for me.

Manuel

[1] 
http://download.opensuse.org/repositories/isv:/ownCloud:/community/CentOS_CentOS-6/
_______________________________________________
Packaging mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/packaging

Reply via email to