Pages : 1
#1 Le 17/07/2015, à 21:15
- abecidofugy
[Résolu] Problèmes de droits avec Owncloud
Bonjour,
J'ai fait la mise à jour vers la nouvelle version d'Owncloud. Je suis tombé sur une page blanche, je me suis dit de suite que ça devait être un problème de droits. J'ai donc appliqué ce script en faisant un : sudo sh monscript.sh
#!/bin/bash
ocpath='/var/www/owncloud'
htuser='www-data'
htgroup='www-data'find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750chown -R root:${htuser} ${ocpath}/
chown -R ${htuser}:${htgroup} ${ocpath}/apps/
chown -R ${htuser}:${htgroup} ${ocpath}/config/
chown -R ${htuser}:${htgroup} ${ocpath}/data/
chown -R ${htuser}:${htgroup} ${ocpath}/themes/chown root:${htuser} ${ocpath}/.htaccess
chown root:${htuser} ${ocpath}/data/.htaccesschmod 0644 ${ocpath}/.htaccess
chmod 0644 ${ocpath}/data/.htaccess
Du coup, fini la page blanche, mais j'ai ce message d'erreur :
Impossible d’écrire dans le répertoire « config » !
Ce problème est généralement résolu en donnant au serveur web un accès en écriture au répertoire de configuration.
J'ai fait un chmod -R 777 config/ et j'ai à nouveau la page blanche. J'ai réappliqué mon script et à présent j'attends vos lumières. Merci !
//EDIT : j'ai regardé les logs pour le domaine, et j'ai ça :
2015/07/17 14:14:11 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/styles.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/styles.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/fixes.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/fixes.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227415 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/header.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/header.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/mobile.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/mobile.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227417 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/icons.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/icons.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/fonts.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/fonts.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/apps.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/apps.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/multiselect.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/multiselect.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227415 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/jquery-ui/themes/base/jquery-ui.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/jquery-ui/themes/base/jquery-ui.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/jquery-ui-fixes.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/jquery-ui-fixes.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227417 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/jquery-tipsy.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/jquery-tipsy.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/css/jquery.ocdialog.css" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/css/jquery.ocdialog.css?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/jquery/jquery.min.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/jquery/jquery.min.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/jquery-migrate/jquery-migrate.min.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/jquery-migrate/jquery-migrate.min.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227415 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/jquery-ui/ui/jquery-ui.custom.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/jquery-ui/ui/jquery-ui.custom.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/underscore/underscore.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/underscore/underscore.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227417 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/moment/min/moment-with-locales.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/moment/min/moment-with-locales.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/handlebars/handlebars.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/handlebars/handlebars.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:12 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/blueimp-md5/js/md5.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/blueimp-md5/js/md5.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/placeholders.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/placeholders.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/jquery-tipsy.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/jquery-tipsy.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/compatibility.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/compatibility.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/jquery.ocdialog.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/jquery.ocdialog.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/oc-dialogs.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/oc-dialogs.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/js.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/js.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:13 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/l10n.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/l10n.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/octemplate.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/octemplate.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/l10n/fr.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/l10n/fr.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/eventsource.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/eventsource.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/config.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/config.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/oc-requesttoken.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/oc-requesttoken.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/apps.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/apps.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227417 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/search/js/search.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/search/js/search.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227416 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/vendor/snapjs/dist/latest/snap.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/vendor/snapjs/dist/latest/snap.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227419 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/placeholder.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/placeholder.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:14 [crit] 1888#0: *227418 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/jquery.avatar.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/jquery.avatar.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:15 [crit] 1888#0: *227412 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/js/avatar.js" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/js/avatar.js?v=0888c86f50cd2284f93dce53b7ef9bfe HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
2015/07/17 14:14:15 [crit] 1888#0: *227415 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/img/logo.svg" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/img/logo.svg HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/core/css/h … 53b7ef9bfe"
2015/07/17 14:14:15 [crit] 1888#0: *227417 stat() "/home/admin/web/cloud.mondomaine.com/public_shtml/core/img/breadcrumb.svg" failed (13: Permission denied), client: 85.25.45.214, server: cloud.mondomaine.com, request: "GET /core/img/breadcrumb.svg HTTP/1.1", host: "cloud.mondomaine.com", referrer: "https://cloud.mondomaine.com/"
Merci de votre aide.
//EDIT : en fait, il fallait mettre htuser='admin' au lieu de laisser à htuser='www-data'
C'est parce que je tourne avec Vesta Control Panel.
Dernière modification par abecidofugy (Le 19/07/2015, à 17:11)
KDE neon pour le plaisir d’avoir un O/S moderne et puissant et Firefox Nightly comme navigateur. Aussi sous Windows 11 pour une partie de mon travail…
Hors ligne
Pages : 1