Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: smeerbartje on March 03, 2009, 10:46:59 PM

Title: vnstat no graph
Post by: smeerbartje on March 03, 2009, 10:46:59 PM
Hi, I've just installed vnstat on my server, but now the graph part does not work. For an example, please visit this page (http://nijmegen.lommers.org/stats). As you can see the vnstat command is found by the php script. Only the graphs are not shown well. I also tried to configure as "PNG", but here the graph also does not show up.
Title: Re: vnstat no graph
Post by: David Harper on March 04, 2009, 01:23:06 AM
Please file a bug report so that this issue can be investigated further.
Title: Re: vnstat no graph
Post by: cactus on March 04, 2009, 07:32:09 AM
Please file a bug report so that this issue can be investigated further.
There is no need for that as it is not a contrib or a core pacakage AFAIK.

As you can see the vnstat command is found by the php script.
I see no proof for that, I can only see that a few scripts are executed.

Only the graphs are not shown well. I also tried to configure as "PNG", but here the graph also does not show up.
Perhaps, since it is a PHP application you are running into a PHP BaseDir restriction. Read this page (http://"http://wiki.contribs.org/PHP#Open_basedir_restriction") and check /var/log/messages (and perhaps /var/log/httpd/error_log) to see if the described symptoms match yours. You can also (temporarily) enable the display_error options (http://"http://wiki.contribs.org/PHP#Display_Error_Messages") to see what errors are presented (only for debugging, not production as this might cause security issues when left enabled).
Title: Re: vnstat no graph
Post by: smeerbartje on March 04, 2009, 08:34:51 AM
Thank you all for your help, but I don't think it has something to do with PHP BaseDir restrictions, since the output of vnstat is available in the script. (the script runs an exec('vnstat') and parses the output into a svg or png image) You all can see that the values are parsed correct, but only the graph is not showing up.
Title: Re: vnstat no graph
Post by: cactus on March 04, 2009, 08:55:46 AM
Thank you all for your help, but I don't think it has something to do with PHP BaseDir restrictions, since the output of vnstat is available in the script. (the script runs an exec('vnstat') and parses the output into a svg or png image)
That is exactly why you are running into a PHP Base dir restriction I guess. You are executing some program on your server that is most likely not within the allowed tree. Please check your log files as stated.