Created
September 18, 2016 07:00
-
-
Save YugalXD/e6f3318a843765fa6d946fb7f4534ad0 to your computer and use it in GitHub Desktop.
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 | |
# install necessary software | |
sudo apt-get install mysql-server apache2 php5 libapache2-mod-php5 php5-mysql libapache2-mod-auth-mysql php5-curl git sendmail | |
sudo apt-get install php-apc | |
# 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/* | |
# 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/ | |
# 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