
I had a working OTRS installation on this system but lost the data and now must reinstall from scratch. So I have been through this once before successfully and I can't figure out why it doesn't work now. I think I followed the INSTALL instructions. I did the manual database schema setup, not installer.pl. All I get from the web server is 'Internal Server Error'. [Sat May 14 19:48:53 2005] [error] [client 69.17.97.230] Premature end of script headers: /home/otrs/bin/cgi-bin/index.pl The installer.pl script gives the same error. I am using Apache 1.3.33, perl 5.8.6, and MySQL 4.1.11 on FreeBSD 4.9. The system is a FreeBSD jail. I started with mod_perl 1.29 and then uninstalled it and switched to CGI mode, both fail. I am running the web server as the otrs user. The otrs user is in the web server group. I ran SetPermissions.sh. I edited Kernel/Config.pm. I have verified that the otrs MySQL user can log into the database and that the database tables were created. perl thinks syntax is ok... admin# perl -cw bin/cgi-bin/index.pl bin/cgi-bin/index.pl syntax OK admin# perl -cw bin/cgi-bin/installer.pl bin/cgi-bin/installer.pl syntax OK otrs.checkModules runs ok... admin# bin/otrs.checkModules CGI ... ok Date::Pcalc ... ok DBI ... ok DBD::mysql ... ok Digest::MD5 ... ok Email::Valid ... ok IO::Scalar ... ok IO::Wrap ... ok MIME::Base64 ... ok MIME::Tools ... ok Mail::Internet ... ok Net::DNS ... ok Net::POP3 ... ok Net::LDAP ... not installed! (for directory authentication - not required) Net::SMTP ... ok Authen::SASL ... ok GD ... ok GD::Text ... ok GD::Graph ... ok GD::Graph::lines ... ok GD::Text::Align ... ok Troubleshooting suggestions would be appreciated. --Paul

Hi! I would start looking at Apache config... do you have anything else in the apache logs? (look for them in httpd.conf, ErrorLog directive) Maybe the problem is related to the environment inside the jail: filesystem permissions, some perl environment variable (lib paths and the like). Try a completely different perl CGI, not related to OTRS, to see if it works. For example: [...] #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html><head>\n"; print "<title>Hello, world!</title></head>\n"; print "
\n"; print "<h1>Hello, world!</h1>\n"; print "</body></html>\n"; [...] Also, double check your httpd.conf settings regarding mod_perl/CGI directives. Regards, On 14 May 2005 at 13:17, Paul Southworth wrote:I had a working OTRS installation on this system but lost the data and now must reinstall from scratch. So I have been through this once before successfully and I can't figure out why it doesn't work now. I think I followed the INSTALL instructions. I did the manual database schema setup, not installer.pl.
All I get from the web server is 'Internal Server Error'.
[Sat May 14 19:48:53 2005] [error] [client 69.17.97.230] Premature end of script headers: /home/otrs/bin/cgi-bin/index.pl
The installer.pl script gives the same error.
I am using Apache 1.3.33, perl 5.8.6, and MySQL 4.1.11 on FreeBSD 4.9. The system is a FreeBSD jail. I started with mod_perl 1.29 and then uninstalled it and switched to CGI mode, both fail. I am running the web server as the otrs user. The otrs user is in the web server group. I ran SetPermissions.sh. I edited Kernel/Config.pm.
I have verified that the otrs MySQL user can log into the database and that the database tables were created.
perl thinks syntax is ok...
admin# perl -cw bin/cgi-bin/index.pl bin/cgi-bin/index.pl syntax OK admin# perl -cw bin/cgi-bin/installer.pl bin/cgi-bin/installer.pl syntax OK
otrs.checkModules runs ok...
admin# bin/otrs.checkModules CGI ... ok Date::Pcalc ... ok DBI ... ok DBD::mysql ... ok Digest::MD5 ... ok Email::Valid ... ok IO::Scalar ... ok IO::Wrap ... ok MIME::Base64 ... ok MIME::Tools ... ok Mail::Internet ... ok Net::DNS ... ok Net::POP3 ... ok Net::LDAP ... not installed! (for directory authentication - not required) Net::SMTP ... ok Authen::SASL ... ok GD ... ok GD::Text ... ok GD::Graph ... ok GD::Graph::lines ... ok GD::Text::Align ... ok
Troubleshooting suggestions would be appreciated.
--Paul _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
--- Victor R. Rodriguez Departamento de Sistemas Valoraciones del Mediterraneo, S.A. ---

Victor Rodriguez Cortes wrote:
Hi!
I would start looking at Apache config... do you have anything else in the apache logs? (look for them in httpd.conf, ErrorLog directive)
No, only "premature end of script headers". No interesting stderr from index.pl.
Maybe the problem is related to the environment inside the jail: filesystem permissions, some perl environment variable (lib paths and the like). Try a completely different perl CGI, not related to OTRS, to see if it works. For example:
Perl CGI scripts work fine, including the one you offered. mod_perl is currenctly completely disabled, not loaded in httpd.conf and all related directives removed. Thanks for your suggestions... I think all the permissions are fine because they are set consistently by the FreeBSD installer. I have numerous such jails running all sorts of web applications under apache (including running OTRS until a few weeks ago, although I think it might not have been 1.3.2). I guess I will uninstall the whole apache/otrs environment and reinstall it again. --Paul

I figured it out... IPC::SysV is present but nonfunctional in my FreeBSD jail. I removed the module and set AuthSession to something else. Solution found via 'truss perl index.pl' --Paul
participants (2)
-
Paul Southworth
-
Victor Rodriguez Cortes