X2Engine / X2CRM

X2CRM Open Source CRM - PHP
http://www.x2crm.com
342 stars 168 forks source link

504 on install.php #191

Open wind8000 opened 2 years ago

wind8000 commented 2 years ago

Hi,

When I try to load the install.php I get a 504 error.

I use php7.4 and nginx. My nginx config is as followed:

server {
    listen 80;
    listen [::]:80;
    root /var/www/html/x2crm;
    index  index.php;
    server_name  crm.domain.com;

    client_max_body_size 100M;

    location / {
        try_files $uri $uri/ =404;
       }

    location ~ [^/].php(/|$) {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

}

and in the log I get the following error:

[error]: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: crm.domain.com, request: "GET /install.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "crm.domain.com"

Can anyone help me and tell me, where my error is? Thank you.

sotaspaso commented 2 years ago

I don't think the PHP version has anything to do with your issue, but notice that 7.4 is not supported.