OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Moderator: crythias

Locked
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Team ,
I have just tried to OTRS (3-3.8) on RHEL 6 .
I have also installed some modules (But some are not installed like GD etc....).
I have notice all services running fine (MYSQLD,OTRS and HTTPD).
But when i tried to open otrs in firefox using "http://yourhost/otrs/index.pl" am getting a page cannot be find/displayed error .
Is that mandatory that all modules should be installed .

Modules Missing :

o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o GD...............................Not installed! (optional - Required for stats.)
o GD::Text.......................FAILED! Not all prerequisites for this module correctly installed.
o GD::Graph......................FAILED! Not all prerequisites for this module correctly installed.

Am getting this error while trying to install modules through CPAN :


**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL --installdirs site -- NOT OK
Failed during this command:
LDS/GD-2.56.tar.gz : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512




While starting HTTP am getting below ,

Starting httpd: [Tue Dec 30 17:20:51 2014] [warn] The ScriptAlias directive in /etc/httpd/conf.d/zzz_otrs.conf at line 5 will probably never match because it overlaps an earlier ScriptAlias.
[Tue Dec 30 17:20:51 2014] [warn] The Alias directive in /etc/httpd/conf.d/zzz_otrs.conf at line 6 will probably never match because it overlaps an earlier Alias.
httpd: Could not reliably determine the server's fully qualified domain name, using *.*.*.*(IP) for ServerName


Thanks in advance .
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by reneeb »

Regarding the GD issue: Try to install them with your systems package manager.

Regarding the other issue:
Starting httpd: [Tue Dec 30 17:20:51 2014] [warn] The ScriptAlias directive in /etc/httpd/conf.d/zzz_otrs.conf at line 5 will probably never match because it overlaps an earlier ScriptAlias.
[Tue Dec 30 17:20:51 2014] [warn] The Alias directive in /etc/httpd/conf.d/zzz_otrs.conf at line 6 will probably never match because it overlaps an earlier Alias.
httpd: Could not reliably determine the server's fully qualified domain name, using *.*.*.*(IP) for ServerName
So check your apache configs and find all the ScriptAlias'
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Hi ,

PLease kindly give document if you have !!!
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by reneeb »

I don't know which configuration files you have.

Please do

Code: Select all

cd /etc/apache2
grep -r "ScriptAlias" conf*
(I don't know the location where RHEL installs the Apache to)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
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

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by Giulio Soleni »

Hallo,
my contribute related to the module installation issues.
With CentOS 6.x all the required modules are available from the standard repos or from EPEL repos and can be installed with yum. I guess the same is for RHEL 6.
These are the steps valid for CentOS 6 x86_64:
- Setup EPEL repos as
download the last available version of EPEL repository in a tmp folder:

Code: Select all

wget http://ftp-stud.hs-esslingen.de/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
... along with EPEL repo public key, that must be imported in the rpm Public Key Infrastructure:

Code: Select all

wget --no-check-certificate https://fedoraproject.org/static/0608B895.txt
mv 0608B895.txt /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
and install the EPEL repository:

Code: Select all

yum install epel-release-6-8.noarch.rpm
- Install all the required Perl Modules:

Code: Select all

yum install "perl(Net::LDAP)"
yum install "perl(Date::Format)"
yum install "perl(Net::DNS)"
yum install "perl(Crypt::Eksblowfish::Bcrypt)" 
yum install "perl(DBD::mysql)"     <<<<< IMPORTANT: this package requires mysql-community-libs-compat
yum install "perl(GD)"
yum install "perl(GD::Text)"
yum install "perl(GD::Graph)"
yum install "perl(JSON::XS)"
yum install "perl(Mail::IMAPClient)"
yum install "perl(PDF::API2)"
yum install "perl(Text::CSV_XS)"
yum install "perl(YAML::XS)"
The following pkg is not strictly required but strongly suggested:

Code: Select all

yum install "perl(Apache::DBI)"
The following package is required to use the Generic Interface.

Code: Select all

yum install "perl(SOAP::Lite)"
As for CPAN... as reneeb already suggested, whenever available you should install and update all the packages using your systems package manager (yum for CentOS and RHEL) so that you may keep updated and aligned the internal rpm system database.
However you may also use CPAN, of course, that requires itself some modules to be installed ahead of time. So check if you have already installed the following:

Code: Select all

yum install perl-YAML
yum install gcc
yum install gdbm.i686
yum install gdbm-devel
yum install gdbm-devel.i686
Then configure CPAN issuing the command:

Code: Select all

perl -e shell -MCPAN
If you already run the auto-configuration procedure before, you may run it again from the CPAN prompt issuing the following command:

Code: Select all

cpan> o conf init
Finally, just to point you in the direction about Apache configuration, in RHEL the configuration files are under /etc/httpd/conf/httpd.conf
I think you should check if you have installed all the required apache packages:

Code: Select all

yum list httpd
And if you do not have "devel" installed, then install them also:

Code: Select all

yum install httpd-devel
yum install httpd-devel.i686

EDIT: I forgot to mention that on RHEL you should disable SELinux. To do this edit /etc/selinux/config file changing the line:

Code: Select all

SELINUX=enforcing
into

Code: Select all

SELINUX=disabled
and reboot the system

and also iptables firewall, if not strictly required, should be disabled issuing the following:

Code: Select all

service iptables save
service iptables stop
chkconfig iptables off
service ip6tables save
service ip6tables stop
chkconfig ip6tables off
HTH
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.
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Team ,

Have already configured "EPEL" on my RHEL 6 .
But am not getting the modules .
PLease find below details .


yum install "perl(GD)"
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package perl(GD) available.
Error: Nothing to do


Thanks in advance .
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

When i tried to install via CPAN ,

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL --installdirs site -- NOT OK
Failed during this command:
LDS/GD-2.56.tar.gz : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512


AM getting above error :(.
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Please find my configuration details .

# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Oct 6 2011 11:06:33
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
# rpm -qa otrs
otrs-3.3.11-01.noarch
# rpm -qa mysql
mysql-5.1.52-1.el6_0.1.x86_64
# uname -a
Linux 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux.

Team please kindly help me am in very critical condition !!!! :?
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

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by Giulio Soleni »

If you cannot install perl(GD) from official repositories you may try to download and install it from a public repo:
This for example ftp://rpmfind.net/linux/centos/6.6/os/x ... x86_64.rpm
However sometimes CentOS packages are not 100% equals to RHEL packages ... often in terms of dependencies.
In CentOS it's easy to find, download and install all the dependencies for a package since it's all free.
In RHEL it should be easy too, unless you do not have a RHN subscription.

Anyhow, try to download that perl-GD-2.44-3.el6.x86_64.rpm above and install it on your system with the following:

Code: Select all

up2date -i -v perl-GD-2.44-3.el6.x86_64.rpm
and if it does not work try also:

Code: Select all

rpm -ivh --aid perl-GD-2.44-3.el6.x86_64.rpm
Both these command in RHEL should install a package along with all its required dependencies - provided that you have an active subscription with Red Hat.
Otherwise, my personal suggestion is switch to CentOS or OpenSuSE or another OTRS supported open Linux platform.
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.
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

When am trying to instal, am getting an error to install the below

libgd 2.0.28


Can any one help !!!!Its would be very much appreciate !!!!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by jojo »

get commercial help for setup or an hosted system.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

???????
Sorry !!!! cant understand !!!!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by jojo »

buy commercial services for setup and operation
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Hi Finally i have installed the GD module also .

But still i couldn't get on webpage by using "http://localhost/otrs/installer.pl".
Please help me guys !!!!
How can i install through webpage .
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by reneeb »

reneeb wrote:I don't know which configuration files you have.

Please do

Code: Select all

cd /etc/apache2
grep -r "ScriptAlias" conf*
(I don't know the location where RHEL installs the Apache to)
Nothing to add... Did you run the commands? What was the output?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Team ,

Please find the below config details .

# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Oct 6 2011 11:06:33
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
# rpm -qa otrs
otrs-3.3.8-01.noarch
# rpm -qa mysql
mysql-5.1.52-1.el6_0.1.x86_64
# uname -a
Linux 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

Note:

SElinux is disabled (But didnt reboot system).
I have installed , When i try on webpage to open "https:localhost/opt/index.html) am getting below error .
_________________________________________________________________________________________________________________________
The connection has timed out

The server at *.*.*.(IP) is taking too long to respond.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Try Again

__________________________________________________________________________________________________________________________
Apache config file : /etc/httpd/conf.d/zzz_otrs.conf
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by reneeb »

What does the error log say?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
maddy
Znuny newbie
Posts: 17
Joined: 29 Dec 2014, 12:22
Znuny Version: otrs-3.3.8
Real Name: Madhan Mani
Company: Google

Re: OTRS 3-3.8 not working on RHEL 6(IMPOrTANT)

Post by maddy »

Hi Team,

I have installed OTRS on RHEL 6 .
But i couldn't able to connect in Firefox , I was getting an error like firewall blocking etc......
Then i disabled SE_Linux and added some rules in iptables to allow port 80 and 443 .
Now i can able to access .
So i should keep SE_Linux in disable mode always !!!!!


Thanks ,
Maddy !!
Locked