-
-
Save jnoortheen/c236bb80a2ee04a40fad71707ee94f00 to your computer and use it in GitHub Desktop.
Installing OpenVBX on Ubuntu 16.04 EC2 instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check for updates | |
sudo apt-get update | |
sudo apt-get upgrade | |
# for installation doc https://github.com/twilio/OpenVBX/blob/master/INSTALL.markdown | |
# step1 download OpenVBX | |
wget -O openvbx.tgz https://github.com/twilio/OpenVBX/tarball/master | |
tar xf openvbx.tgz | |
sudo cp -r twilio-OpenVBX-bc9b3d6/* /var/www/html/ | |
rm openvbx.tgz | |
rm -rf twilio-OpenVBX-bc9b3d6/ | |
# install necessary software | |
sudo apt-get install mysql-server apache2 php5 libapache2-mod-php5 php5-mysql libapache2-mod-auth-mysql php5-curl git sendmail | |
# create DB | |
echo "CREATE DATABASE OpenVBX; GRANT ALL PRIVILEGES ON OpenVBX.* TO ubuntu@localhost IDENTIFIED BY {PASSWORD_HERE}; FLUSH PRIVILEGES" | sudo mysql -p | |
# clear webroot dir | |
sudo rm -rf /var/www/html/* | |
# allow write to config & audio-uploads dirs | |
sudo chmod 777 -Rf /var/www/html/OpenVBX/config | |
sudo chmod 777 -Rf /var/www/html/audio-uploads | |
# restart apache | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment