Forum Moderators: phranque

Message Too Old, No Replies

Apache folder access

cant add /usr/share/rrdtool/fonts

         

Quilop

10:04 pm on Feb 20, 2007 (gmt 0)

10+ Year Member



Hi, I have a Nagios installation on my server running with Apache 2.0 and I have tried to install and configure NagiosGrapher on it. My problem is that I am having problems with the graphics, and it seems that the issue relays on Apache having problems to access a font. What I want to know is how to add an apache readable folder in .httpd.conf

I want Apache to be able to read /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf

I am not using .htaccess and I have tried the following without success:

<Directory "/usr/share/rrdtool/fonts/">
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I am getting an error on apache error log that says:

"Can't find font /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf"

Any advice or tips are most welcome.
Thanks

jdMorgan

2:50 pm on Feb 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This strikes me as being more related to file permissions or path errors than to HTTP access restrictions.

Check that /usr/share/rrdtool/fonts/ is world-readable (Unix notation) and that the path is correct from wherever this file is to be included.

Jim

Quilop

9:42 pm on Feb 22, 2007 (gmt 0)

10+ Year Member



Thanks for the reply. Actually the file is there, and the path has full permission to the world. I am trying to use an auto grapher, and this autographer uses rrdtool to create the graphics. At some point when I click a link on my site, that link execute a CGI and the CGI is making a call to /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf It is here where Apache complains telling that the file can not be found, even when it is there, and all the folder access are available to the world.

That is why Im looking to giving apache the rights to read a folder outside the "htdocs" where my WEB page is located in.

Any ideas?

Thanks

coopster

10:26 pm on Feb 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Quilop.

How about first trying a copy of the font file in your cgi-bin? Point your script to look at that first. It may help to figure out if it is the script or permissions that is giving you the issue first.