Web Install error set data folder to 777

Ubuntu 18.04
NXC 13.x
PHP 7.2
Maria DB

When creating the data folder /opt/nextcloud I did a chmod to 777. Final part of setup after entering passwords and selecting “Next” An error displayed to change data folder to 0770. went ahead and did that but now get this error below on the web connection and can not run install from terminal.

Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.

Well, you have to give us a little bit more than that. :slight_smile: Please post the apache or nginx log. Also the php error.log might be of interest here.

cheers
t.

Figured it out by changing ownership of data directory to www-data user

chown -R www-data:www-data /var/www/nextcloud/data

Thank You