Cgi with GD grap, and displaying graphs
- From: patrick.j.rice@xxxxxxxxx (Patrick Rice)
- Date: Tue, 29 Aug 2006 17:05:32 +0100
Hi all
I'd like some advice,
set up; Red hat Enterprise 4
Perl 5.8
I am trying to create a web page, which takes data from a file and builds a graph with GD, these are then saved as pictures, I then use the cgi script to call the pics using dynamically generated HTML page, using a system call to another perl script.
When I do this, I get a 500 internal error and I've traced this down to a permissions problem, as the apache user doesn't have the permissions to write the pic's in the /var/www/html file.
When I run the perl script from /var/www/cgi-bin, as root no prob righting the pics in /var/www/html, but apache user doesn't have permissions.
I am wondering what is wrong, and am I doing this the right way, should I get GD to display the graph with in the perl script and not right pic's but dynamically display them, rather than calling another script to display the HTML, using system "html_diplay.pl", essentially two scripts instead of one.
Thanks in advance for the help.
Pat
- Follow-Ups:
- Re: Cgi with GD grap, and displaying graphs
- From: Tom Phoenix
- Re: Cgi with GD grap, and displaying graphs
- From: Mumia W.
- Re: Cgi with GD grap, and displaying graphs
- Prev by Date: Re: help with awk command in perl
- Next by Date: Re: splitting strings
- Previous by thread: help with awk command in perl
- Next by thread: Re: Cgi with GD grap, and displaying graphs
- Index(es):
Relevant Pages
|