Line 8:
Line 8:
vnstat -u -i eth0
vnstat -u -i eth0
vnstat -u -i eth1
vnstat -u -i eth1
+
+
(Ignore the error message you get)
Get the frontend and configure:
Get the frontend and configure:
Line 20:
Line 22:
$iface_title['eth0'] = 'Internal';
$iface_title['eth0'] = 'Internal';
$iface_title['ppp0'] = 'Internet';
$iface_title['ppp0'] = 'Internet';
−
And finnaly set application:
+
Finnaly set application path:
$vnstat_bin = '/usr/bin/vnstat';
$vnstat_bin = '/usr/bin/vnstat';
+
Then change permission on /var/lib/vnstat/* files
+
chmod 666 /var/lib/vnstat/*;
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4