Fresh installation of nextcloud

Hello,

I just had a fresh install of nextcloud and I am getting this warning…

There are some errors regarding your setup.

  • Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root.

The only tweak that I made on the script is the admin username btw.

Thoughts? Thanks in advance.

I think i found the solution, I just changed the http and https ports.

@chrewt thank you for being part of our community.

I was able to test the script and see the error you are getting. Nextcloud changed the way they do or perform configuration checks and this leads to this error. The 29.0.0.1 update comes with a reported bug where nextcloud wants php to handle redirects and if you are doing redirects with apache2 or nginx it throws that error you see. I modified the script to add that in the config.php file and modified apache2 config not to do port 80 redirect since php is doing it.

When you rerun the script and do a fresh install the error will disappear.

If you dont want to rerun the script you can run the commands in line 302 to 304 and also replace your apache2 nextcloud config with line 152 to 230.

Please provide feedback!

My apologies for the delayed response, i was modyfying the script and doing testing. I am glad you got a temp work around. However, a permanent solution is included above.

I did try the new script and working flawlessly. Thank you very much!

Great! Thanks for the feedback. I will go ahead and close this as resolved.