Anonymous - 2018-06-18

I have a working setup of bandwidthd on centos 6, the database on postgresql is populating data or results.
How can I use the database on postgresql to display it on web? I have copied the files from /usr/share/doc/bandwidthd-2.0.1/phphtdocs/ to /var/www/bandwidthd/htdocs, edited the config.conf and accessed the index.php via browser. Thank you in advance

config.conf

<?
define("DFLT_WIDTH", 900);
define("DFLT_HEIGHT", 256);
define("DFLT_INTERVAL", INT_DAILY);

$db_connect_string = "user = postgres dbname = bandwidthd"
?>

bandwidthd.conf

pgsql_connect_string "user = postgres dbname = bandwidthd host = bandwidthd"