Upgrading OpenVBX is easy, just follow the steps below to upgrade your install.
The first thing to before upgrading any software is to make backup copies of your code and your data. How you can accomplish this depends on your hosting provider. If you have shell access you can just use mysqldump to make an export of your database. If you don’t have shell access than you probably have a control panel like cPanel.
Make a backup copy of your database and your OpenVBX installation because there are uploaded audio files and configuration files in there.
The next step is to get the latest version of OpenVBX from the OpenVBX GitHub Repository. There are two ways to get the new code on to your server:
Upload the archive NEXT to your current install of OpenVBX. Do not overwrite the current install of OpenVBX.
If you have shell access to your server then you can bypass FTP and directly download and expand the archive on the server. Download your preferred archive format via
wget. The current production ready version of OpenVBX will always be available at:
You should now have your old OpenVBX install and your new OpenVBX install sitting next to each other in the same directory. We now need to copy your configuration and audio uploads to the new install.
Copy the following files from your old install to your new install:
If you’ve modified any other files check them against the files in the new OpenVBX version and copy over your changes to the new versions. Do no completely copy over the old versions as you might overwrite changes in the new files.
If you’ve modified the following files, copy them to the new install as well. They will overwrite existing files:
Copy the files from your old
audio-uploads/ directory to your new
Once you’ve copied over the necessary files make sure that the
audio-uploads/ directories have the proper permissions. If the directories are not writable by the web server you can adjust the directory permissions using the
Putting the new version of OpenVBX live is now just a simple matter of renaming your directories. Rename your old version of OpenVBX to a temporary name and rename the new version of OpenVBX to the name that your old one used to have.
Now log in to your install and follow the upgrade instructions (which, really, consists of clicking a few buttons).
Should something go wrong you can roll back your install by reverting the folder names on your OpenVBX install and restoring the database from your backup. If this does happen then please open a ticket on the Forums.
Be sure to include: