#404 Not Found (/install)
1 messages · Page 1 of 1 (latest)
Is the nginx configuration configured correctly?
Yes
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;
}
}
Have you installed cpgg in the default directory?
Could you please show the contents of the controlpanel folder
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
Try this
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
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; ```
after ssl added
Try to go to the installation page again, then send the logs from the file /var/log/nginx/ctrlpanel.app-error.log
This is acces not error log
Please send a working
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:
- You have configured the root directory and index files for http, but not for https.
- You allowed to connect to the site via http, which is unsafe. To prevent this, an automatic redirect to https is always configured.
THANKS!!!!