Last active
February 19, 2016 07:04
-
-
Save Cacodaimon/2ce343ec3605de96eb14 to your computer and use it in GitHub Desktop.
Caco Cloud Installation on DigitalOcean Debian 7
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
#Follow these steps to install CacoCloud: | |
#Login | |
ssh -i .ssh/id_rsa_home root@ | |
#Install all packages | |
apt-get install git apache2 sqlite3 php5 php5-imap php5-mcrypt php5-sqlite php5-curl | |
#Create a self signed cert | |
mkdir /etc/apache2/ssl | |
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/caco-cloud.pem -keyout /etc/apache2/ssl/caco-cloud.key | |
#Enable needed apache modules | |
a2enmod ssl; a2enmod php5; a2enmod headers; a2enmod deflate; a2enmod rewrite | |
#Create a new vhost | |
nano /etc/apache2/sites-available/caco-cloud | |
<VirtualHost *:443> | |
ServerAdmin [email protected] | |
SSLEngine On | |
SSLCertificateFile /etc/apache2/ssl/caco-cloud.pem | |
SSLCertificateKeyFile /etc/apache2/ssl/caco-cloud.key | |
LogFormat "[%{%Y-%m-%d %H:%M:%S}t] %u@%h %H %>s" access | |
DocumentRoot /var/www/CacoCloud/public | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/CacoCloud/public> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
</Directory> | |
CustomLog ${APACHE_LOG_DIR}/caco-cloud.log access | |
</VirtualHost> | |
#Enable new vhost and disable default | |
a2dissite 000-default | |
a2ensite caco-cloud | |
#Restart apache | |
service apache2 restart | |
#Install CacoCloud itself | |
mkdir /var/www/CacoCloud/ | |
cd /var/www/CacoCloud/ | |
wget http://cacodaimon.github.io/CacoCloud/download/CacoCloud.tar.gz | |
tar xfv CacoCloud.tar.gz | |
rm CacoCloud.tar.gz | |
chown -R www-data:www-data /var/www/CacoCloud/ | |
#Delete the install script… | |
rm -rf public/install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment