I’m a beginner in Linux and Server configuration,
I have a problem to acces to this he says he can’t write on the htaccesstest.txt because I don’t have the file, where can be the problem ? The file is in an other folder ? How to fix it ?
have you done this lines during installation ?
sudo chown -R www-data:www-data /var/www/nextcloud/
sudo chmod -R 755 /var/www/nextcloud/
( set your access path to nexcloud directory instead of /var/www/nextcloud/)
if yes try this in the directory of nextcloud server :
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
First, thank for you reply, now the first problem is solved but I have an other problem, I never use a database or configure one.
And now I have an other error :
I think it’s because I don’t put the right thing in the case input and i don’t know what I need to enter, if you have any link to a precise manual to know what we need to enter in each case, I would be very grateful. I don’t find in the nextcloud docs where they explain this.
Have a nice day !
sudo apt-get install mariadb-server mariadb-client
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Enter password
Re-enter new password: Repeat password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
sudo mysql -u root -p
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER ‘user’@‘localhost’ IDENTIFIED BY ‘new_password_here’;
GRANT ALL ON nextcloud.* TO ‘user’@‘localhost’ IDENTIFIED BY ‘user_password_here’ WITH GRANT OPTION;
replace words with your own : nextcloud / user / user_password_here
after this on the web page enter the information in this case :
the user of the database: user
To be honest: If you have NO knowledge about running webfacing servers and databases maybe you shouldn’t do that?
I guess the chance is given that your system will be abused…
Thank you your help, my nextcloud finally work !