Configure Apache to serve PERL pages ( Ubuntu )


Written on May 30, 2008 – 5:59 pm | by Rene

I just reinstalled my ubuntu distribution, and have to configure apache to serve perl pages outside of the cgi-bin directory, after a little bit of googling i found the solution.

You have to edit the /etc/apache2/apache2.conf and add to it the following lines.

  1.  
  2. AddHandler cgi-script .cgi .pl
  3. <Files ~ "\.pl$">
  4. Options +ExecCGI
  5. </Files>
  6. <Files ~ "\.cgi$">
  7. Options +ExecCGI
  8. </Files>
  9.  
  1. 2 Responses to “Configure Apache to serve PERL pages ( Ubuntu )”

  2. By James Craig on Jun 28, 2008 | Reply

    Thank you, this came up in a Google search and was exactly what I was looking for.

  3. By raul on Jan 14, 2010 | Reply

    i get

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

Post a Comment