For the final project I need to use php to graph simple linear functions. I can't seem to install any of the charting libraries available online (e.g. image_graph, imagick). Is there some pre-installed library in the appliance, or is there some other way to do this?

  • What are the problems/errors that you are facing in installing new libraries ? "I can't seem to install any of the charting libraries" doesn't really explain what's your problem. Consider adding details like the reason as to why the libraries aren't installing... And as for the Appliance, I don't think there are any libraries installed. You can check it on localhost/about/ in the apache server settings and other stuff...
    – Nib
    Commented Sep 16, 2014 at 16:42
  • I get error messages saying certain files can't be downloaded, installation failed.
    – ronga
    Commented Sep 17, 2014 at 1:56
  • I came across another library called jpgraph. As per instructions, I copied it to vhosts/localhost, then ran a test program (which resides in vhosts/localhost as well) with the header: require_once ('../jpgraph-3.5.0b1/src/jpgraph.php') which is just the file path. I'm getting the following error with that line: PHP Fatal error: require_once(): Failed opening required 'jpgraph/jpgraph.php' (include_path='.:/usr/share/pear:/usr/share/php')
    – ronga
    Commented Sep 17, 2014 at 14:16
  • try including it's absolute path instead of relative path, see if it changes anything...
    – Nib
    Commented Sep 17, 2014 at 16:07
  • Using absolute paths doesn't seem to make a difference, nor does using require_once instead of include_once: include_once ('/jharvard/vhosts/localhost/jpgraph-3.5.01b1/src/jpgraph.php'); I've tried another charting library, but bumped into the exact same problem with filepaths.
    – ronga
    Commented Sep 18, 2014 at 13:13

1 Answer 1


Finally found a chart library that works: libchart. Unlike phpChart or image_graph, it allows me to include the needed header files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .