Updating
This guide outlines the necessary steps for updating the Pteroca Control Panel, including file synchronization, dependency management, database migrations, cache management, and permissions.
One Command Update (Recommended)
Updating your PteroCA installation has never been easier. Simply run the following command inside your project directory:
# Recommended (v0.6+)
php bin/console pteroca:system:update
# Deprecated (still works until v1.0.0)
# php bin/console app:update-systemThis command automates the most common update steps for you by:
Pulling the latest version of the code (if applicable).
Installing and updating dependencies (Composer, etc.).
Running any necessary database migrations.
Adjusting file permissions for your web server, if needed.
Optional: After running the update, you may also update the Pterodactyl plugin by following any specific instructions outlined in its documentation or by running the relevant update command.
Manual Update
If you need more control over the update process, you can manually update PteroCA. Choose the method that matches your installation approach:
Option A - Update via Git
Ensure that your local repository is synchronized with the latest versions while preserving any local changes.
Option B - Update from GitHub Releases
Backup Recommendation:
Before updating, it's highly recommended to create a backup of your current installation, especially your .env file and database. This allows you to restore your system if something goes wrong during the update.
If you installed PteroCA from a GitHub release archive (without Git), follow these steps to update to the latest version:
Visit the releases page: Navigate to https://github.com/PteroCA-Org/panel/releases and identify the latest stable version.
Download the latest release: Download the
.zipor.tar.gzarchive under Assets for the version you want to update to.Upload to your server: Transfer the downloaded archive to your server using SFTP, SCP, or your preferred method.
Backup your configuration (optional but recommended):
Extract the new files: Navigate to your PteroCA directory and extract the archive, overwriting existing files:
Verify configuration files: Ensure your
.envfile and other custom configuration files were not overwritten:
After extracting the files, proceed with the following shared update steps below.
Managing Project Dependencies
Regular updates to dependencies are critical for maintaining compatibility and performance. This includes removing development-only packages and optimizing the autoloader.
Database Migration
To align your database schema with the latest project updates, perform a migration using the framework's built-in tools.
Refreshing the Cache
Post-update, clearing the cache is essential to prevent old data from affecting the functionality of the updated system.
Adjusting File Permissions
Correct file permissions are essential for secure and uninterrupted operation of the server environment, especially after updates that might alter file structures.
Updating Pterodactyl Plugin (Optional)
If you have installed the PteroCA Plugin for Pterodactyl, you may want to update it as well.
Navigate to your Pterodactyl directory and simply run the following command to update the Composer package:
This command will update the PteroCA Plugin package and ensure that everything continues to work smoothly.
Need help? Join our Discord!
If you encounter any issues or need assistance, feel free to join our Discord community, where we’ll be happy to help! 🚀
Last updated