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
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Tue May 02, 2006 4:05 pm
Hi,
I have installed Apache 2.0.58 with PHP 5.1.3
I want to install the mysql library extension and have configured my php.ini as follows:
Code: Select all
extension_dir = "d:/Software/Apache2/php/"
extension=php_imap.dll
However when I restart Apache the mysql function do not work and I havenoticed this in my error log:
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library 'd:/Software/Apache2/php/php_mysql.dll' - The specified procedure could not be found.\r\n in Unknown on line 0
I am not sure why because the dir is correct and the dll's are in the directory.
Any ideas?
Thanks....
Rob.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue May 02, 2006 4:52 pm
Are all the secondary required DLL's in the path for it to find and load? They should be in the zip file download version..
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Tue May 02, 2006 5:05 pm
What is a secondary dll?
The mysql dll is 100% defintely in the correct location.
Rob.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue May 02, 2006 5:16 pm
There are additional DLLs that php_mysql.dll uses for various things. Here's the full list used by 5.1.3's version in alphabetic order:
ACTIVEDS.DLL
ADSLDPC.DLL
ADVAPI32.DLL
ADVPACK.DLL
APPHELP.DLL
ATL.DLL
AUTHZ.DLL
BROWSEUI.DLL
CABINET.DLL
CDFVIEW.DLL
CERTCLI.DLL
CFGMGR32.DLL
CLUSAPI.DLL
COMCTL32.DLL
COMDLG32.DLL
CREDUI.DLL
CRYPT32.DLL
CRYPTUI.DLL
CSCDLL.DLL
DBGHELP.DLL
DEVMGR.DLL
DHCPCSVC.DLL
DNSAPI.DLL
DUSER.DLL
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
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Tue May 02, 2006 6:27 pm
I have been reading on the net and there is no mention of need to have all of those dll's. Even the official downlaod only incudes to files which I have.
I found the files in the ext folder of php by default. Also by default the php ini extensions dir reads:
extension_dir = "./"
I have tried leaving the default and enabling the dll by removing the semi colon but still I get message that the specified module could not be found.
I have also tried changing the path to the full pathh ie.
extension_dir = "d:/Software/Apache2/php/ext"
extension_dir = "d:/Software/Apache2/php/"
Tried swapping forward slashes for backslashes......
extension_dir = "d:\Software\Apache2\php\ext"
extension_dir = "d:\Software\Apache2\php\"
100% the dll is in the correct path and the path is correct, this is insane.
Please help.
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue May 02, 2006 6:54 pm
Your default extension folder is C:\PHP\ext\. Your PHP extensions should all be in there. I believe if you leave your originally installed php.ini file alone (except for uncommenting the extensions=php_mysql.dll line) you should be golden.
spacebiscuit
Forum Contributor
Posts: 390 Joined: Mon Mar 07, 2005 3:20 pm
Post
by spacebiscuit » Tue May 02, 2006 7:34 pm
I found the problem, I had to add my PHP directory PATH to Winodws.
All working great now.
Thanks,
Rob.