Current location: Hot Scripts Forums » Other Discussions » Web Servers » php extension problem


php extension problem

Reply
  #1 (permalink)  
Old 09-17-06, 08:44 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
php extension problem

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:
Code:
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
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #2 (permalink)  
Old 09-17-06, 09:33 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Add a trailing slash to the setting - C:/PHP/ext/
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Reply With Quote
  #3 (permalink)  
Old 09-17-06, 09:42 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
:s it didnt work :s
still the same error :s

thx fr the reply
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #4 (permalink)  
Old 09-17-06, 09:55 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
(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.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???

Last edited by mab; 09-17-06 at 10:05 AM.
Reply With Quote
  #5 (permalink)  
Old 09-17-06, 10:04 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
This is what the apache error log shows:
Code:
[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
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #6 (permalink)  
Old 09-17-06, 10:29 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???

Last edited by mab; 09-17-06 at 10:42 AM.
Reply With Quote
  #7 (permalink)  
Old 09-18-06, 05:31 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
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
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with deleting data from mysql using php maxat PHP 4 08-25-09 11:08 AM
can someone help with htaccess and php problem tigherrdk PHP 6 03-09-09 02:28 AM
PHP Communication Problem Califer PHP 0 07-05-06 12:07 AM
PHP and JavaScript problem twome PHP 1 04-19-06 06:43 PM
PHP Windows 2003 Problem - Help Please dwdviper PHP 1 04-19-06 01:39 PM


All times are GMT -5. The time now is 01:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.