Can't access GD library. Any ideas???

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't access GD library. Any ideas???

Postby colfax » 22. October 2004 18:21

Hi, I'm having trouble accessing GD functions, and was hoping I might find some help.

My Setup:
I have the latest build of XAMPP installed on a clean Windows XP machine. I also made a GHOST image of my clean OS + XAMPP, so I can revert back to a default XAMPP install.

The install is located at C:\apachefriends on my machine.

When trying to access functions from the GD library, I am told that the functions are not defined.

(Example: Fatal Error: Call to undefined function imagecreate())

I have opened "C:\apachefriends\xampp\php\php.ini" and ensured that the following definitions exist and are uncommented.

1. extension=php_gd2.dll
2. extension_dir = C:\apachefriends\xampp\php\ext

I also ensured that a copy of php_gd2.dll exists in C:\apachefriends\xampp\php\ext.

Also, when I look at "phpinfo" I don't see any reference to GD.

I don't know what else to look for or try. Does anyone have any suggestions? They'd be much appreciated!

-colfax
colfax
 
Posts: 3
Joined: 22. October 2004 17:31

Postby Wiedmann » 22. October 2004 18:28

I have opened "C:\apachefriends\xampp\php\php.ini" and ensured that the following definitions exist and are uncommented.

The correct/used php.ini is in:
C:\apachefriends\xampp\apache\bin\php.ini
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby colfax » 22. October 2004 18:35

Thanks Wiedmann,

the definitions in C:\apachefriends\xampp\apache\bin\php.ini are correct.

Specifically:
1. "extension=php_gd2.dll" is uncommented.
2. extension_dir = C:\apachefriends\xampp\php\ext

Anything else I might try?
colfax
 
Posts: 3
Joined: 22. October 2004 17:31

Postby Wiedmann » 22. October 2004 18:40

Can you see something at the "Instant Art" demo from the XAMPP menu?

In phpinfo(), points "Configuration File (php.ini) Path" to the correct location?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby colfax » 22. October 2004 19:03

Yes, I can see the Instant Art demo.

phpinfo() is pointing to the wrong place. I installed Nusphere's PhpEd, and it is pulling it's own php.ini file from
"C:\Program Files\nusphere\phped\php\php.ini"

That must be the problem. Thanks!

-colfax
colfax
 
Posts: 3
Joined: 22. October 2004 17:31


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 31 guests