Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 418031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:38:20+00:00 2026-05-12T18:38:20+00:00

I just installed the Graphviz PEAR package in Cpanel and tried running the following

  • 0

I just installed the Graphviz PEAR package in Cpanel and tried running the following script:
(from http://pear.php.net/manual/en/package.images.image-graphviz.example.php )

[?php
require_once '/home/user_directory/php/Image/GraphViz.php';

$gv = new Image_GraphViz();
$gv->addEdge(array('wake up'        => 'visit bathroom'));
$gv->addEdge(array('visit bathroom' => 'make coffee'));
$gv->image();
?]

If I run this script I get the following error message:

Warning: fopen(/tmp/graph_8xynSO.svg) [function.fopen]: 
failed to open stream: No such file or directory in 
/home/user_directory/php/Image/GraphViz.php on line 210

I checked the permissions on the /tmp directory: they’re set to 777 (though I can’t see the graph_8xynSO.svg file in there). Is there anywhere else I should be looking please?

Thanks,

PHP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:38:20+00:00Added an answer on May 12, 2026 at 6:38 pm

    It’s quite possible the graphviz program isn’t installed on your host. Do you have exec() capability, or shell access? If so, try to invoke graphviz directly via a command like:

    echo "digraph G {Hello->World}" | dot -Tpng >hello.png
    

    The Pear package won’t include the graphviz program, but is just a wrapper for it. I’m not sure if cPanel does the dependency check first. If it’s not your box, you may have to get the admin to install graphviz first.

    If you can’t get graphviz to work on your shared host, you may be able to call out to a web service to render the image. See http://bloodgate.com/graph-demo for an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just tried the ruby-graphviz gem ( http://github.com/glejeune/Ruby-Graphviz ). I followed the instructions (installed
I just installed visual studio 2012 and tried running my C++ project on it.
Just installed the SDK and ADK. while updating, it gives the following error: unexpected
Just installed and migrated a 2008 solution on Vista ultimate 64 and .net 4.0.
I just installed Aptana Studio 3 and I'm testing out PHP. I tested to
Just installed a nginx server with ubuntu 11.04 and after loading my php program
Just installed Rails 3.1 rc5 and ActiveAdmin from rails-3-1 branch. Installation went good, and
Just installed snow leopard and Xcode, i downloaded version 5.1.38 from the mysql website
just installed asp.net mvc 2, where are the new .dll's?
Just installed new version XCode 4.2 onto my Mac. I tried compiling my project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.