Ctrlpanel-gg / panel

CtrlPanel offers an easy-to-use and free billing solution for all starting and experienced hosting providers that seamlessly integrates with the Pterodactyl panel.
https://ctrlpanel.gg/
MIT License
395 stars 142 forks source link

[Bug]: Mail credentials not saved #858

Closed Shykuzo closed 1 year ago

Shykuzo commented 1 year ago

What is your request about?

Mail credentials (SMTP, etc.) are not saved in the .env file at the root of the installation folder. In my Administrator panel, the identifiers are displayed, but the .env does not contain them.

Branch

main

Solution idea

No response

Controlpanel Logs

After doing php artisan config:clear and php artisan queue:restart like said here, I have that error but my permissions are correctly setting up.

Also, I just have to wait some times and everything work again '-'

[2023-06-03 15:50:21] production.ERROR: Settings Error: Could not load settings from database. The Installation probably is not done yet. [2023-06-03 15:50:21] production.ERROR: ErrorException: file_put_contents(/var/www/EvoCloud/Home/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90): Failed to open stream: Permission denied in /var/www/EvoCloud/Home/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190

Additional Info

No response

MrWeez commented 1 year ago

SMTP in the file .env don't work. You can configure smtp in the panel itself on the your.panel/admin/settings#misc tab

MrWeez commented 1 year ago

In terms of saving credentials, they are stored in your database, not in the .env file.