I have installed nextcloud multiple times, each time it is the same it installs properly but i get a login loop and can’t initially login, and it is in a login loop. I am using Slackware 64 14.2-current Apache 2.4.47 php 7.4.18 mysql/mariadb 10.6.0. I used the following steps to install nextcloud.
- Downloaded it to my home directory
- sudo mv nextcloud-22.2.0.tar.bz2 /var/www/htdocs
- cd /var/www/htdocs
- sudo tar xvf nextcloud-22.2.0.tar.bz2
- sudo chown -R www-data:www-data nextcloud
- sudo cd nextcloud
- sudo mkdir data
- sudo chown -R www-data:www-data apps data config
- sudo chmod -R g+w apps data config .htaccess
- sudo mysql -u root -p
- CREATE USER ‘username’@‘localhost’;
- GRANT ALL PRIVILEGES ON nextcloud.* TO ‘username’@‘localhost’ IDENTIFIED BY ‘password’;
- FLUSH PRIVILEGES;
- \q;
- http://192.168.0.250/nextcloud
I put in the admin username/password, select mysql/mariadb and fill in database name database
user, database password host as localhost:3306 click next and it fully installs. then it goes to http://192.168.0.250/nextcloud/index.php/login?redirect_url=/nextcloud/index.php/core/apps/recommended if i put in admin username and password it keeps loading this page. Any help on this matter would be greatly appreciated.