#404 Not Found (/install)

1 messages · Page 1 of 1 (latest)

lyric spear
tacit trellis
#

Is the nginx configuration configured correctly?

lyric spear
#
server {
    listen 80;
    root /var/www/controlpanel/public;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name dash.domain.xyz;
}

server {
    listen 443 ssl http2;
    server_name dash.domain.xyz;

    ssl_certificate /etc/ssl/dash.domain.xyz.pem;
    ssl_certificate_key /etc/ssl/dash.domain.xyz.key;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ .php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
    }

    location ~ /.ht {
        deny all;
    }
}

tacit trellis
#

Have you installed cpgg in the default directory?

tacit trellis
#

Could you please show the contents of the controlpanel folder

lyric spear
#

I even reinstalled /var/www/controlpanel but it didn't help

pale krakenBOT
#

Your panel does not have the right permissions, try giving it some :)
sudo chmod -R 755 /var/www/controlpanel
and
sudo chown -R www-data:www-data /var/www/controlpanel

If you're using the installer, make sure to go back to the beginning and start the installer from step 1

tacit trellis
#

Try this

lyric spear
#

It didn't help

#

I installed controlpanel a bunch of times and everything always worked, right now I wanted to install it and there was a problem
For the first time in all use

tacit trellis
#

Please add this lines to your configuration:

access_log /var/log/nginx/ctrlpanel.app-access.log;
error_log  /var/log/nginx/ctrlpanel.app-error.log error; ```
lyric spear
#

after ssl added

tacit trellis
#

Try to go to the installation page again, then send the logs from the file /var/log/nginx/ctrlpanel.app-error.log

tacit trellis
#

This is acces not error log

lyric spear
#

ops

tacit trellis
#

Lol, I didn't notice it right away

#

You have an incorrect nginx configuration

lyric spear
#

Please send a working

tacit trellis
#
server {
        root /var/www/controlpanel/public;
        index index.php index.html index.htm index.nginx-debian.html;
        server_name cpgg.url;
        
        error_log  /var/log/nginx/ctrlpanel.app-error.log;
        access_log /var/log/nginx/ctrlpanel.app-acces.log;
        access_log off;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        }

        location ~ /\.ht {
                deny all;
        }

listen 443 ssl;
    ssl_certificate <path here>;
    ssl_certificate_key <path here>;

}server {
    if ($host = cpgg.url) {
        return 301 https://$host$request_uri;
    }


        server_name cpgg.url;
    listen 80;
    return 404;
}
#

There are the following errors in your configuration:

  1. You have configured the root directory and index files for http, but not for https.
  2. You allowed to connect to the site via http, which is unsafe. To prevent this, an automatic redirect to https is always configured.
lyric spear
#

THANKS!!!!