Maintenance:Install cli failed when performing first time install

Hello, I’m trying to set up a first time installation of nextcloud on a Nginx webserver and I managed to reach the point of entering the admin credentials on the web interface. Upon entering everything and clicking the install button, I was presented with an Internal server error message. I dug into the problem further and found that when using the cli occ “maintenance:install” function, this error was thrown “ParseError: syntax error, unexpected identifier “mysql” in /var/www/nextcloud/core/Command/Maintenance/Install.php:151”
When I opened the install.php file to investigate that, no changes I made to the line(changed the value of the database name, admin credentials, user credentials, type of database, etc) made any difference to the above error
After searching for similar issues, I tried disabling SELinux which went nowhere because as far as I can tell it was never on my machine in the first place, and removing the apache2 server that debian auto-installs sometimes to free up the ports but in hindsight that was unrelated.

The OS I’m using is Debian 12 bookworm, running on a VPS, with a nginx webserver on top of that. I’ve purged the vps once, so both nextcloud and the nginx installations are as fresh as they can be.

Is there something obvious I haven’t tried yet? Thanks in advance!

What options did you specify in the wizard when it failed?

What command-line did you use when trying use occ maintenance:install?

If you’re installing from scratch via the Archive method (sounds like it) and not already fairly familiar with Nextcloud, I would personally suggest you take the Apache path.

You can always swap Nginx in later. If you’re going to install with Nginx instead of Apache, you’ll need to deploy the Nginx config file. Has that already been done?

https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html

If I understand the question, I’m using a bash terminal, and I used the bare minimum for options when using the command: -u, and php. I do have a Nginx config file, but after all this I’m not confident that I didn’t muck something up in there. The directory pathing should be accurate though, I checked that a couple times

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.