Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.15 KB

UBUNTU.md

File metadata and controls

41 lines (35 loc) · 1.15 KB

UBUNTU CONFIGURATION

  1. Install "Apache" and "Perl" and configure.

    apt-get install apache2
    apt-get install libapache2-mod-perl2
    a2enmod include
    a2enmod rewrite
  2. Edit /etc/apache2/sites-available/default so that the following is the only element in the file (change REPLACE_WITH_YOUR_LOCATION with the directory location of the LabelMe annotation tool code, e.g. /var/www/LabelMeAnnotationTool):

    <Directory "REPLACE_WITH_YOUR_LOCATION">
        Options Indexes FollowSymLinks MultiViews +Includes
        AllowOverride all
        Order allow,deny
        allow from all
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        DirectoryIndex index.shtml
    </Directory>

    For Ubuntu 14.04 with Apache 2.4:

    <Directory "REPLACE_WITH_YOUR_LOCATION">
        Options Indexes FollowSymLinks MultiViews Includes ExecCGI
        AddHandler cgi-script .cgi
        AllowOverride all
        Require all granted
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        DirectoryIndex index.shtml
    </Directory>