#help
1 messages · Page 1 of 1 (latest)
How to get support?
- Search for similar posts first!
- What have you tried already?
- Where the error has happened?
- Provide logs!
Dont's (will get you muted):
- Post some image or text without context.
- Post a command you ran without the output,
- Post just the output.
- Reply with "i already did that" (See: How to get Support)
- Post every word as a new message.
- Ping Staff.
- Post the same message in multiple channels.
Get Logs:
Laravel / CP.GG: tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Installer: tail -n 100 /var/www/controlpanel/public/install/logs/installer.log | nc pteropaste.com 99
(NGINX: Are usually in /var/log/nginx/ and got the (sub)domain in the name. There are error and access logs)
Logs:
https://pteropaste.com/pa7e
The problem" My problem is when i go to my dash
https://dash-lylanodes.zentrixcode.com
it says Nginx thats it. It wont let me go to install the dash
i did look
server {
listen 80;
root /var/www/controlpanel/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name dash-lylanodes.zentrixcode.com;
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;
}
There are many ways to add SSL to your site. A simple solution is to use certbot from let’s encrypt. cerbot will automatically install the certificates for you and keep your SSL certs up to date!
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo certbot --nginx -d yourdomain.com```
https = Secure
I did that
No
didnt change nginx config file
server {
listen 80;
root /var/www/controlpanel/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name dash-lylanodes.zentrixcode.com;
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;
}
i just did
I dont see ssl here for http
it didnt work ig
If everything had been done correctly, it would have worked
should it look like this
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/controlpanel.app-error.log;
access_log /var/log/nginx/controlpanel.app-acces.log;
access_log on;
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; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/cpgg.url/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/cpgg.url/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}server {
if ($host = cpgg.url) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name cpgg.url;
listen 80;
return 404; # managed by Certbot
}
Yes
Can you please show /etc/nginx/sites-enabed/ directory?
Are you sure?
ls /etc/nginx/sites-enabled
In this case, you don't have nginx. Please take a closer look at the documentation.
I do
If you had nginx, you would have this directory
look
Ok, run ls command
I need to see the contents of the /etc/nginx/sites-enabled/ directory, not /sites-available/
I don't see ctrlpanel.conf here. Remove default, and enable ctrlpanel configuration
sudo ln -s /etc/nginx/sites-available/ctrlpanel.conf /etc/nginx/sites-enabled/ctrlpanel.conf
rm -rf /etc/nginx/sites-enabled/default
nginx -t && nginx -s reload ```
There are many ways to add SSL to your site. A simple solution is to use certbot from let’s encrypt. cerbot will automatically install the certificates for you and keep your SSL certs up to date!
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo certbot --nginx -d yourdomain.com```
:warning: Do not ping staff members for support! :warning:
A staff member will try to help you as soon as possible but be patient!
Go to install
bad gatway
tail -n 100 /etc/nginx/sites-enabled/ctrlpanel.conf | nc pteropaste.com 99
Try systemctl restart php8.1-fpm
Failed to restart php8.1-fpm.service: Unit php8.1-fpm.service not found.
Strange, can you please send nginx logs?
tail -n 200 /var/log/nginx/error.log | nc pteropaste.com 99
try apt install php8.1-fpm
Yep
WORKS TYSM
when i press sumbit it goes to
This page isn’t working right nowdash.zentrixcode.com can't currently handle this request.
HTTP ERROR 500
after i enter db pass
i think i forgot it
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Check if MySQL user password is correct
Do you not know the password that you set?
i forgot because i was doing a lot
How do i reset it.
mysql -u root -p
ALTER USER 'controlpaneluser'@'127.0.0.1' IDENTIFIED BY 'newpassword';
FLUSH PRIVILEGES;
EXIT;```
I resetted and retried i put it as lylanodes
it didnt work
- Do not share the password with anyone, it may be used against you.
tail -n 100 /var/log/nginx/error.log | nc pteropaste.com 99
You don't have all the necessary php modules installed
:warning: Do not ping staff members for support! :warning:
A staff member will try to help you as soon as possible but be patient!