Uninstall
You will loose all data that you have stored in your Ctrlpanel.
Note: This will only work if you followed our documentation, you might need to modify the commands to fit your installation.
Stop everything
You need to stop ctrlpanel and all of its services before you can uninstall it.
cd /var/www/ctrlpanel
sudo php artisan down
sudo systemctl stop ctrlpanel
Remove
Service and cronjob
You have to stop and remove the service and cronjob.
sudo systemctl stop ctrlpanel
sudo systemctl disable ctrlpanel
sudo rm /etc/systemd/system/ctrlpanel.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
To open the crontab run: crontab -e
and remove the following configuration from crontab.
* * * * * php /var/www/ctrlpanel/artisan schedule:run >> /dev/null 2>&1
Webconfig and SSL certificates
Now you need to remove the webconfig and restart it
- Nginx
- Apache
sudo unlink /etc/nginx/sites-enabled/ctrlpanel.conf
sudo rm /etc/nginx/sites-available/ctrlpanel.conf
sudo systemctl reload nginx
sudo a2dissite ctrlpanel.conf
sudo rm /etc/apache2/sites-available/ctrlpanel.conf
sudo systemctl reload apache2
Don't forget about SSL certificates
sudo certbot delete --cert-name <Your Domain>
Database and User
Now you need to remove the database and user:
- MySQL
- MariaDB
mysql -u root -p
DROP DATABASE ctrlpanel;
DROP USER 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
exit
mariadb -u root -p
DROP DATABASE ctrlpanel;
DROP USER 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
exit
Files
Now you need to remove the files.
sudo rm -rf /var/www/ctrlpanel
Extra Dependency
You need to uninstall this, use the appropriate PHP version (php -v)
sudo apt remove php8.3-{intl,redis}
Pterodactyl API Key
Login to your pterodactyl panel and go to the admin page.
Then go to the API tab (/admin/api
) and delete the key you made for ctrlpanel.