2

I'm trying to get OTRS 4.0 working on Ubuntu 14.04. I've followed all instructions to install from source.

When I open the site (localhost/otrs/index.pl), an empty .pl-file is served for download. Apparently Apache finds the index.pl, but does not know what to do with it.

  • OTRS is installed with all relevant perl modules (checked by install script)
  • Vhost is copied from scripts folder in OTRS
  • hosts is updated for the local test domain
  • Apache is restarted

Modules

cgi.load -> ../mods-available/cgi.load
perl.load -> ../mods-available/perl.load

Question

How can I get Perl working with Apache?

SPRBRN
  • 2,535

2 Answers2

4

Make sure you have set the following path in your /etc/apache2/apache2.conf:
ScriptAlias /cgi-bin/ "/path/to/cgi-bin/" and that your scripts are in that folder.

If your scripts ends on .pl make sure to change the line
AddHandler cgi-script .cgi to AddHandler cgi-script .cgi .pl
in /etc/apache2/apache2.conf and check that it is not commented out.

Options FollowSymLinks +ExecCGI needs to set in your virtual host.

Pabi
  • 7,429
4

Waking the dead but with the answer. Do this:

ln -s /etc/apache2/mods-available/cgid.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/cgid.conf /etc/apache2/mods-enabled/

sudo service apache2 restart

and it works.