VitalPBX Commands

With VitalPBX, we have created multiple commands you can run from the Linux CLI, that can help you manage and stabilize your VitalPBX installation. Here are all the VitalPBX Commands you can run.

To see the list of available commands, run the following command.

To reset the password for any Web UI user, run the following command.

Where [username] is the user you wish to change the password.

To rebuild the VitalPBX database, run the following command.

This will execute a series of scripts to build the VitalPBX database.

To generate the Asterisk configurations and rebuild the Asterisk database for the main tenant only, we run the following command.

To generate the Asterisk configurations and rebuild the Asterisk database for all tenants, we run the following command.

To check for any issues regarding directories/files and their permissions and owners, we run the following command.

To apply the changes made on the Firewall module on VitalPBX, we run the following command.

You can manually restore from a backup file you have uploaded manually by running the following command.

This is especially useful when the backup file is too big to upload from the web interface. You can upload it manually using an SCP or SFTP application to your VitalPBX, then run the command and specify the path to the backup file to restore the system from it.

To reset the SSL certificates and disable the force HTTPS option, run the following command.

This will help you in case your SSL certificate expires or you don’t have access to your server via HTTPS.

To optimize the performance of MariaDB/MySQL, you can run the following command.

Keep in mind that this will restart MariaDB.

To optimize the Apache configurations on your VitalPBX, run the following command.

To disable 2FA for a user, run the following command.

With this, you can disable 2FA for a specific user in case they lose access to their 2FA application. You can use either their username or email address.

To update VitalPBX and all its dependencies, run the following command.

With this, you can control your VitalPBX installation from the command line and troubleshoot any issues you may have.

What are your feelings
Updated on December 18, 2023