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]<mailto:[email protected]>
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology