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.