#CSS is broken
1 messages · Page 1 of 1 (latest)
looks like some mixed content error
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
Actually, try this:
php artisan storage:link
cd /var/www/controlpanel && php artisan view:clear && php artisan config:clear
try this
I tried running the above two commands, but nothing changed.
than you changed any script ??
or try to modify
ohh can you check dashboard from another browser
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
and run this and give link here for check any error showing or not
in there showing some error about database , so i thing you not configure database properly
```Next Illuminate\Database\QueryException: SQLSTATE[HY000] [1698] Access denied for user 'forge'@'localhost' (SQL: select * from settings)
check properly you set right config(password, username, db name) or not
What is 'forge'@'localhost'?
I have no such database configured
bruhhh without database how can you run cpgg
first configure database
I don't use the username forge.
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
https://ctrlpanel.gg/docs/Installation/getting-started#database-setup
follow this step for setup database
It is recommended that you have some sort of Linux and MariaDB experience before installing this.
I am writing SSL directly in the nginx conf, but is this wrong?
If this is the cause, please tell me the correct way to do it.
what do you mean "SSL Directly writing in the nginx conf"
I'm doing it like this
you doing wrong configure nginx
listen 80;
root /var/www/controlpanel/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name YOUR.DOMAIN.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;
}
}```
this is right configure and in here you need to some changes after paste (line 5 "YOUR.DOMAIN.COM:" add you domain for example "dash.example.com"
How do I use SSL in this case?
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```
read docs properly and install bcz you doing everything wrong steps or hire anyone for install cpgg for you
#install certbot for nginx
sudo apt install -y certbot
sudo apt install -y python3-certbot-nginx
#install certificates
sudo certbot --nginx -d yourdomain.com```
just follow this command (don't run all command once) 1 by 1 run the command and last line (sudo certbot --nginx -d yourdomain.com) change value of youdomain.com to your dashboard url
I did SSL that way, but the CSS is not loaded first
give us fresh logs again
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
cd /var/www/controlpanel
do this
composer install --no-dev --optimize-autoloader
than this
I ran it but there is no change
than hire expert bcz i don't know what step you doing wrong during install cpgg
@polar summit Do you use reverse proxy?
Also, can you please show your browser console?
no
Check if APP_URL in .env started with https
It's https
Glad the first message here was right after all lol
You can try adding a rewrite rule from http to https
Can you please show your nginx configuration?
Do you use Cloudflare?
@polar summit
No, I haven't used it
Try adding this line to your .env file
ASSET_URL="${APP_URL}"
You can paste it right below the APP_URL
After editing the .env File please run those commands to clear the Cache:
php artisan cache:clear
php artisan config:clear
Also, run this commands after doing step above
It has been improved a little, but it seems that the fundamental solution is still not solved.
Hm... Do you use any third-party add-ons?
No
If you don't mind than i can setup cpgg for you
After some trial and error, the CSS was loaded successfully!