Koozali.org: home of the SME Server

'Internal Server Error' after expanding template

Offline seabro

  • 1
  • +0/-0
'Internal Server Error' after expanding template
« on: April 02, 2013, 06:24:59 PM »
Hi all,

I am following the instructions at http://wiki.contribs.org/OTRS to setup OTRS

The only difference it I have downloaded a newer version of OTRS. (3.2.3-01) and I am using SME server 8.

All is well until I create the httpd template and expand it.

After doing this, my webserver is broken. (Internal Server Error regardless of what URL I try to access).

The template looks like this.

#OTRS

Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl

PerlModule Apache::Reload
PerlInitHandler Apache::Reload

MaxRequestsPerChild 400

<Location /otrs>
   ErrorDocument 403 /otrs/customer.pl
   ErrorDocument 403 /otrs/index.pl
   AllowOverride All
   SetHandler perl-script
   PerlResponseHandler ModPerl::Registry
   PerlOptions +ParseHeaders
   Options +ExecCGI +FollowSymlinks
</Location>
<Directory "/opt/otrs/bin/cgi-bin/">
           AllowOverride None
           Options +ExecCGI -Includes
           Order allow,deny
           Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
         AllowOverride None
         Order allow,deny
         Allow from all
</Directory>


I have all the required deps, as I ran otrs.CheckModules.pl and the only modules I don't have are optional.

I have also run:

signal-event post-upgrade
signal-event reboot

But that didn't help.


I am running in a VM and have a snapshot I can revert to just before the template creation/expansion so I know thats what breaks my webserver.

Any assistance appreciated.

seabro
« Last Edit: April 02, 2013, 08:56:43 PM by seabro »

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: 'Internal Server Error' after expanding template
« Reply #1 on: April 03, 2013, 01:42:28 PM »
You should get some useful pointers from testing your httpd configuration:
Code: [Select]
httpd -t
And of course, everything (except OTRS) should work again if you move your custom template fragment OUT of the various /etc/e-smith/template* folders and do this:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith

We ship separate RPMs for versions 5 and 6 of RHEL and CentOS.
Have you got the Centos 5 version?