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!