Click to See Complete Forum and Search --> : Using the GD2 extension


pburness
10-11-2004, 08:27 AM
I believe I've followed the instructions in installing php (4.3.2) correctly and it works fine with apache 1.3.27 (or at least phpinfo() indicates it's operational and the pages I've written to date work)

I am now trying to use the GD2 extension and I am getting the following error (twice) when starting Apache:

Unknown(): Unable to load dynamic library './;C:\php\php-4.3.2-Win32\extensions\php_gd2.dll' - The specified module could not be found.

My operating system is XP Pro, My php.ini file is in C:\Windows
It contains the following lines :-

extension_dir = "./;C:\php\php-4.3.2-Win32\extensions"
extension=php_gd2.dll

php is installed in C:\php\php-4.3.2-Win32\

My Apache configuration file includes the following lines:

LoadModule php4_module "c:/php/php-4.3.2-Win32/sapi/php4apache.dll"

AddModule mod_php4.c

I have moved the pp4ts.dll file from the C:\php\php-4.3.2-Win32 directory to C:\Windows\ system

Can anybody help me get this module loaded?
I've seen references to the problem during searches but no solution.

Desperate and confused
Phil

pburness
10-13-2004, 05:42 AM
I solved the problem by removing the ./ from the extensions_dir directory. It now looks like:-

extensions_dir = "C:\php\php-4.3.2-Win32\extensions"

and works fine.