We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
[SOLVED] Owncloud with Vesta Control Panel (rights problem)
[SOLVED] Owncloud with Vesta Control Panel (rights problem)
Hello,
I have rights problem with my Owncloud installation (after a upgrade).
I have done the new upgrade to the last version of Owncloud. Then I have a white page again. So I thought it's a right problem. Then I have apply this script by doing a : sudo sh myscript.sh
//EDIT : I have these logs sur my domain :
//EDIT2 :
On Owncloud forum, they have ask me these questions : What is your webserver user? You are sure that it is www-data? You config looks like you are using a Admin Panel, they often run php as cgi under a different user. Did you use the test-script with whoami (see the documentation where you found the script)?
This line : <?php echo exec('whoami'); ?> give me the name : admin
So I have change the script with this :
I have refresh the Owncloud page, and now I have a white page.
Someone can help me, please?
I have rights problem with my Owncloud installation (after a upgrade).
I have done the new upgrade to the last version of Owncloud. Then I have a white page again. So I thought it's a right problem. Then I have apply this script by doing a : sudo sh myscript.sh
The white page dispear and I have now this message :#!/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 0750
chown -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/.htaccess
chmod 0644 ${ocpath}/.htaccess
chmod 0644 ${ocpath}/data/.htaccess
I have done a : chmod -R 777 config/ and the white page was back again. I have now apply a second time the script, but now I'm waiting for your help, I don't know what to do. Thanks !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.
//EDIT : I have these logs sur my domain :
Thanks for your help.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/"
//EDIT2 :
On Owncloud forum, they have ask me these questions : What is your webserver user? You are sure that it is www-data? You config looks like you are using a Admin Panel, they often run php as cgi under a different user. Did you use the test-script with whoami (see the documentation where you found the script)?
This line : <?php echo exec('whoami'); ?> give me the name : admin
So I have change the script with this :
I have apply the script with root rights.#!/bin/bash
ocpath='/var/www/owncloud'
htuser='admin'
htgroup='www-data'
find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
chown -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/.htaccess
chmod 0644 ${ocpath}/.htaccess
chmod 0644 ${ocpath}/data/.htaccess
I have refresh the Owncloud page, and now I have a white page.
Someone can help me, please?