#Install Website error
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)
to get the logs whats the command for nginx?
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
Logs i think
i have seen 2 other issue with are the same but one is a issue with cloudflare (Which i dont use) and the other is for using and unoficcal way to install it (I followed the guide on your website to install it)
i have no clue on how to fix it and i would appricate it if someone can assist
You haven’t specified the application encryption key!
You can generate one using php artisan key:generate --force
This is one of the first steps in the installation guide.
Please read the docs carefully while installing this panel so you don’t miss any steps; this might save you a lot of time and frustration :)
https://CtrlPanel.gg/docs/Installation/getting-started
sudo mysql -u root -p
CREATE USER 'dashboarduser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON controlpanel.* TO 'dashboarduser'@'localhost';
FLUSH PRIVILEGES;
Check to make your .env is correct.
sudo nano /var/www/controlpanel/.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=controlpanel
DB_USERNAME=dashboarduser
DB_PASSWORD=your_password
Clear cache.
php artisan config:clear
php artisan cache:clear
php artisan view:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
Migrate
cd /var/www/controlpanel
php artisan migrate --force
Restart services
sudo systemctl restart php8.1-fpm
sudo systemctl restart nginx
I had tried that, also did u ask ChatGPT? Cause I had got a very similar response from ChatGPT
Yep, because that's what got me through install last night lol
Had the same issue. Just kept going through the steps it gave me, eventually worked out.
Webinstall left the chat