Apache not starting

Moderator: crythias

Locked
humanv2
Znuny newbie
Posts: 3
Joined: 18 Feb 2011, 23:33
Znuny Version: 3.0.5

Apache not starting

Post by humanv2 »

Hello. I just want to say that OTRS rocks. But only if it's working.

I don't think I've changed anything, but I wouldn't be here if I hadn't it seems. Anyway, I'm getting an apache error on startup. As far as I know, all I did to cause the error was restart apache. Here is the relevant data from the error log.

Code: Select all

[Mon Mar 14 11:11:57 2011] [error] Insecure dependency in require while running with -T switch at /opt/otrs//Kernel/Config/Defaults.pm line 37.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/Config/Defaults.pm line 37.\nCompilation failed in require at /opt/otrs//Kernel/Config.pm line 96.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/Config.pm line 96.\nCompilation failed in require at /opt/otrs/scripts/apache2-perl-startup.pl line 67.\nBEGIN failed--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 67.\nCompilation failed in require at (eval 2) line 1.\n
[Mon Mar 14 11:11:57 2011] [error] Can't load Perl file: /opt/otrs/scripts/apache2-perl-startup.pl for server wfdev1.ewebforce.net:0, exiting...
What do you think?

Edit: more data.

Line 37 of /opt/otrs//Kernel/Config/Defaults.pm is:

Code: Select all

use File::stat;
Line 96 of /opt/otrs//Kernel/Config.pm is:

Code: Select all

use Kernel::Config::Defaults;
Also,

Code: Select all

[root@wfdev1 otrs]# perl -c /opt/otrs//Kernel/Config/Defaults.pm
/opt/otrs//Kernel/Config/Defaults.pm syntax OK
[root@wfdev1 otrs]# perl -c /opt/otrs//Kernel/Config.pm
/opt/otrs//Kernel/Config.pm syntax OK
humanv2
Znuny newbie
Posts: 3
Joined: 18 Feb 2011, 23:33
Znuny Version: 3.0.5

Re: Apache not starting

Post by humanv2 »

I believe the official answer is to uninstall and reinstall OTRS.

I had used yum to install OTRS at one point, so removing it was trivial. Removed otrs user as well. This time I installed from source.

Made a MySQL dump of the OTRS db (which had already migrated to most current version during previous upgrade attempt).

After OTRS is reinstalled, you can drop the database and replace it with your old one, using mysql command line.

I had to upload the ITSM package again. Before I uploaded, OTRS complains about the broken ITSM package (because it's in the database, but files are missing). Just reinstall and it will be processed as an upgrade.
Locked