#help

1 messages · Page 1 of 1 (latest)

karmic parrot
#

help

#

help

#

wait heres logs

mossy glenBOT
#

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)

karmic parrot
fiery echo
#

Configure your nginx

#

Read docs carefully

karmic parrot
#

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;
    }
mossy glenBOT
#

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```
fiery echo
#

https = Secure

karmic parrot
#

I did that

fiery echo
#

No

karmic parrot
#

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

fiery echo
karmic parrot
#

it didnt work ig

fiery echo
#

If everything had been done correctly, it would have worked

karmic parrot
#

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

}

karmic parrot
#

i reinstalled it

fiery echo
#

Can you please show /etc/nginx/sites-enabed/ directory?

karmic parrot
#

Yh wait pls

#

it says no file or folder

fiery echo
#

Are you sure?

karmic parrot
fiery echo
karmic parrot
fiery echo
#

In this case, you don't have nginx. Please take a closer look at the documentation.

karmic parrot
#

I do

fiery echo
#

If you had nginx, you would have this directory

karmic parrot
fiery echo
#

Ok, run ls command

karmic parrot
fiery echo
# karmic parrot

I need to see the contents of the /etc/nginx/sites-enabled/ directory, not /sites-available/

karmic parrot
fiery echo
# karmic parrot

I don't see ctrlpanel.conf here. Remove default, and enable ctrlpanel configuration

karmic parrot
#

How do i remove it and enable ctrl panel config

#

??

fiery echo
#
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 ```
karmic parrot
#

Its there now

#

now what

mossy glenBOT
#

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```
karmic parrot
#

Added it

#

it's there in the conf

#

What I do next

#

@fiery echo

mossy glenBOT
fiery echo
karmic parrot
karmic parrot
fiery echo
#

tail -n 100 /etc/nginx/sites-enabled/ctrlpanel.conf | nc pteropaste.com 99

fiery echo
#

Try systemctl restart php8.1-fpm

karmic parrot
fiery echo
#

Ok, php8.1 -m | nc pteropaste.com 99

#

Send this

fiery echo
#

Strange, can you please send nginx logs?
tail -n 200 /var/log/nginx/error.log | nc pteropaste.com 99

fiery echo
#

try apt install php8.1-fpm

karmic parrot
#

should i try now?

fiery echo
#

Yep

karmic parrot
#

WORKS TYSM

karmic parrot
#

after i enter db pass

#

i think i forgot it

mossy glenBOT
#

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

karmic parrot
fiery echo
#

Check if MySQL user password is correct

karmic parrot
#

how

#

do i check it

fiery echo
#

Do you not know the password that you set?

karmic parrot
#

i forgot because i was doing a lot

karmic parrot
fiery echo
#
mysql -u root -p
ALTER USER 'controlpaneluser'@'127.0.0.1' IDENTIFIED BY 'newpassword';
FLUSH PRIVILEGES;
EXIT;```
karmic parrot
fiery echo
fiery echo
#

You don't have all the necessary php modules installed

mossy glenBOT
#

:warning: Do not ping staff members for support! :warning:
A staff member will try to help you as soon as possible but be patient!