Using JPGRAPH with Mantis

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
qazwart
Posts: 6
Joined: 14 Apr 2005, 21:15

Using JPGRAPH with Mantis

Post by qazwart »

I am attempting to get jpgraph linked up with Mantis. My PHP is at version 5.0.2, I got PHP precompiled via sunfreeware.com. I am on Solaris 5.8, I downloaded jpgraph1.7. My PHP is installed on /usr/local/php. My apache server is installed on /usr/local/apache2. My Mantis home is /usr/local/htdoc/bug and I installed the jpgraph *.php files in /usr/local/htdoc/bug/jpgraph (since that's what the config_default_inc.php file was set to).

When I go to the summary page, I see the links to the graphs, but they are not created when I click on the links.

The problem is that I am not 100% sure if my version of PHP contains the GD Library since it says on the GD Library site that it is now bundled into PHP. I also discovered that I don't appear to have a php.ini file.

1). Do I need to download the GD Library?
2). If I need to install the GD Library, where do I put it? Under /usr/local/lib or /usr/local/php/lib?
3). Is my php.ini file suppose to be in /usr/local/php or /usr/local/apache2 or is it somewhere else entirely? If for some strange reason, I don't have a php.ini file, do I simply put that one line in linking the GD Library to PHP, or do I have to recompile PHP?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

AFAIK, the links to GD are compiled into PHP.

If you want to check, make a page with the following content:

Code: Select all

<?php phpinfo() ?>
and run it. If present, GD will be listed amongst the modules.
qazwart
Posts: 6
Joined: 14 Apr 2005, 21:15

phpinfo()

Post by qazwart »

I actually have phpinfo() already in one of my webpages. That's where I got the PHP version and Apache version information.

However, I didn't see GD in that information. Where would it be listed? In the "PHP Core" section, or would it be listed like the other modules like XML, pcre, etc.?

I have a feeling that I don't have the GD Library, and I'll to download it. Does Php have to be recompiled, or do I simply make the entry in the php.ini file (which I can't seem to find).

I don't know why if this is version 5.0.2 of PHP, why the GD library isn't there.
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

If GD was compiled in, it would be in that list (down with XML and friends).

What platform are you using? Maybe there is another distribution of PHP with GD compiled in.
qazwart
Posts: 6
Joined: 14 Apr 2005, 21:15

Post by qazwart »

I'm using the precompiled one from Sunfreeware.com. Maybe it's laziness on my part. Maybe because I've grown accustom to the PC world, but I usually prefer to download the precompiled stuff than taking the time to do it myself. And, I'm an SCM, so it isn't like I don't know how to compile stuff.

I've downloaded the GD source code, and I'll try to compile it, but if it doesn't work, I'm not going to sweat it too much. We can live with Mantis even if the pretty charts don't work.

I've got more important issues to contend with like getting mail to work, so Mantis can send out emails. Unfortunately, that issue isn't a Mantis problem as a network configuration issue. There is a debate between our local SysAdmins and corporate exactly what is needed to get a Unix box to be able to use a MS Exchange server.
qazwart
Posts: 6
Joined: 14 Apr 2005, 21:15

Post by qazwart »

I've got the GD library successfully compiled and living in /usr/local/lib/libgd.so. I have PHP 5.0.2, I have Apache 2. something-or-other, but still no go.

It might be due to these three factors:

* PHP isn't configured correctly (Heck, I can't even find the php.ini file!)
* PHP wasn't compiled with GD support, and the source code must be downloaded and recompiled with GD support in order for everything to work.

I have a feeling it's the second one, so I am going to simply give up for now unless someone can come up with a simple sure fire way of setting up php.ini to get everything working. No one in my group knows that Mantis can draw pretty little charts, and I'm certainly not going to tell them that Mantis can. They're pretty happy with it the way it is.

Maybe I'll try to get Phorum working with Mantis. We might find that more useful.
--
David Weintraub
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

PHP needs to be recompiled to link GD in. There may be a PHP site with instructions for Solaris. Sorry I can't help more.
Post Reply