Web Servers on Windows - Apache2 + PHP install Question

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > May 2005 > Apache2 + PHP install Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache2 + PHP install Question
sclark

2005-05-16, 5:50 pm

WinXPpro SP2
Apache 2.0.54
PHP5

Problem: When starting Apache2, I get the error "Unable to load dynamic
library 'C:\php\ext\php_mysqli.dll' - The specified module could not be
found." - twice.

Steps taken:
1) I've installed PHP5 to "C:\php".

2) Changed the "C:\php\php.ini" file to:
extension_dir = "C:\php\ext"
extension=php_mysqli.dll

3) In Apache's 2 "httpd.conf" file:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php .phtml .html
PHPIniDir "C:/php"

4) Checked the RW perms of all folders and sub-folders.
5) Checked the dll existence in the specified direcotories.

Yet I get the errors. I'm sure this a simple fix for the more
experienced users here. I greatly appreciate any help in this matter.

Steve
Costa Rica

Apache_Hack

2005-05-20, 2:47 am

Steve,

RU running any other Apache extensions ? Are they running correctly ?
This may verify that the extension_dir directive is correct.

Obvious question - I can't see any mention in your post ... is mySQL
installed and running as a service ? It may be something to do with
this ?

Cheers,
Mike

McNasty

2005-05-24, 3:30 pm

First, add php to your path variable. If you don't know how, right click my computer > properties > advanced > evironmental variable button > and double click the path variable in the bottom section and add ';C:\pathtophproot' without ' '.

That probably won't fix your problem, but if you're extra special, it will.

Second, copy the libmysql.dll file from your php directory to your apache directory. This will fix your problem.

This is a common thing! php extensions somtimes need extra dll's with them and if Apache can't find them it says the extension file doesn't exist. To find out what other dll's Apache needs, stop your server and run the apache.exe file in the bin folder from a command prompt with no arguments. This will cause it to give you the extra errors about the other needed dll's.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com