Good morning,
I have made an install of Nextcloud on DO with mariadb and nginx. Iâm accessing it straight from the IP (no domain name) and I have not encryted anything. Nextcloud has been installed into /var/www/nextcloud. It is a fresh install with the db called ânextcloudâ and a mysql user ânextcloudâ.
I got everything working up to the first initial blue screen when we have to create the admin account.
Now the original address 139.xx.xx.xx is refering to http://139.xx.xx.xx/index.php/apps/files/ and I got the
404 Not Found
nginx/1.10.0 (Ubuntu)
php is working (139.xx.xx.xx/info.php is working), nginx is also working (i have pages displaying on other ports (139.xx.xx.xx:3838)
Here is what the nextcloud.log is saying:
{âreqIdâ:âBooqU5vXzjWF669u1HwZâ,âremoteAddrâ:â213.193.33.98â,âappâ:âmysql.setupâ,âmessageâ:âSpecific user creation failed: An exception occurred while executing âSELECT user FROM mysql.user WHERE user=?â with params ["oc_admin"]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user ânextcloudâ@âlocalhostâ for table âuserââ,âlevelâ:3,âtimeâ:â2016-12-09T07:23:26+00:00â,âmethodâ:âPOSTâ,âurlâ:â/index.phpâ,âuserâ:âââ}
{âreqIdâ:âBooqU5vXzjWF669u1HwZâ,âremoteAddrâ:â213.193.33.98â,âappâ:âmysql.setupâ,âmessageâ:âDatabase creation failed: An exception occurred while executing âGRANT ALL PRIVILEGES ON nextcloud . * TO ânextcloudââ:\n\nSQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ânextcloudâ@âlocalhostâ to database ânextcloudââ,âlevelâ:3,âtimeâ:â2016-12-09T07:23:26+00:00â,âmethodâ:âPOSTâ,âurlâ:â/index.phpâ,âuserâ:âââ}
So I know I have an issue with mysql rights, etc. But how can I fix it?
printf âchmod/chown .htaccess\nâ
if [ -f ${ocpath}/.htaccess ]
then
chmod 0644 ${ocpath}/.htaccess
chown ${rootuser}:${htgroup} ${ocpath}/.htaccess
fi
if [ -f ${ocpath}/data/.htaccess ]
then
chmod 0644 ${ocpath}/data/.htaccess
chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess
fi
Then edit the /etc/nginx/site-availabe/default to allow the PHP
Then reload: sudo systemctl reload nginx
Then create the database, user and grant privilege to user
mysql -u root -p
CREATE DATABASE nextcloud;
GRANT ALL ON nextcloud.* to ânextcloudâ@âlocalhostâ IDENTIFIED BY âset_database_passwordâ;
FLUSH PRIVILEGES;