View Full Version : Installing PHP, Apache, etc
Nightfire
10-10-2002, 12:53 AM
I've got a cd with php4, apache and gd all included, bineries and what not. THe thing is that I don't understand the instructions on how to install the GD. Anyone know a site that will give instructions on how to set it up for someone who doesn't know anything? I might need instructiuons for php and apache too, I've not attempted to install/look at those yet.
Spookster
10-10-2002, 07:39 AM
Any particular reason that you just don't download and install PHPDEV? It was meant to eliminate this exact problem. Installing all of that individually is very complex and frustrating. That is why firepage put it together.
Nightfire
10-10-2002, 01:26 PM
I got php, apache and mysql all set up now. It's just the gd I can't figure out. I do have phpdev but for some reason my script won't work with it. It must be a script that works coz it's everywhere I look.
$image = ImageCreate(200,200);
$maroon = ImageColorAllocate($image,10,0,0);
$white = ImageColorAllocate($image,255,255,255);
$green = ImageColorAllocate($image,0,100,0);
ImageRectangle($image,10,10,190,190,$maroon);
for($i = 0; $i <= 5; $i++)
ImageString($image,$i,15,$i*10,'Blah',$green);
header("content-type: image/png");
ImagePNG($image);
ImageDestroy($image);
Every line is showing an error of undefined function at line whatever (Every line that has Image in.)
firepages
10-10-2002, 01:57 PM
in c:\php.ini , check that GD is enabled i.e. the line
extension=php_gd2.dll
OR
extension=php_gd.dll
is uncommented, I dont know which version of GD you have so look in your extensions directory and see which dll you have.\
for gd2 you might need the freetype library (search on google then dump the freetype.dll in your apache/ or apache/bin/ directory)
Nightfire
10-10-2002, 03:53 PM
Hmm, I've done that and then it says that one of the libraries needed to run php_gd.dll can't be found. All I've done with the GD is unzip it, is that all I need to do coz I see things about using c for it
firepages
10-10-2002, 06:24 PM
the only libraries php_gd.dll needs to run are php4ts.dll , KERNEL32.dll & MSVCRT.dll - which you should already have.
where did you gte the GD library from? in the PHP download ? if not you need to have a dll compiled against the same php as your php4ts.dll, so if you got the dll elsewhere download the latest ZIP php version (not the installer) which will definately have a compatible dll (should have GD2) and try that, if that does not work then perhaps your MSVCRT.dll is too old or something ??? guessing ok:)
on a subnote:
I think your for loop should start at one rather than zero. Server held fonts apparently don't index from 0.
for ($i=0; $i<6; $i++)
Nightfire
10-11-2002, 12:14 AM
I figured it out when I got home. I had the extension directory path wrong. I had it pointing to the apache directory instead of php. It's all fixed and running now. Got no idea why I was told I needed to download GD from the CD in the readme :confused:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.