Just checked the guide. It is a bit old, I hope you did not copy paste â$ wget https://download.nextcloud.com/server/releases/nextcloud-10.0.1.zipâ but took the current ânextcloud-11.0.2.zipâ instead ;).
According to the folder permissions I would recommend to use the script from admin manual which includes a slightly more complete and secure chown/chmod of all folders/files and would look like this, with the chosen folders in the guide:
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
According to your error:
Did you manually check, if the folders âconfigâ and âappsâ are inside the nextcloud folder as expected. Should be as they are definitely part of the archive.
Check that you are surely inside the nextcloud folder, when using âsudo chown www-data:www-data config appsâ as there is no full path given. But I anyway would use the script above, which contains the full path and therefore it doesnât matter where you run it ;).
But again as you are just installing nextcloud:
It is not recommended the leave the data directory inside web root / nextcloud folder. As yours is still empty it is now still easy to move it to another place and adjust the config.php accordingly.
See the security hardening guidance of the admin manual for this and other security recommendations .
âŹ: Ah little down your guide, moving of the data directory is also mentioned