#Database Error

1 messages · Page 1 of 1 (latest)

gloomy raptor
#

Hi, after i setup my database info, click on submit button and then i got this error, how to fix this?

#

Thats the log

warm coyote
#

Check if your default php version is 8.1

gloomy raptor
#

So, what to do?

warm coyote
#

Same as CtrlPanel

gloomy raptor
#

But the ngnix requres 8.3

#

For pterodactyl

warm coyote
#

Huh, they updated their docs

gloomy raptor
#

And how to downgrade my php version?

warm coyote
#

My bad

gloomy raptor
warm coyote
#

Lemme think about it

gloomy raptor
warm coyote
#

The problem has been found, here is a quick solution:

  1. Install intl extension for php 8.3
apt install php8.3-intl
  1. Change PHP-FPM version in your CtrlPanel nginx configuration
  • sudo nano /etc/nginx/sites-available/ctrlpanel.conf
  • Find fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
  • Change php8.1-fpm.sock to php8.3-fpm.sock
  • Save file
  • Run nginx -t && systemctl restart nginx
  1. Check if your default php version is 8.3
php -v

If it differs from the required 8.3, install php 8.3 by default using the command below

sudo update-alternatives --set php /usr/bin/php8.3

Now, check if the default version changed to 8.3

php -v
gloomy raptor
glacial jayBOT
# gloomy raptor Okay, done but now the ssl expired, how to fix that?

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```
gloomy raptor
warm coyote
# gloomy raptor

I don't need your confirmation, you need to have basic skills to fix such issues

gloomy raptor
#

Thats problem show up after my 00:00 restart

warm coyote
#

Have you configured ssl?

gloomy raptor
gloomy raptor
gloomy raptor
#

Now, succesfuly fixed

#

But, the new error:

#

And thats

#

Thats the log

warm coyote
warm coyote
glacial jayBOT
#

Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/public/install/logs/installer.log | nc pteropaste.com 99

warm coyote
#

Check your Default php version

gloomy raptor
glacial jayBOT
#

It looks like you are missing some important files in /vendor.
Please run composer install --no-dev --optimize-autoloader

gloomy raptor
#

The error:

#

Install composer?

#

But maybe installed

warm coyote
#

Run in CtrlPanel dir

gloomy raptor
warm coyote
#

Not in root folder

gloomy raptor
#

Okay. 1 sec

#

But i use cd /var/www/controlpanel, and after that use the docs composer installer command, but thats the message:

glacial jayBOT
gloomy raptor
#

Okay, nothing

#

Fixed.And whats the next step?

warm coyote
gloomy raptor
#

But already have the error

#

Ohh, permission

#

1 sec, fix that

glacial jayBOT
#

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

gloomy raptor
#

Done

#

Wow, alr working the whole website

#

Thx for helping, have a nice day!

warm coyote
#

You're welcome