PDA

View Full Version : php extension problem


UnrealEd
09-17-06, 09:44 AM
Hi,

i had to reinstall my os (windows XP Pro x64 ) on my computer, and so i had to reinstall my server. I installed Apache 2.0.59 with PHP 5.1.1, which is working fine. There's only one problem:
when i try to load the following extensions:

php_curl
php_fdf.dll
php_ifx.dll
php_interbase.dll
php_mcrypt.dll
php_mhash.dll
php_mssql.dll
php_msql.dll
php_mysql.dll
php_mysqli.dll
php_oci8.dll
php_openssl.dll
php_php_oracle.dll
php_sqlite.dll
php_sybase_ct.dll

I get an error. It says that he can't find the requested modules.
My extension dir is set to C:/PHP/ext which is correct.

This is how my folder strucure looks like:

C:/PHP
|
+- ext
|
|-php_curl.dll
|
+- sessiondata
|
+- uploadtemp
|
+- extras
|
|- php.ini
|- php.exe

Does anybody know why, i'm getting this error? i know i didn't get him when i installed them on my previous OS (windows XP Pro x86).
I'm not going to use all of these modules, but i certainly would like to have cUrl, mysql and oci8.


Thanx in advance,
UnrealEd

mab
09-17-06, 10:33 AM
Add a trailing slash to the setting - C:/PHP/ext/

UnrealEd
09-17-06, 10:42 AM
:s it didnt work :s
still the same error :s

thx fr the reply

mab
09-17-06, 10:55 AM
(I assume you stopped and started Apache to test)

Is there any additional information contained in the Apache server logs?

This might be a folder permission problem?

Edit: Here is an additional thought - using a phpinfo(), make sure that the location of the php.ini that is being used "Configuration File (php.ini) Path" is correct. If PHP is not loading your php.ini, your extension path setting is not being used.

UnrealEd
09-17-06, 11:04 AM
This is what the apache error log shows:
[Sun Sep 17 16:42:30 2006] [notice] Child 4380: Child process is running
[Sun Sep 17 16:42:30 2006] [notice] Child 4380: Acquired the start mutex.
[Sun Sep 17 16:42:30 2006] [notice] Child 4380: Starting 250 worker threads.
[Sun Sep 17 16:43:55 2006] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Sep 17 16:43:55 2006] [notice] Child 4380: Exit event signaled. Child process is ending.
[Sun Sep 17 16:43:56 2006] [notice] Child 4380: Released the start mutex
[Sun Sep 17 16:43:57 2006] [notice] Child 4380: Waiting for 250 worker threads to exit.
[Sun Sep 17 16:43:57 2006] [notice] Child 4380: All worker threads have exited.
[Sun Sep 17 16:43:57 2006] [notice] Child 4380: Child process is exiting
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
[Sun Sep 17 16:43:59 2006] [notice] Apache/2.0.55 (Win32) PHP/5.1.1 configured -- resuming normal operations
[Sun Sep 17 16:43:59 2006] [notice] Server built: Oct 9 2005 19:16:56
[Sun Sep 17 16:43:59 2006] [notice] Parent: Created child process 3832
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/ext/php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Sep 17 16:43:59 2006] [notice] Child 3832: Child process is running
[Sun Sep 17 16:43:59 2006] [notice] Child 3832: Acquired the start mutex.
[Sun Sep 17 16:43:59 2006] [notice] Child 3832: Starting 250 worker threads.
I don't think it has to do something with the folder permissions, cause php loads the other modules (gd, xmlreader, etc) perfectly

Greetz,
UnrealEd

mab
09-17-06, 11:29 AM
On a Win32 XP Pro system, I renamed a .dll and got a corresponding error message identical to yours.

Are you sure about all the versions of the files and that they exist and are not zero length (perhaps they got currupted)... Your Apache log indicates
Apache/2.0.55 (Win32) PHP/5.1.1, which does not match the stated Apache version you are using. My log for 2.0.59 does match the version.

The Apache and PHP Windows binaries are specific to Win32 systems. I don't use and don't know what happens on a 64 bit OS with these.

Edit: I beleive this is an x64 bit OS problem - see this link - http://www.apachelounge.com/forum/viewtopic.php?t=415

UnrealEd
09-18-06, 06:31 AM
thx, i'll try the link you gave me.

i found it before when looking for an x64 version of apache, but i didn't know if i could use it as i did'nt know if it was developped by the apache foundation itself.

I didn't know dll's were dependant on what architecture you're working on.

Thanx for the reply,
UnrealEd