nlplab / brat

brat rapid annotation tool (brat) - for all your textual annotation needs
http://brat.nlplab.org
Other
1.82k stars 509 forks source link

Error: ActiongetCollectionInformation failed on error Forbidden #1364

Open PierreChambon opened 3 years ago

PierreChambon commented 3 years ago

I was getting errors Error: ActiongetCollectionInformation failed on error Forbidden Error: Actionwhoami failed on error Forbidden Error: ActionloadConf failed on error Forbidden When trying to access my brat server.

When running the troubleshooting script, I was getting the following message: Received forbidden (403) when trying to access [brat_server_url] Have you perhaps forgotten to enable execution of CGI in your web server configuration?

Adding the following line to my httpd.conf file (imported in apache2.conf file): Options +ExecCGI Fixed the problem.

This is how my httpd.conf file looks like now:

<Directory /var/www/html>
    AllowOverride Options Indexes FileInfo Limit
    AddType application/xhtml+xml .xhtml
    Options +ExecCGI
    AddType font/ttf .ttf
    # For CGI support
    AddHandler cgi-script .cgi
    # Comment out the line above and uncomment the line below for FastCGI
    #AddHandler fastcgi-script fcgi
</Directory>

#For FastCGI, Single user installs should be fine with anything over 8
#FastCgiConfig -maxProcesses 16

And of course then I reloaded with sudo systemctl restart apache2

Hope it can help !