Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9228665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:22:50+00:00 2026-06-18T05:22:50+00:00

This is a self-answered question that describes how to resolve problems that occur when

  • 0

This is a self-answered question that describes how to resolve problems that occur when installing the brat annotation tool, which is used to create annotated corpora for use in NLP, on an ordinary Linux machine that has SELinux enabled. This is based on version 1.3 of the tool.

The installation procedure as documented includes the steps below:

  1. Unpack the .tar.gz file in an (Apache) web server directory, typically /var/www/html or $HOME/public_html
  2. Possibly rename the unpacked directory from brat-v1.3_Crunchy_Frog to something simple such as brat
  3. Enter the directory and run sudo ./install.sh
  4. Start the web server (sudo service httpd start) if it wasn’t running already

Problem: When following this procedure, any attempt to use brat in a browser (by directing it to http://localhost/brat/index.xhtml fails with the following error messages displayed on screen:

Error: ActiongetCollectionInformation failed on error Internal Server Error
Error: Actionwhoami failed on error Internal Server Error
Error: ActionloadConf failed on error Internal Server Error

The Apache error log (typically found in /var/log/httpd/error_log) also shows errors:

(13)Permission denied: exec of '/var/www/html/new/ajax.cgi' failed, referer: http://localhost/new/index.xhtml
Premature end of script headers: ajax.cgi, referer: http://localhost/new/index.xhtml

How to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:22:51+00:00Added an answer on June 18, 2026 at 5:22 am

    This is caused by SELinux. One way to solve it is to disable SELinux, but a somewhat less radical method is to set access rights as required by brat.

    The roots of the problem are:

    1. brat keeps executable scripts (CGI scripts), static files as well as annotated data all in the same directory, the html directory
    2. SELinux is, by default, configured to prevent the execution of CGI scripts from non-CGI directories. Merely changing the Apache configuration does not help here
    3. SELinux is also configured to prevent CGI scripts writing data to disk

    To modify the SELinux configuration, you need to give access rights to specific files and directories as follows (do this from within the brat installation directory):

    $> chcon -t httpd_sys_content_t .
    $> chcon -t httpd_sys_script_exec_t *.cgi
    $> sudo chcon -R -t httpd_sys_script_rw_t work data
    

    ($> represents the command prompt.)

    The first command enables read access to the current directory (it may sometimes unnecessary). The second command enables CGI script execution of all files ending in .cgi (this is necessary). The third command enables write access to the work and data directory (also necessary); it needs to be applied again whenever you add files or subdirectories to work or `data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is going to be a self-answered question, but I thought that such a
Reference: This is a self-answered question. It was meant to share the knowledge, Q&A
This is related to another question of mine which wasn't answered in a helpful
This is going to be a difficult question to get answered which is why
[ante-scriptum : this is a self answered question, you don't need to bother answering]
This question is highly related to one that was previously asked and answered here:
For example I have a method that looks like this [self performSelectorOnMainThread:@selector(someMethod) withObject:data waitUntilDone:YES];
I have a list to which I append Axes3D plots. Like this: self.myList.append(self.axes.plot(xValues, yValues,
TOP LEVEL EDIT: this question has in principle been answered in the original thread
I sure hope this won't be an already answered question or a stupid one.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.