Installation of PHP Catalonia Framework

Linux Debian/Ubuntu Servers

Install Apache, PHP and MySql:

    sudo apt-get install apache2
    sudo apt-get install libapache2-mod-php5
    sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Activate ModRewrite:
    sudo a2enmod rewrite
Download the Framework from GitHub or uncompress the file .tar.gz or zip.

Config Apache to point to www/ folder of the Framework.
In v.2.2 tipically it is done by creating a file in /etc/apache2/sites-available/yourwebsite
Be aware in v.2.4 those files or symlinks must end in .conf

<VirtualHost *:80>


        DocumentRoot /var/www/
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # For Apache 2.4 uncomment:
                # Require all granted

        ErrorLog ${APACHE_LOG_DIR}/www-cataloniaframework-com-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/www-cataloniaframework-com-access.log combined

Ensure cache/ folder has permissions.
    chmod 777 cache/
    chmod 666 cache/.
Optional, if you want to use curl functionality:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
And restart the Web Server.

Optional, if you want to use crypt/decrypt functionality.
sudo apt-get install php5-mcrypt
And restart the Web Server.

You can install phpunit from the composer.json file by running from the Catalonia Framework directory: php composer.phar install