Try to put this working in a PI and something is missing...
First I think that is something with Apache2 but I try Ligthtpd and I got the same error.
I have a test.php and work , so I presume that is not problem of permitions.
<?php
// Change this defines to where Your fonts are stored
DEFINE("TTF_DIR","/var/www/jpgraph/fonts/");
// Change this define to a font file that You know that You have
DEFINE("TTF_FONTFILE","DejaVuSans.ttf");
$f = TTF_DIR.TTF_FONTFILE;
if( file_exists($f) === false || is_readable($f) === false ) {
echo "FAIL: Can not read font file \"$f\".";
}
else {
echo "PASS: Successfully read font file \"$f\".";
}
?>
The GD and FreeType is available in the server like is show in phpinfo
in the server I have:
jpgraph lib in ./var/www/jpgraph/
fonts in ./var/www/jpgraph/fonts/
cache ./var/www/jpgraph/cache/
files json ./var/www/
files Mx-jpgraphs ./var/www/
in graphsettings.php
//------------------------------------------------------------------------
$GRAPH['version'] = "0.4";
$GRAPH['width'] = 600;
$GRAPH['height'] = 300;
$GRAPH['jsonloc'] = "/var/www/";
$GRAPH['jpgraphloc'] = "/var/www/jpgraph/";
$GRAPH['cachetime'] = 10;
//------------------------------------------------------------------------
in jpg-config.inc.php
//------------------------------------------------------------------------
define('CACHE_DIR','/jpgraph/cache/');
//define('TTF_DIR','/usr/share/fonts/truetype/ttf-dejavu/');
//define('MBTTF_DIR','/var/www/jpgraph/fonts/');
//-------------------------------------------------------------------------
thaks
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Server Mx-Graphs config
Moderator: mcrossley
-
- Posts: 10
- Joined: Sun 01 Feb 2015 3:26 pm
- Weather Station: davis vantage
- Operating System: w7
- Location: Portugal
Server Mx-Graphs config
You do not have the required permissions to view the files attached to this post.