Skip to content

Install CacoCloud on Debian Wheezy with Apache 2.2

Guido Krömer edited this page Dec 29, 2013 · 3 revisions

Simple howto install CacoCloud on a Debian Wheezy with Apache2.

Install needed packages

The following packages has to be installed first.

apt-get install git apache2 sqlite3 php5 php5-imap php5-mcrypt php5-sqlite

Install node.js for running grunt.

sudo apt-get install python g++ make checkinstall
mkdir ~/node_js_src && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
make
make install

Install the grunt cli.

npm install -g grunt-cli

Create a Self-Signed Certificate

CacoCloud should be served via https, therefore you need a self-signed certificate.

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

Install CacoCloud

Run the following command to clone the latest version via git:

cd /var/www && git clone https://github.com/Cacodaimon/CacoCloud.git

Run the build.sh script located here: /var/www/CacoCloud.

Configure Apache2

Ensure that all modules are enabled.

a2enmod ssl; a2enmod php5; a2enmod headers; a2enmod deflate; a2enmod rewrite

Create a new VirtualHost file: /etc/apache2/sites-available/caco-cloud and enable it with: a2ensite caco-cloud.

Replace your-hostname and the port with your desired hostname and port and put the content into your newly created/etc/apache2/sites-available/caco-cloud file. The modified log format ensure that no critical information like passwords send via GET gets logged.

<VirtualHost your-hostname: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>

Maybe you have to add the following line NameVirtualHost *:443 to your /etc/apache2/ports.conf file.

Restart the Apache2 with apachectl restart and enjoy using CacoCloud.

Clone this wiki locally