No Permissions in NextCloud

Hello,

I installed the nextcloud via softaculous, and I have the pro version of centos web panel, the problem is that when starting Nextcloud, does not appear folders or files in the site.

And when I try to create a folder or send a file says that I do not have permissions to do so. Can anyone help?

I’ve already tried putting the data folder to 777 but it still does not work.

I have a VPS with 4gb ram, dual core. And thus configuration:
Apache version: Apache/2.4.29
PHP version: 7.1.9
MySQL version: 10.1.31-MariaDB

The data are in home/user/nextclouddata
The website are in home/user/html(something this)/

Some Images:
In this moment I have this warnings in admin panel of nextcloud:


This is what happens when I try to delete notifications on the right side of the screen:

When I drag files to upload, this happens (Translation:You don’t have permission to upload or create files here):

Thanks

Hi,

Can you please do the following:

  • execute the following on command line and post output here:
    ls -l home/user/ | grep -E "nextclouddata|html"
    ps -ef | grep apache | grep -vE “root|grep” | awk ‘{print $1}’ | uniq
    grep -R open_basedir /etc/php*/
  • post your config.php here (remove sensitive data before!!)
    home/user/html(something this)/config/config.php

Could you furthermore fix the other error message regarding opcache (you have to set the suggested values in your php.ini) and your header settings?
What is that regarding “WebDav interface seems to be broken”? Do you have any idea so far, where this is coming from?

<?php $CONFIG = array ( 'instanceid' => '***', 'passwordsalt' => '*****', 'secret' => '*****', 'trusted_domains' => array ( 0 => '****.****', ), 'datadirectory' => '/home/****/****', 'overwrite.cli.url' => 'http://*****.***', 'dbtype' => 'mysql', 'version' => '13.0.0.14', 'dbname' => '*********', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '******', 'dbpassword' => '******', 'installed' => true, );

Your command errors:

[root@4321 /]# ps -ef | grep apache | grep -vE “root|grep” | awk ‘{print $1}’ | uniq
awk: cmd. line:1: ‘{print
awk: cmd. line:1: ^ invalid char ‘▒’ in expression
-bash: $‘grep\342\200\235’: command not found

[root@4321 /]# grep -R open_basedir /etc/php*/
grep: /etc/php*/: No such file or directory

Could you furthermore fix the other error message regarding opcache (you have to set the suggested values in your php.ini) and your header settings? All Values opcache are the same i have

What is that regarding “WebDav interface seems to be broken”? Do you have any idea so far, where this is coming from? No :frowning:

I’ve been able to solve the problem. It was webdav that was not working. I solved the problem the way I found:

Step 1:

You can edit httpd.conf (from Apache Configuration in “Apache Settings”)

Search modules and uncomment the lines (include)

LoadModule alias_module modules/mod_alias.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_user_module modules/mod_authz_core.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so

Step 2:

Syntax OK
dav_module (static)
dav_fs_module (static)
dav_lock_module (static)

If you show like this, okey go to step 3

Step 3:

Replace with these codes:

<Directory "/home/*/public_html"> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory>

Step 4: (for Nextcloud/Owncloud and other cloud app)

Add the bottom of the page

<Limit GET POST> order deny,allow allow from all </Limit> <Limit PUT DELETE> order deny,allow allow from all </Limit>

Step 5:

systemctl restart httpd