Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="35DetailedstepstoinstallJpGraph.html">
8
<LINK REL="Next" HREF="37CompilingPHP4.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="35DetailedstepstoinstallJpGraph.html">Previous</A>
26
<A HREF="37CompilingPHP4.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="3_6">3.6 Troubleshooting your installation</A></H2>
29
<P> For 99% of the users this library will work directly with a recent
30
 installation of PHP without any problem.</P>
31
<P> Experience shows that most of the trouble are caused by either an
32
 old buggy version of the free-type TTF library or using an old
33
 antiquated version of the GD library. In order to narrow it down the
34
 problem the following steps is helpful.</P>
35
<OL>
36
<LI> If no background images are displayed (instead a solid black box
37
 are displayed) chances are that GD 2.x is available but the
38
 jpg-config.inc.php has been changed so that true color images are
39
 disabled. Correct this by enabling the USE_TRUECOLOR define.</LI>
40
<LI> If background images does not work make sure the settings of
41
 USE_GD2_LIBRARY corresponds to the actual installation, i.e. If the GD2
42
 library is not available then this define must be false!</LI>
43
<LI> If you are running IIS and Win2k and get the error &quot;Can't find
44
 font&quot; when trying to use TTF fonts then try to change the paths to UNIX
45
 style, i.e. &quot;/usr/local/fonts/ttf/&quot;. Remember that the path is absolute
46
 and not relative to the htdocs catalogue.</LI>
47
<LI> If no images and no error messages gets sent back to the browser
48
 then there is a big chance that HTTP-Server PHP module (e.g.
49
 Apache-PHP) has crashed. This is often due to a broken PHP installation
50
 and more than often a problem with the True Type libraries. The best
51
 way to track these types of problem down is to investigate the
52
 HTTP-Server logs or the general system logs for evidence of a PHP
53
 crash. The other reasons is that in some rare cases the auto detection
54
 of the GD library could fail. If only the GD1 library is available and
55
 the JpGraph library mistakenly detects the GD2 this could in rare cases
56
 cause PHP to crash. Please try re-run the example by setting the DEFINE
57
 USE_GD2_LIBRARY to &quot;false&quot;.</LI>
58
<LI> If the system is running IIS on Windows and some images which uses
59
 TTF fonts just return an empty page then try to set the TTF_DIR path
60
 manually (in jpg-config.php) to the directory where all the TTF fonts
61
 are stored (normally c:/WINDOWS/fonts)</LI>
62
<LI> If the cache is enabled please make sure that the permissions are
63
 correctly set for the cache directory so that the process running
64
 Apache/PHP has write access to the cache directory.</LI>
65
<LI> If the TTF fonts only shows up as yellow then you have a buggy
66
 installation of the freetype font library and the only thing to do is
67
 to re-install and setup PHP+GD again.</LI>
68
</OL>
69
<P></P>
70
<HR NOSHADE>
71
<A HREF="toc.html">Contents</A>
72
<A HREF="35DetailedstepstoinstallJpGraph.html">Previous</A>
73
<A HREF="37CompilingPHP4.html">Next</A>
74
</BODY>
75
</HTML>