Stuck on /admin page on setup!

I installed Grav on my VPS by downloading skeleton (Xcommerce) and then installed admin plugin over it and updated everything.

Now when I go to my URL and try to fill the /admin first form, I get this error:
Oops there was a problem, please check your input and submit the form again.

I’ve tried doing everything.

Here’s my NGINX config:

server {

        root /home/xcom;
        index index.php index.html;

        location /user {
                alias /home/xcom/user;

        location /system {
                alias /home/xcom/system;

        location / {


I’m running the server using PM2:

pm2 start --name=xcom --log-date-format=“YYYY-MM-DD HH:mm A” php – -S localhost:9010 system/router.php

I’ve tried using the PHP config for NGINX but that does not work for me at all. I get 502 using that.

This is the only config that works.

Can someone please help me!