apache2-perl-startup.pl customization not needed anymore?

Moderator: crythias

Locked
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

apache2-perl-startup.pl customization not needed anymore?

Post by Giulio Soleni »

Hi,
I installed the last version available of OTRS (ver. 3.2.9) on CentOS 5.9.

I disabled the cgi_module commenting the line in httpd.conf

Code: Select all

#LoadModule cgi_module modules/mod_cgi.so
I installed (using CPAN) the ModPerl modules:
o ModPerl::Util....................ok (v2.000004)
o Apache::DBI....................ok (v1.11)
o Apache2::Reload................ok (v0.10)

Considering the following outputs...

Code: Select all

[root@otrstest1 ~]# /usr/sbin/apxs -q LIBEXECDIR
/usr/lib64/httpd/modules
[root@otrstest1 ~]# ls -l /usr/lib64/httpd/modules/mod_perl.so
-rwxr-xr-x 1 root root 232752 Jan 21  2009 /usr/lib64/httpd/modules/mod_perl.so
...I double checked the presence of the line

Code: Select all

LoadModule perl_module modules/mod_perl.so
inside /etc/httpd/conf.d/perl.conf which is included by /etc/httpd/conf/httpd.conf as it can be seen:

Code: Select all

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
Finally, after a restart of httpd service I checked that the mod_perl is actually loaded, using the comnmand:

Code: Select all

[root@otrstest1 ~]# apachectl -t -D DUMP_MODULES
...
 perl_module (shared)
...
After the installation of OTRS I checked the Support Info at the admin web console and everything seems to be ok

Webserver

OK Check if the system uses Apache::DBI.
Apache::DBI

OK Check if the system uses Apache::Reload/Apache2::Reload.
Apache2::Reload

OK Display web server version.
You are running Apache/2.2.3 (CentOS).

OK Check for CGI Accelerator.
mod_perl/2.0.4

So apparently everything turns out to be OK but I did not touch the original apache2-perl-startup.pl as I did before, specifying there

Code: Select all

Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', '********');
use DBI ();
I noticed, moreover, that before (in the previous versions of OTRS), that lines were commented, and I uncommented them, specifying my db-password... now they are not present at all.
I left also commented the following lines:

Code: Select all

#use DBD::mysql ();
#use Kernel::System::DB::mysql;
So my apache2-perl-startup.pl file is in place with the following untouched configuration:

Code: Select all


use Apache2::RequestRec;
use ModPerl::Util;

use lib "/opt/otrs/";
use lib "/opt/otrs/Kernel/cpan-lib";
use lib "/opt/otrs/Custom";

# Preload frequently used modules to speed up client spawning.
use CGI ();
CGI->compile(':cgi');
use CGI::Carp ();

use Apache::DBI;

# enable this if you use mysql
#use DBD::mysql ();
#use Kernel::System::DB::mysql;

my question is: should I also edit this file with a connect_on_init statement (as I used to do before), and uncommenting the two lines belonging to MySql to be sure OTRS is using mod_perl or it is not needed anymore?
Am I really using mod_perl or that original specifics in apache2-perl-startup.pl turn apache to work with mod_cgi instead?

Thank you in advance
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Locked