Thanks Pludi for your reply
I did try changing the path but it didn't have the desired affect. I first had issues with enabling cgi, but i think i've solved that now, i've done the following in order to get the images appearing...
DirectoryIndex includes the index.cgi extension
AddHandler cgi-script .cgi is uncommented
httpd.conf is as follows
ScriptAlias /cgi-bin/ "/var/www/html"
<Directory "/var/www/html/">
AllowOverride None
Options None FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
</Directory>
DocumentRoot
<Directory "/var/www/html">
I changed the directory as you suggested
print "<img src=rrdtool/$image><p>\n";
Source code from the site
<html><head><title></title></head>
<body><center>
<img src=rrdtool/><p>
</center></body></html>
isn't their any easier way to include each image in the directory than using a bunch of print commands, would it be easier to use some kind of for each loop in a perl script??
thanks for your help
---------- Post updated 06-05-10 at 00:55 ---------- Previous update was 06-04-10 at 22:58 ----------
OK now im completely confused,
i just tried looking in the directory where all my images are stored and i get an error saying Forbidden, i changed the following and it worked again, could it be that i have the cgi config setting all screwed up ??
was
ScriptAlias /cgi-bin/ "/var/www/html"
<Directory "/var/www/html/">
now
ScriptAlias /cgi-bin/ "/var/www/cgi-bin"
<Directory "/var/www/cgi-bin/">
now that ive changed it i get the forbidden error when trying to access the url
http://mywebserver/pass.cgi
when i used to get the following from the apache log file
[Fri Jun 04 23:03:01 2010] [error] [client 10.20.20.20] Use of uninitialized value in concatenation (.) or string at /var/www/html/pass.cgi line 9.
[Fri Jun 04 23:03:01 2010] [error] [client 10.20.20.20] Use of uninitialized value in concatenation (.) or string at /var/www/html/pass.cgi line 11.
[Fri Jun 04 23:03:01 2010] [error] [client 10.20.20.20] Directory index forbidden by Options directive: /var/www/html/rrdtool/, referer: http://mywebserver/pass.cgi
I guess the last line is stopping the cgi script from working, i dont understand this.