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.
root@debian:~# vitalpbx --help
To reset the password for any Web UI user, run the following command.
root@debian:~# vitalpbx reset-pwd [username]
Where [username] is the user you wish to change the password.
To rebuild the VitalPBX database, run the following command.
root@debian:~# vitalpbx build-db
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.
root@debian:~# vitalpbx gen-conf
To generate the Asterisk configurations and rebuild the Asterisk database for all tenants, we run the following command.
root@debian:~# vitalpbx fully-gen-conf
To check for any issues regarding directories/files and their permissions and owners, we run the following command.
root@debian:~# vitalpbx check-integrity
To apply the changes made on the Firewall module on VitalPBX, we run the following command.
root@debian:~# vitalpbx apply-firewall
You can manually restore from a backup file you have uploaded manually by running the following command.
root@debian:~# vitalpbx restore-backup path/to/file.tar
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.
root@debian:~# vitalpbx reset-apache-conf
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.
root@debian:~# vitalpbx optimize-mariadb
Keep in mind that this will restart MariaDB.
To optimize the Apache configurations on your VitalPBX, run the following command.
root@debian:~# vitalpbx optimize-apache
To disable 2FA for a user, run the following command.
root@debian:~# vitalpbx disable-2FA [username or email address]
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.
root@debian:~# vitalpbx update
With this, you can control your VitalPBX installation from the command line and troubleshoot any issues you may have.