Iâm currently trying to install Nextcloud on my VPS using nginx. Iâve been using the configs from Nextcloudâs nginx manual page. I first tried configuring it to work in a subdirectory using the second example, but from what I could understand, it doesnât seem like I can have two config files that point at the same subdomain, so for example I canât have personal.example.com/nextcloud and still use personal.example.com for other things. I might be wrong about that, but I decided to give up on that approach for now.
So next, I tried giving it a subdomain of its own - nextcloud.personal.example.com. I copied the first config example from the docs, changed the server_name, root, ssl_certificate, and ssl_certificate_key values, and generated a new certificate with certbot for the new subdomain. After I re-started nginx, I tried to access the index.html page to finish the installation. It re-directed me to index.php, so that part works, but index.php then threw up the default âan error occurred.â page that comes with nginx. I checked the nginx error log at /var/log/nginx/error.log, but there was no entry for that error.
As far as I can tell, I edited the config file correctly, since https works, and index.html works just fine as well. Iâm fairly sure I didnât change anything else, and without a logged error, I have no idea where to go with this.
Iâve seen a thread that suggested removing âfastcgi_param front_controller_active true;â from the config file might help, but there was no change when I tried that.
This error is generating, if your config file is demarged. Please, send your /nextcloud/config/config.php file here, or on our mail: corp@andromedacenter.com.
There is no âconfig.phpâ file in my config folder. Thereâs just a âconfig.sample.phpâ. I assume thatâs because I couldnât even begin the installation yet, so the config file hasnât been generated yet.
Iâm sorry, but how could that possibly be a problem? When you unzip the Nextcloud server archive file, it doesnât come with a âconfig.phpâ file. It has to be generated later during the installation. Since I canât even start the installation, it would be very strange if I did have a âconfig.phpâ file somehow. Re-installing my entire system (with both nginx and Apache for some reason) wouldnât change that one bit, unless Iâm seriously missing something.
The problem is nginx not support an htaccess rulles. If you need to start installation process, you can install Apache2 server to slove this problem. We recomendate you, to using free VESTACP Panel. https://vestacp.com/
So youâre saying thereâs no way to get this to work with nginx? That sound extremely unlikely, there are many people whoâve managed to install Nextcloud with nginx.
Do you have php installed and does the upstream_handler in your nginx configuration pointing to the correct socket (or port) of your installed php version?
I do have php installed. I made sure to install all the dependencies that are listed in the docs. I even ran phpinfo() to make sure everything is set up properly, and it worked fine.
I think the problem is that you have been looking at an old tutorial. A lot of things changed in the new nginx mainline version, especially directories.
for example,
Your website configuration is located at /etc/nginx/conf.d/default.conf
Your website HTML files are located at /usr/share/nginx/html