Web Hosting Talk







View Full Version : PHP as an Apache module problem


MGCJerry
11-06-2002, 09:53 PM
I finally decided to try to run php as an apache module on Win2k (my local testing site) but I'm having a problem...

When I follow the instructions in the php installation as apache module (for windows) and after I edit the httpd.conf file and restart apache, here are 4 errors I get:


PHP Warning: Unable to load dynamic library 'extensions/php_curl.dll' - The specified module could not be found.

in Unknown on line 0
PHP Warning: Unable to load dynamic library 'extensions/php_gd.dll' - The specified module could not be found.

in Unknown on line 0
PHP Warning: Unable to load dynamic library 'extensions/php_curl.dll' - The specified module could not be found.

in Unknown on line 0
PHP Warning: Unable to load dynamic library 'extensions/php_gd.dll' - The specified module could not be found.

in Unknown on line 0


Yes, I have to click "ok" 4 times each time I restart Apache. I even went to the extent of putting the full path to the extensions directory and I still get these errors.

oddly, I dont even have curl enabled in php.ini :confused: and I still get the error if I enable it...

Any suggestions? I'm compeletely stumpted... :bawling:

MarkIL
11-07-2002, 01:18 AM
I vaguely remember having the same problem on a testing box. I believe I ended up moving all the modules that I needed to load to the Windows directory.

MGCJerry
11-07-2002, 01:28 PM
Thanks, that helped a little.

Now I'm still getting the cannot load curl error twice. I didn't even have it enabled, so I enabled it and Im' still getting the error.

Any more suggestions? I'm about to out it back to running php as CGI.

MarkIL
11-07-2002, 06:14 PM
The only solution I can think of right now is to search php.ini for 'curl' and comment out all the references to it.

MGCJerry
11-07-2002, 06:18 PM
Thanks lewney, I finally managed to get it figured out. I had a php.ini file in my winnt directory, and I forgot to update it. Apache was using that one which had some incorrect info that I forgot to change. :o

I got it working now, thanks for the help everyone :)