bgame-hunter / cpassman

Automatically exported from code.google.com/p/cpassman
0 stars 0 forks source link

Installation is broken at Step 2 #175

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

With a fresh installation of sudo unzip cpassman_2.0RC4.zip the second step 
hags. When looking at the php-log I find:

----------------------------------------------------------------------------
Nov  8 13:19:02 misc php-cgi: PHP Warning:  
require_once(includes/settings.php): failed to open stream: No such file or 
directory in /var/www/teampass/index.php on line 60
Nov  8 13:19:02 misc php-cgi: PHP Fatal error:  require_once(): Failed opening 
required 'includes/settings.php' 
(include_path='.:/usr/share/php:/usr/share/pear') in 
/var/www/teampass/index.php on line 60
----------------------------------------------------------------------------

if I link the only setting.php I can find (install/settings.php) into the 
include-directory I get:

----------------------------------------------------------------------------
Nov  8 13:30:19 misc php-cgi: PHP Parse error:  syntax error, unexpected ';' in 
/var/www/teampass/install/settings.php on line 7
Nov  8 13:30:21 misc php-cgi: PHP Parse error:  syntax error, unexpected ';' in 
/var/www/teampass/install/settings.php on line 7
----------------------------------------------------------------------------

so either there is a second bug just linking this file is not the right way to 
go.

regards,

Tom

Original issue reported on code.google.com by anyaddr...@gmx.net on 8 Nov 2011 at 12:38

GoogleCodeExporter commented 8 years ago
the "sudo unzip"-part was unintentionally pasted

Original comment by anyaddr...@gmx.net on 8 Nov 2011 at 12:40

GoogleCodeExporter commented 8 years ago
The database and the user where already created before. When clicking on 
"Launch" in the second step there is no connection initiated from teampass to 
the database as I can see from MySQLs logging.

Original comment by anyaddr...@gmx.net on 9 Nov 2011 at 1:55

GoogleCodeExporter commented 8 years ago
The warning you get is "normal" ... I didn't manage until now how to get rid of 
this, but I'm working on it.
Nevertheless this should not avoid a mysql connection (I've got the same error 
in my log).
Is your mysql account GRANT?

Original comment by nils.cpa...@gmail.com on 14 Nov 2011 at 5:58

GoogleCodeExporter commented 8 years ago
Yes my MySQL login hast GRANT priviliges.

btw. I'm using php5-cgi through lighttpd on fcgi. It shouldn't make a 
difference I think though.

When executing the following script with php5-cgi on the commandline I get a 
log-entry in the MySQL-logfile. When clicking on launch in the DB-configuration 
I don't get an entry in the logfile

<?php

if(!mysql_connect('localhost', 'teampass_admin', 'mypassword'))
die('Cannot connect to database server');

if(!mysql_select_db('teampass'))
die('Cannot select database');
?>

Original comment by anyaddr...@gmx.net on 14 Nov 2011 at 9:04

GoogleCodeExporter commented 8 years ago
Got similar problem with TeamPass 2.1.12. Installing php-mysql fixed this. 
Probably a check for this module on the previous step, or a warning message on 
step 2 could help.

Original comment by vbes...@gmail.com on 22 Nov 2012 at 3:41