View Full Version : installing otrs with ispconfig on ubuntu (error 500)
blackflag
21st June 2006, 17:55
Hello all,
Im trying to install otrs on ubuntu dapper. Ispconfig is installed. But when I go to domain.tld/otrs/installer.pl I get the apache2 error 500.
There is nothing in apache2 error.log
Can someone help?
stefan
till
21st June 2006, 18:25
ISPConfig does not configure websites to run .pl files with mod_perl. You might have to add some additional directives in the apache directives window of the website.
blackflag
21st June 2006, 23:33
what kind of derectives should I use ?
And Im wondering about this, cause I installed another Server with debian 3.1, there are not additional derectives necessary. What is the difference? Ubuntu is debian based.
tia
stefan
brainz
21st June 2006, 23:33
Also till correct me if i am wrong here.... ispconfig does not use the apache server that comes native to the linux distribution either ????
Which means that the .pl file maybe setup to configure the native apache server and not ispconfigs apache server and this is why you are suggesting they put the apache directives in the additional directive of the ispconfig web for that domain ???
regards
brainz ;):cool:
till
22nd June 2006, 13:17
Also till correct me if i am wrong here.... ispconfig does not use the apache server that comes native to the linux distribution either ????
ISPConfig uses the native apache webserver of the linux distribution to server the webpages of the domains you created in ISPConfig. The apache webserver that comes with ISPConfig is only used to serve the controlpanel on port 81.
Which means that the .pl file maybe setup to configure the native apache server and not ispconfigs apache server and this is why you are suggesting they put the apache directives in the additional directive of the ispconfig web for that domain ???
If I understood blackflags post correct, he wants to install OTRS in a website and not on port 81, but i might got that wrong.
By the way, thank you for answering so many posts :)
till
22nd June 2006, 13:18
what kind of derectives should I use ?
And Im wondering about this, cause I installed another Server with debian 3.1, there are not additional derectives necessary. What is the difference? Ubuntu is debian based.
Have you installed mod_perl and enabled it in the vhost where you installed OTRS.
blackflag
22nd June 2006, 16:29
Have you installed mod_perl and enabled it in the vhost where you installed OTRS
yes, mod_perl is enabled. I thought its only necessary to enable perl in apache2? Im wrong here?
How should I enable it for the vhost?
tia
stefan
I have experienced the same problem with otrs on Debian 3.1. I have not had time to really look into the problem yet.
The problem starts when trying to run installer.pl. When you save all settings in stage 2 of the install the config file in /etc/otrs/Kernel/Config.pm is not saved properly. There is a config file with default values but when you run installer.pl you end up with an empty config file (0 bytes) and a 500 error that says that the config file returned nu value (duh, it's empty...). :(
I tested it with the Debian package for otrs 1.X and with a tarball install of the latest 2.04, same problem with both. I will keep you updated on the progress if noone else figure out what is causing it. I have not been messing with the apache config yet to see if that has anything to do with it. Mod_perl is enabled for the webserver (apache2) which is sort of obvious since I can run through two steps of the install process in installer.pl before it goes wrong.
Blackflag, could you please check if your Config.pm is wiped when you get the 500 error too.
//Erk
blackflag
23rd June 2006, 11:26
Blackflag, could you please check if your Config.pm is wiped when you get the 500 error too.
No, its not!
You might have to add some additional directives in the apache directives window of the website.
okay, I tried it:
disable cgi in web
I do a soft link from cgi-bin of the vhost to /usr/share/otrs
in the apache derectives I add:
"ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ "
restart apache2
but its not working. error 500.
What is wrong? Can someone help?
tia stefan
falko
23rd June 2006, 18:17
What's in Apache's error log when you get a 500 error?
Can you post the vhost configuration from that web site (it's in Vhosts_ispconfig.conf)?
blackflag
24th June 2006, 10:53
What's in Apache's error log when you get a 500 error?
Thats what Im wondering about. The error 500 is not logged in apache2 error.log!
Can you post the vhost configuration from that web site (it's in Vhosts_ispconfig.conf)
Here it is:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.4:80
<VirtualHost 192.168.0.4:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.domain.tld:80
######################################
#
#
<VirtualHost 192.168.0.4:80>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*/egroupware) https://domain.tld/egroupware
SuexecUserGroup webmaster web1
ServerName www.domain.tld:80
ServerAdmin webmaster@domain.tld
DocumentRoot /var/www/web1/web
ServerAlias domain.tld
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
<IfModule mod_ssl.c>
<VirtualHost 192.168.0.4:443>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*/egroupware) https://domain.tld/egroupware
SuexecUserGroup webmaster web1
ServerName www.domain.tld:443
ServerAdmin webmaster@domain.tld
DocumentRoot /var/www/web1/web
ServerAlias domain.tld
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
SSLEngine on
SSLCertificateFile /var/www/web1/ssl/www.domain.tld.crt
SSLCertificateKeyFile /var/www/web1/ssl/www.domain.tld.key
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>
#
#
thanks, for looking this!
tia
stefan
falko
24th June 2006, 15:11
Thats what Im wondering about. The error 500 is not logged in apache2 error.log!
Is it maybe logged in ssl_error.log or somewhere else?
blackflag
25th June 2006, 18:25
Is it maybe logged in ssl_error.log or somewhere else?
I can not find a log entry anywhere!:confused:
What shall I do?
stefan
tosser
25th June 2006, 19:39
<VirtualHost 123.456.78.9:80>
#SuexecUserGroup otrs_user otrs_group
ServerName www.your_domain:80
ServerAdmin webmaster@your_domain
DocumentRoot /usr/share/otrs/bin/cgi-bin/
<Directory "/usr/share/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
ServerAlias any_other_domain
DirectoryIndex index.html index.htm index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
you must chown the files in /usr/share/otrs/cgi-bin for suexec or disable suexec. and correct the url. i marked it red, what you musst edit.
this is a vhost for otrs with debian sarge and apache2.
then should it run without any errors.
Found the problem with my setup.
The config file /usr/share/otrs/Kernel/Config.pm was set as a softlink to /etc/otrs/Kernel/Config.pm. Remove the link and copy the file from /etc.... to /usr/share/..... solved the problem.
That was for Debian 3.1, Apache2 and OTRS 2.
//Erk
blackflag
29th June 2006, 16:33
this is not solving the problem!
I get the error 500.
but I found a log in:
/var/www/web1/log/error.log
Thu Jun 29 15:28:37 2006] [error] [client 123.123.123.1xx] Premature end of script headers: index.pl
Can not find a solution in google.
Can someone help?
tia
stefan
Is this really the full error message in error.log?
Did you successully install OTRS since you are accessing index.pl?
//Erk
blackflag
29th June 2006, 19:55
Did you successully install OTRS since you are accessing index.pl?
Its the same. browsing to index.pl or installer.pl -> error500
someonme from otrs mailinglist has installed otrs on ubuntu without ispconfig.
ans he said that is working. So it must me an ispconfig issue!
what is to do?
can someone help?
tia
stefan
tosser
29th June 2006, 23:00
work any other perl scipts like a "hello world" script?
if this you vhost config of ispconfig?:
NameVirtualHost 192.168.0.4:80
<VirtualHost 192.168.0.4:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.domain.tld:80
######################################
#
#
<VirtualHost 192.168.0.4:80>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*/egroupware) https://domain.tld/egroupware
SuexecUserGroup webmaster web1
ServerName www.domain.tld:80
ServerAdmin webmaster@domain.tld
DocumentRoot /var/www/web1/web
ServerAlias domain.tld
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
<IfModule mod_ssl.c>
<VirtualHost 192.168.0.4:443>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*/egroupware) https://domain.tld/egroupware
SuexecUserGroup webmaster web1
ServerName www.domain.tld:443
ServerAdmin webmaster@domain.tld
DocumentRoot /var/www/web1/web
ServerAlias domain.tld
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
SSLEngine on
SSLCertificateFile /var/www/web1/ssl/www.domain.tld.crt
SSLCertificateKeyFile /var/www/web1/ssl/www.domain.tld.key
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>
#
there aren't any cgi paramters...
falko
30th June 2006, 00:22
Have a look here: http://httpd.apache.org/docs/2.0/howto/cgi.html#troubleshoot
dedibox
1st March 2007, 16:56
I'm also getting intermittent 500 errors with a fresh OTRS 2.1.5 installation running under ISPConfig.
The OTRS install is also very, very slow: from 5 to 20 seconds between each click.
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: index.pl
Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-18 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4
The weird thing is that the same script will work sometimes (and display the correct OTRS screens) and other times will generate this error.
In /var/log/apache2/error.log
[Thu Mar 01 15:23:28 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)
[Thu Mar 01 15:23:28 2007] [warn-phpa] unable to get shm cache (pid 1976)
[Thu Mar 01 15:29:31 2007] [notice] caught SIGTERM, shutting down
[Thu Mar 01 15:23:28 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)
[Thu Mar 01 15:23:28 2007] [warn-phpa] unable to get shm cache (pid 1976)
[Thu Mar 01 15:29:38 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
[Thu Mar 01 15:29:43 2007] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-18 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Thu Mar 01 15:30:34 2007] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Thu Mar 01 15:42:18 2007] [error] [client 158.x.y.z] Premature end of script headers: index.pl
[Thu Mar 01 15:42:48 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
[Thu Mar 01 15:46:25 2007] [error] [client 158.x.y.z] Premature end of script headers: index.pl
[Thu Mar 01 15:46:55 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
These are the instructions I followed to install OTRS:
http://doc.otrs.org/2.1/en/html/x325.html
/opt/otrs/Kernel/Config.pm
package Kernel::Config;
sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# Start of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = '*';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
# (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a tcpip connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self->{Home} = '/opt/otrs';
# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #
# $Self->{SessionUseCookie} = 0;
# $Self->{'CheckMXRecord'} = 1;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$
$Self->{'SystemID'} = 10;
$Self->{'SecureMode'} = 1;
$Self->{'Organization'} = '*.net';
$Self->{'LogModule::LogFile'} = '/tmp/otrs.log';
$Self->{'LogModule'} = 'Kernel::System::Log::SysLog';
$Self->{'FQDN'} = '*.dedibox.fr';
$Self->{'DefaultLanguage'} = 'fr';
$Self->{'DefaultCharset'} = 'utf-8';
$Self->{'AdminEmail'} = '*@free.fr';
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# End of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}
# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
use strict;
use vars qw(@ISA $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
$VERSION = '$Revision: 1.18 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# -----------------------------------------------------#
1;
excerpt from /etc/apache2/apache2.conf
#
# Basic apache configuration file for OTRS
#
# agent, admin and customer frontend
#
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
#
# Directory settings
#
<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>
martinfst
1st March 2007, 17:15
Have you modified the startup scripts and other stuff according to their website: http://doc.otrs.org/2.1/en/html/x1782.html? I've seen these type of errors when a perl app was not developed with mod_perl in mind.
Example: awstats fails to run properly in mod_perl2. Sometimes it works, sometimes it fails. Reason: a regex optimalisation screwed variable memory. Moving the regexp outsite a loop solved the problem. :eek:
dedibox
1st March 2007, 17:21
Have you modified the startup scripts and other stuff according to their website: http://doc.otrs.org/2.1/en/html/x1782.html?
Thanks for the tips. I looked through the list, but these are performance-related fixes. That will be an issue once I've fixed the 500 errors, which are a show-stopper at this point.
martinfst
1st March 2007, 17:29
You can disable suExec, as you're not in your docroot because of the aliases.
What's in the webserver log file of the site: /var/www/web<nn>/log/error.log ? Adjust the path to where you configured the sites of ISPConfig.
dedibox
1st March 2007, 17:35
You can disable suExec, as you're not in your docroot because of the aliases.
What's in the webserver log file of the site: /var/www/web<nn>/log/error.log ? Adjust the path to where you configured the sites of ISPConfig.
How do you disable suExec? And what difference would it make?
OTRS is not installed under one of the ISPConfig sites/ It resides in /opt/otrs, with an Alias pointing to /opt/otrs/bin/cgi-bin/
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
The error.log is posted in my first message.
dedibox
1st March 2007, 19:18
In some cases, I'm seeing the ISPConfig blue-and-white 500 error screen. In other instances, I'm seeing
This is all intermittent, and I have no clue as to why in some cases the OTRS screen loads (albeit very slowly!) and in other cases I get the 500 error.
martinfst
1st March 2007, 20:22
Premature end of script headers: index.plIndicates a problem with the script. Like I said before, it looks like otrs is not capable of running in this specific mod_perl installation. Mayby try to grab the 1st page with 'wget' and not with a browser may give you some hint where to start looking.
It's very unlikely this is ISPConfig related. I have a Perl CMS running with mod_perl and ISPConfig without any problems.
dedibox
2nd March 2007, 12:18
Indicates a problem with the script. Like I said before, it looks like otrs is not capable of running in this specific mod_perl installation. Mayby try to grab the 1st page with 'wget' and not with a browser may give you some hint where to start looking.
It's very unlikely this is ISPConfig related. I have a Perl CMS running with mod_perl and ISPConfig without any problems.
All of the other posts in this thread refer to problems with VHosts. What makes you think that my own 500 errors are unrelated to how ISPConfig handles these?
How come OTRS works *most* of the time, but then suddenly I will get a 500 error? Why do I sometimes get a generic 500 error and at other times I get a ISPConfig 500.html error?
If it's not related to ISPConfig, what can cause these errors?
falko
2nd March 2007, 14:15
I wonder if this error:
[Thu Mar 01 15:30:34 2007] [error] server reached MaxClients setting, consider raising the MaxClients setting
is somehow related to your problem. Do you have a high load average on your server?
dedibox
2nd March 2007, 14:54
I wonder if this error:
[Thu Mar 01 15:30:34 2007] [error] server reached MaxClients setting, consider raising the MaxClients setting
is somehow related to your problem. Do you have a high load average on your server?
I have had problems with high load averages.
I've removed ORTS configuration from apache2.conf and put the following into /etc/apache2/conf.d/apache2-httpd-new.include.conf
# --
# added for OTRS (http://otrs.org/)
# --
#already loaded
#LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
#PerlModule Apache2::Reload
#PerlInitHandler Apache2::Reload
#PerlModule Apache2::RequestRec
# Suggestion from nils@lemonbit.nl based on CentOS 4 config
#PerlModule Apache::Reload
#PerlInitHandler Apache::Reload
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
# ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
DirectoryIndex index.pl
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.pl
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
I commented out the PerlModule lines because Apache would not load with them.
With this configuration, I no longer get 500 errors. Instead, I get the wrong screens, ie when I click on Preferences, the current screen simply reloads, even though the URL does change to http://88.191.14.190/otrs/index.pl?Action=AgentPreferences
If I reload several times, then the Preferences screen eventually loads.
The other strange behavior is that even though I have DirectoryIndex index.pl, I can't access the main login screen without typing out index.pl at the end of the URL.
What's going on?
martinfst
2nd March 2007, 15:08
Although I think you should lower your voice given the fact that that we're helping you based on the Open Source charter and mindset (be friendly and considerate to your fellows), I'll give you my Perl configuration which works fine.
500 error are almost always due to configuration errors or typo's. Take a deep breath and give yourself a bit of time to get this fixed.
In /etc/apache2/conf.d I have created a perl.conf file which contains:
<Files ~ "\.(pl)$">
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlOptions +ParseHeaders
</Files>
PerlRequire /usr/local/WebGUI/sbin/preload.perl
I have no no other setHandlers, PerlResponse or whatever directives. I suggest you try to take them out and start with a minimum configuration.
dedibox
2nd March 2007, 16:40
martin, Sorry I did not mean to be rude. I very much appreciate your help, of course!
I tried your perl.conf file. However, I do not have the following:
/usr/local/WebGUI/sbin/preload.perl
so I commented this line out and replaced it with:
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
Now Firefox 2.0 gives me the following message, whereas Safari simply reloads the current page:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
In /var/log/apache2/error.log
[Fri Mar 02 15:25:47 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)
[Fri Mar 02 15:25:47 2007] [warn-phpa] unable to get shm cache (pid 1976)
[Fri Mar 02 15:25:47 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)
[Fri Mar 02 15:25:47 2007] [warn-phpa] unable to get shm cache (pid 1976)
[Fri Mar 02 15:25:52 2007] [notice] caught SIGTERM, shutting down
[Fri Mar 02 15:25:47 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)
[Fri Mar 02 15:25:47 2007] [warn-phpa] unable to get shm cache (pid 1976)
[Fri Mar 02 15:25:54 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
[Fri Mar 02 15:25:58 2007] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-18 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Mar 02 15:26:37 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
[Fri Mar 02 15:25:58 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 2053)
[Fri Mar 02 15:25:58 2007] [warn-phpa] unable to get shm cache (pid 2053)
[Fri Mar 02 15:26:49 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
[Fri Mar 02 15:26:53 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
[Fri Mar 02 15:26:53 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.ico
martinfst
2nd March 2007, 17:40
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This means a rewrite rule or alias mapping or whatever is not correct somewhere. Firefox is quite good at detecting this. Because of this, it just stops processing.
You can add in the apache2.conf file the following to get more ideas what might be wrong:RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 5 Hopefully that will give an indication what might be causing this.
/usr/local/WebGUI/sbin/preload.perl
so I commented this line out and replaced it with:
Perlrequire /opt/otrs/scripts/apache2-perl-startup.plCorrect. I left this to show how I do it for a CMS. [Fri Mar 02 15:25:47 2007] [warn-phpa] No shm_user is set and so no shm cache will be created (pid 1976)This is not good. Apache depends a lot on shared memory. Do you have any directive in your apache2.conf that refer to shared memory? Can you post those, if any?
[Fri Mar 02 15:26:37 2007] [error] [client 158.x.y.z] File does not exist: /var/www/sharedip/favicon.icoNot a big deal. Just the small icon in your address line. Either add a .ico file in the directory or remove the <link rel=....> statement in the html/php/pl sources. But why is it refering to the sharedip address? Thought you did a ScriptAlias? Let's see what the rewrite.log file has to say.
dedibox
3rd March 2007, 00:39
There is plenty in RewriteLog (for my CMS which makes extensive use of RewriteRule) but *nothing* coming otrs except this:
[Fri Mar 02 16:31:19 2007] [error] [client] attempt to invoke directory as script: /opt/otrs/bin/cgi-bin/
martinfst
3rd March 2007, 13:35
Have you set the directory index? Looks like it, but maybe during testing it got removed?
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
DirectoryIndex index.pl
</Directory>
And if the CMS rewrite rules appear when you only try to execute otrs, these rules could interfere. Are you sure no rewriting is done? Could you (temporary) comment the CMS rewrite rules and test only otrs?
dedibox
3rd March 2007, 15:54
Martin, you were right: that error was a glitch from messing with the configuration. In fact, after having disabled my CMS RewriteRules, it appears that OTRS must not use them, because nothing ends up in rewrite.log!
So where are those redirects coming from?
martinfst
3rd March 2007, 17:19
I guess you accessed the site and the rewrite rules were triggered. .htaccess files are processed throughout the directory tree, so if you have a .htaccess in a level up where you installed otrs, they still get processed.
If you disable the rewrite rules, is otrs working?
dedibox
3rd March 2007, 18:40
I guess you accessed the site and the rewrite rules were triggered. .htaccess files are processed throughout the directory tree, so if you have a .htaccess in a level up where you installed otrs, they still get processed.
If you disable the rewrite rules, is otrs working?
There are no rewrite rules anywhere above the otrs directory, which in fact sits in /opt/otrs but is aliased with Alias and ScriptAlias. So there is nothing to disable, and otrs works (albeit for the infinite redirect loops which are *not* due to a rewrite rule but to something else...?).
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
So at this point I'm no longer getting 500 errors, but still getting infinite redirects (according to Firefox) and in some instances the wrong screen loads, as if OTRS could not decipher what's after index.pl, ie if I click on a link to index.pl?Action=AgentTicketQueue&QueueID=9 OTRS will reload the current screen or, in Firefox, end in an infinite loop. This behavior appears to be random: a few minutes later, the screen will reload! I've tested with different browsers on different machines, so I'm fairly confident that it is a server-side problem.
falko
4th March 2007, 15:38
Can you post your vhost configuration here and the contents of your .htaccess file?
dedibox
4th March 2007, 17:06
Can you post your vhost configuration here and the contents of your .htaccess file?
There is no .htaccess file in the host used for OTRS, which is running under sd-1494.dedibox.fr.
/etc/apache2/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 88.191.14.190:80
<VirtualHost 88.191.14.190:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.vihinfo.net:80
######################################
#
#
<VirtualHost 88.191.14.190:80>
ServerName www.vihinfo.net:80
ServerAdmin webmaster@vihinfo.net
DocumentRoot /home/www/web6/web
ServerAlias www.papamamanbebe.net papamamanbebe.net lemegalodon.net www.lemegalodon.net vihinfo.net survivreausida.net www.survivreausida.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web6/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: sd-1494.dedibox.fr:80
######################################
#
#
<VirtualHost 88.191.14.190:80>
ServerName sd-1494.dedibox.fr:80
ServerAdmin webmaster@dedibox.fr
DocumentRoot /home/www/web8/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /home/www/web8/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web8/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web8/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web8/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web8/user/$1/web/$3
</VirtualHost>
#
#
#
falko
5th March 2007, 19:22
Nothing special in the Vhosts_ispconfig.conf file. So maybe the problem is in your main Apache configuration?
dedibox
5th March 2007, 19:43
/etc/apache2/apache2.conf
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile /var/run/apache2.pid
Timeout 30
KeepAlive On
MaxKeepAliveRequests 50
KeepAliveTimeout 3
<IfModule prefork.c>
StartServers 1
MinSpareServers 10
MaxSpareServers 30
MaxClients 50
MaxRequestsPerChild 300
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
AcceptMutex fcntl
</IfModule>
User www-data
Group www-data
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog /var/log/apache2/error.log
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/[^.#]*
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
Alias /error/ "/usr/share/apache2/error/"
<Directory "/usr/share/apache2/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
</IfModule>
</IfModule>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName Off
TypesConfig /etc/mime.types
DefaultType text/plain
HostnameLookups Off
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
# This really should be .jpg.
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* RCS CVS *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
#AddDefaultCharset ISO-8859-1
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
<FilesMatch "\.shtml(\..+)?$">
##ISPConfig INSTALL## SetOutputFilter INCLUDES
</FilesMatch>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
<Location /server-status>
SetHandler server-status
# ExtendedStatus On
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
ExtendedStatus On
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*
<Directory /var/www/sharedip>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
<Directory /home/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
/etc/apache2/conf.d/otrs.conf
#already loaded
#LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
# DirectoryIndex index.pl
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
/etc/apache2/conf.d/perl.conf
<Files ~ "\.(pl)$">
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlOptions +ParseHeaders
</Files>
#PerlRequire /usr/local/WebGUI/sbin/preload.perl
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
falko
6th March 2007, 18:46
Can you comment out this line:
Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
in your Apache configuration and restart Apache? Does OTRS work then?
dedibox
6th March 2007, 20:16
When I comment out the VHosts, I no longer get infinite redirects in Firefox.
However, the URL after index.pl? still does not get read properly, as I get apparently random screens loading or a reload of the current screen.
For example, this screen will load properly:
http://88.191.14.190/otrs/index.pl?Action=Admin
I then click on a link that appears on the Admin screen:
http://88.191.14.190/otrs/index.pl?Action=AgentTicketQueue
Instead of getting the ticket queue, the Admin screen reloads!
Also, I have to type out index.pl after the OTRS URL, so for some reason index.pl is not recognized as a default page, unlike index.php or index.html.
Tested on Firefox 2.0.0.2 with Cache turned OFF to force page loading from server.
falko
7th March 2007, 20:02
Also, I have to type out index.pl after the OTRS URL, so for some reason index.pl is not recognized as a default page, unlike index.php or index.html.
Tested on Firefox 2.0.0.2 with Cache turned OFF to force page loading from server.
I think you need to uncomment
DirectoryIndex index.pl
in /etc/apache2/conf.d/otrs.conf.
dedibox
8th March 2007, 01:21
I uncommented
DirectoryIndex index.pl
restarted Apache
and still can't get the index page without typing out index.pl
till
8th March 2007, 09:31
I uncommented
DirectoryIndex index.pl
restarted Apache
and still can't get the index page without typing out index.pl
You will have to add index.pl at the end of the DirectoryIndex directive in your apache2.conf file (may be named apache.conf or httpd.conf depending on your distribution).
dedibox
8th March 2007, 09:39
Till, that's what bizarre: index.pl is already in my apache2.conf file:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
I also tried adding index.pl to the DirectoryIndex in /root/ispconfig/httpd/conf/httpd.conf
But that does not appear to change anything.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.