Hi dong, Yes, you are right! I changed the permission of Db.conf, now it works:) Thanks:)
Regards,
Alice
"Ma, Dong
(vinc...@gdcc-bj-
MOST)" To
<[email protected]> "[email protected]"
"Ma, Dong <[email protected]>
(vinc...@gdcc-bj- cc
MOST)" "[email protected]"
<[email protected]> <[email protected]>
Subject
2009-05-11 15:26 [FOSSology] [Fossology]I can't
login fossology, please help!
Hi Alice,
I guess this caused by Db.conf file permission, you can check Db.conf file
permission if can get more information.
>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);
> }
>
>in my Db.conf:
>
>dbname=fossology;
>host=localhost;
>user=fossy;
>password=fossy;
>
>
>but it is very strangely that after I run fo-postinstall, it says connect
>db success. So I think it succuess, but when run php, it does not connect
>at all....
>
>Regards
>Alice
Best Regards,
Vincent Ma(Ma Dong)
Hewlett-Packard Co.
IDD: +86 010 6564 5733
Email: [email protected]
<<inline: graycol.gif>>
<<inline: pic19264.gif>>
<<inline: ecblank.gif>>
_______________________________________________ fossology mailing list [email protected] http://fossology.org/mailman/listinfo/fossology

