Install brat on Ubuntu (Apache2)

By | January 6, 2017

Install brat

Install Apache2

Download and unzip the brat v1.3

Move the folder to /var/www/brat

In /var/www/brat run ‘./install’. Follow the instruction to set username, password and email.

In etc/apache2/sites-avialble/000-default.conf add

Alias /brat "/var/www/brat"
<Directory "/var/www/brat">
    Options +ExecCGI
    AddHandler cgi-script .cgi
    # AddHandler fastcgi-script fcgi
    AllowOverride Options Indexes FileInfo Limit
    AddType application/xhtml+xml .xhtml
    AddType font/ttf .ttf
</Directory>

Restart apache2:

sudo service apache2 reload

Enable FastCGI

Install fastcgi by running ‘sudo apt-get install libapache2-mod-fastcgi’

Change etc/apache2/sites-avialble/000-default.conf

# AddHandler cgi-script .cgi
AddHandler fastcgi-script fcgi

Leave a Reply

Your email address will not be published. Required fields are marked *