Problems with php modules.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Kroko
Forum Newbie
Posts: 5
Joined: Mon Aug 22, 2005 5:44 am

Problems with php modules.

Post by Kroko »

I have php 4.3.10 running with an Apache 2 on windows (XP)

I can't get it to use the various modules (dlls). When apache starts I get the following error(warning):

Unknown(): Unable to load dynamic library 'C:\php4310\extensions\php_iconv.dll' - The specified module could not be found.

and so on for each of the modules in the php.ini file which looks like:

....

extension_dir = "C:\php4310\extensions"

....

extension=php_iconv.dll
extension= . . .
extension= . . . and so on...

everything is fine, as in there really is a C:\php4310\extensions\ with each and every dll file listed in the php.ini but i still get the error/warning when Apache starts.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

If you want to use the php_iconv extension you also need to make sure iconv.dll can be found in your path...
Kroko
Forum Newbie
Posts: 5
Joined: Mon Aug 22, 2005 5:44 am

Post by Kroko »

everything is fine, as in there really is a C:\php4310\extensions\ with each and every dll file listed in the php.ini but i still get the error/warning when Apache starts.
I'm not THAT stupid...

all the dlls are where they are suppose to be...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

The point is that iconv.dll isn't mentionned in php.ini, you only mention php_iconv.dll (And this is how it should be)

But, php_iconv.dll depends on iconv.dll.. And as long as that dll is not found you'll get that message
Kroko
Forum Newbie
Posts: 5
Joined: Mon Aug 22, 2005 5:44 am

Post by Kroko »

No, no...

That was just an example...

None of the dlls (modules) work!

__________________________


i just checked.... there IS an iconv.dll in /windows/system/

just to be shure I copied it into the /extensions dir of php...

still nothing... :(

what else could it be?

__________________________

almost none of the dlls in the list in php.ini won't work... :(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you may want to check in phpinfo() to make sure php is loading the php.ini you think it is, along with all the settings correctly matching what you think they should be. I've talked with a few people recently that have had issues where they accidentally were editing the wrong php.in, among other issues...
Kroko
Forum Newbie
Posts: 5
Joined: Mon Aug 22, 2005 5:44 am

Post by Kroko »

no, no, no.... php works fine.

I needed to use the multibyte (mb_*) functions and openssl so I de-comented the corresponding lines in php.ini and made the rest of modifications necessary...

but, for every module I get the same 'Unknown(): ... can't find...' warning/error on startup... and php generates 'unknown function reference error'
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

As I said:
feyd wrote:you may want to check in phpinfo() to make sure php is loading the php.ini you think it is, along with all the settings correctly matching what you think they should be. I've talked with a few people recently that have had issues where they accidentally were editing the wrong php.in, among other issues...
Kroko
Forum Newbie
Posts: 5
Joined: Mon Aug 22, 2005 5:44 am

Post by Kroko »

Yes, it loads the correct php.ini file...

Are there any extra requirements for each of the dll's ? (other ddls etc...)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

some have other requirements, yes.. If you research each one on php.net, they very often tell you what's required for a windows machine to run it.
Post Reply