Database Password Retrieval

Moderator: crythias

Locked
starstreak
Znuny newbie
Posts: 1
Joined: 10 Mar 2011, 18:21
Znuny Version: 3.0.6

Database Password Retrieval

Post by starstreak »

I followed the Ubuntu 10.04 guide to install OTRS and it did install properly, however I used a password generator to create a password for the OTRS database. As indicated under the Web installer section, I attempted to retrieve the password from the /opt/otrs/Kernel/Config.pm file so that I could setup the Apache::DBI module, however line 48 of the Config.pm file reads

Code: Select all

$Self->{'DatabasePw'} = 'bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs ';
This seems odd to me, since this is a command I ran earlier in the process to setup the proper permissions for the directory and has nothing to do with the database. What's even stranger is that I am able to login to OTRS without a problem. Going to http://localhost/otrs-web/ brings me to the login page, and I can interact with the system. I am getting errors when I attempt to go to http://localhost/otrs/, and I don't know if they are normal or not:
Software error:

slurp_filename('/var/www/otrs') / opening: (2) No such file or directory at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 541
For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
Furthermore, the file that the instructions are telling me to modify and enable Apache::DBI does not run:

Code: Select all

root@server:/opt/otrs# /opt/otrs/scripts/apache2-perl-startup.pl 
[Thu Mar 10 11:43:25 2011] apache2-perl-startup.pl: Use of uninitialized value $ENV{"MOD_PERL"} in pattern match (m//) at /opt/otrs/scripts/apache2-perl-startup.pl line 28.
Status: 500
Content-type: text/html

<h1>Software error:</h1>
<pre>MOD_PERL not used! at /opt/otrs/scripts/apache2-perl-startup.pl line 28.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message 
and the time and date of the error.

</p>
[Thu Mar 10 11:43:25 2011] apache2-perl-startup.pl: MOD_PERL not used! at /opt/otrs/scripts/apache2-perl-startup.pl line 28.
Again, since I've never used OTRS I'm unsure of whether or not this is actually a problem. It seems like everything works within the web interface, but I'm concerned about these strange back-end errors.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Database Password Retrieval

Post by crythias »

that OTRS is working at all is interesting, but probably won't work again after restart of apache, so you'll need to figure that out.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked