Hi Alice,
I'm glad this is working. Is your apache web server group (www-
data ?) a member of the fossy group?
The Db.conf file should be readable by the fossy group.
Bob
On May 11, 2009, at 1:01 AM, Alice Liu wrote:
Hi Bob,
Thanks for your helping:)
I can log in fossology now!
The reason is fossology does not connect postgresql.
I modified /usr/local/share/fossology/www/plugins/core-db.php,
remove: $this->_pg_conn = pg_pconnect(str_replace(";", " ",
file_get_contents($path))); and add: $this->_pg_conn =
pg_pconnect("dbname=fossology user=fossy");
function db_init($Options="")
{
global $DATADIR, $PROJECT, $SYSCONFDIR;
if (isset($this->_pg_conn)) { return(1); }
$path="$SYSCONFDIR/$PROJECT/Db.conf";
if (empty($Options))
{
$this->_pg_conn = pg_pconnect("dbname=fossology user=fossy");
//$this->_pg_conn = pg_pconnect(str_replace(";", " ",
file_get_contents($path)));
}
else
{
$this->_pg_conn = pg_pconnect(str_replace(";", " ", $Options));
}
if (!isset($this->_pg_conn)) return(0);
$this->Error = 0;
return(1);
}
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology