[SOLVED] Mod_perl

Moderator: crythias

Post Reply
zhakal
Znuny newbie
Posts: 47
Joined: 30 Jul 2011, 20:06
Znuny Version: 3.0.11

[SOLVED] Mod_perl

Post by zhakal »

We've installed OTRS 3.1.5 on Redhat 6.2 with a mysql database.
Everything works as it should, just not mod_perl. The following is the output from the Support Assessment and if i disable the perl module cgid it work either.
So if anybody has a good way of fixing this. It would help alot!!

Display web server version.
You are running Apache/2.2.22 (Unix) mod_perl/2.0.6 Perl/v5.10.1.

Check for CGI Accelerator.
You should use FastCGI or mod_perl to increase your performance.

Check Perl Modules installed.
o CGI..............................ok (v3.59)
o Crypt::PasswdMD5.................ok (v1.3)
o Crypt::SSLeay....................ok (v0.57)
o CSS::Minifier....................ok (v0.01)
o Date::Format.....................ok (v2.24)
o Date::Pcalc......................ok (v1.2)
o DBI..............................ok (v1.620)
o DBD::mysql.......................ok (v4.013)
o DBD::ODBC........................Not installed! (Optional - Required to connect to a MS-SQL database.)
o DBD::Oracle......................Not installed! (Optional - Required to connect to a Oracle database.)
o DBD::Pg..........................Not installed! (Optional - Required to connect to a PostgreSQL database.)
o Digest::MD5......................ok (v2.39)
o Digest::SHA::PurePerl............ok (v5.70)
o Digest::SHA......................ok (v5.47)
o Encode::HanExtra.................ok (v0.23)
o Encode::Locale...................ok (v1.02)
o GD...............................ok (v2.44)
o GD::Text......................ok (v0.86)
o GD::Graph.....................ok (v1.44)
o GD::Graph::lines..............ok (v1.15)
o GD::Text::Align...............ok (v1.18)
o IO::Scalar.......................ok (v2.110)
o IO::Wrap.........................ok (v2.110)
o JavaScript::Minifier.............ok (v1.05)
o JSON.............................ok (v2.53)
o JSON::PP......................ok (v2.27200)
o JSON::XS......................ok (v2.32)
o Locale::Codes....................ok (v3.18)
o LWP::UserAgent...................ok (v6.03)
o Mail::Internet...................ok (v2.08)
o Mail::POP3Client.................ok (v2.18 )
o IO::Socket::SSL...............ok (v1.31)
o Mail::IMAPClient.................ok (v3.30)
o IO::Socket::SSL...............ok (v1.31)
o MIME::Base64.....................ok (v3.08)
o MIME::Tools......................ok (v5.428)
o ModPerl::Util....................ok (v2.000006)
o Apache::DBI...................ok (v1.11)
o Apache2::Reload...............ok (v0.11)
o Net::DNS.........................ok (v0.68)
o Net::POP3........................ok (v2.29)
o Net::IMAP::Simple................ok (v1.2030)
o Net::IMAP::Simple::SSL........ok (v1.3)
o Net::SMTP........................ok (v2.31)
o Authen::SASL..................ok (v2.15)
o Net::SMTP::SSL................ok (v1.01)
o Net::SMTP::TLS::ButMaintained.ok (v0.18)
o Net::LDAP........................ok (v0.44)
o Net::SSL.........................ok (v2.84)
o PDF::API2........................ok (v2.019)
o Compress::Zlib................ok (v2.052)
o SOAP::Lite.......................ok (v0.714)
o version.......................ok (v0.77)
o Class::Inspector..............ok (v1.25)
o Text::CSV........................ok (v1.21)
o Text::CSV_PP..................ok (v1.29)
o Text::CSV_XS..................ok (v0.85)
o XML::Parser......................ok (v2.41)
o HTTP::Message....................ok (v6.02)
o HTTP::Headers.................ok (v6.00)
o URI..............................ok (v1.59)
o URI::Escape...................ok (v3.31)
o Scalar::Util.....................ok (v1.21)

perldoc perllocal
Fri May 18 12:08:16 2012: "Module" mod_perl2
· "installed into: /usr/local/share/perl5"
· "LINKTYPE: dynamic"
· "VERSION: 2.0.6"
· "EXE_FILES: bin/mp2bug"

./apachectl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
perl_module (shared)
alias_module (shared)
auth_digest_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
autoindex_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
ext_filter_module (shared)
headers_module (shared)
include_module (shared)
log_config_module (shared)
mime_magic_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
substitute_module (shared)
userdir_module (shared)
version_module (shared)
vhost_alias_module (shared)
Syntax OK
Last edited by zhakal on 25 May 2012, 22:44, edited 1 time in total.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Mod_perl

Post by Wolfgangf »

... and did you configure your otrs startup script to use mod_perl?
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
zhakal
Znuny newbie
Posts: 47
Joined: 30 Jul 2011, 20:06
Znuny Version: 3.0.11

Re: Mod_perl

Post by zhakal »

Yes, we compiled a worker apache in /opt/apache with the same modules as the one you get from "yum install httpd"
The config loads mod_perl correctly through zzz_otrs.conf with the same httpd.conf in standard as used by the compiled one.
So it's something strange as the configs work in one installation but not the other.

But as a workaround we used the standard installation provided through yum, but it's not optimal as we want to have more then one instance of OTRS on a server and all having mod_perl.
This doesn't seem to work with VirtualDirectory and +Parent variable properly, atleast not what we managed to do. So we hoped to compile several "standalone" apache side by side on the machine, they load and work, but doesn't actually use the mod_perl which then makes it "half" working.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
dylan650
Znuny newbie
Posts: 29
Joined: 18 May 2012, 19:48
Znuny Version: 3.1.2

Re: Mod_perl

Post by dylan650 »

I read your post a few times. I still don't know what your problem is. Can you post what your problem is? Saying that mod_perl doesn't work is like saying my car doesn't work.
zhakal
Znuny newbie
Posts: 47
Joined: 30 Jul 2011, 20:06
Znuny Version: 3.0.11

Re: Mod_perl

Post by zhakal »

dylan650 wrote:I read your post a few times. I still don't know what your problem is. Can you post what your problem is? Saying that mod_perl doesn't work is like saying my car doesn't work.
When I start the Apache worker (none standard installation through yum) it starts, loads up OTRS with all modules specified with LoadModule in httpd.conf. One of these are mod_perl.
But when i comment out the cgi module in httpd, everything is shown in plain text. I wonder then why mod_perl isn't working and not getting loaded when the support Assessment show under Web Server version that it uses mod_perl 2.0.6.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
dylan650
Znuny newbie
Posts: 29
Joined: 18 May 2012, 19:48
Znuny Version: 3.1.2

Re: Mod_perl

Post by dylan650 »

but... the scripts are all cgi scripts?

So, if you don't allow cgi execution, then you will download the cgi instead. Does that make sense?
zhakal
Znuny newbie
Posts: 47
Joined: 30 Jul 2011, 20:06
Znuny Version: 3.0.11

Re: Mod_perl

Post by zhakal »

Thanks for all the feedback. This issue was solved by doing a new compilation of Apache with even more modules then suggested by default.
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
Post Reply