Help with loading php extensions
Posted by: Attichris (199.244.214.---)
Date: April 24, 2014 11:20PM

I can't seem to get certain extensions to load for php. Specifically, I want to load php_oci8.dll. I think I have everything configured properly but it doesn't work. I keep getting:

"Warning, PHP Startup: Unable to load dynamic library 'D:/wamp/bin/php/php5.4.16/ext/php_oci8.dll' - The specified module could not be found."

I also get a warning for the php_intl.dll extension. The folder wamp/bin/php/php5.4.16/ext/ contains both of those .dll files.

Here are a few snippets from my php.ini file:
; Directory in which the loadable extensions (modules) reside.
; [php.net]
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "D:/wamp/bin/php/php5.4.16/ext/"
.
.
.
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;
extension=php_bz2.dll
;extension = php_com_dotnet.dll
extension=php_curl.dll
;extension = php_enchant.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;php_exif must be after php_mbstring as it depends upon it for its functioning
;extension=php_exif.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;Use with Oracle 10gR2 Instant Client
extension=php_oci8.dll
; Use with Oracle 11gR2 Instant Client
;;extension=php_oci8_11g.dll
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed.
; See [http://www.php.net/manual/en/snmp.installation.php]
;extension=php_snmp.dll

;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
;extension=php_xsl.dll

I don't understand why it can't load the libraries. Does it have anything to do with the version of PHP and Apache I'm using?


Specs:
Operating System: Windows Server 2003
Wamp Server: 2.4 32-bit
Apache: 2.4.4
MySQL: 5.6.12
PHP: 5.4.16

WampManager icon turns green after a the warning messages.

Options: ReplyQuote
Re: Help with loading php extensions
Posted by: RiggsFolly (---.as13285.net)
Date: April 25, 2014 03:09AM

php_intl.dll will load when you copy the icu*.dll set of dll's from the php folder to the \wamp\apache\apache2.4.4\bin folder.

For the php_oci8.dll I believe you have to install a piece of oracle client software as well. The php_oci8.dll talks to that client software so if its not there it gives an error.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Help with loading php extensions
Posted by: Attichris (199.244.214.---)
Date: April 28, 2014 09:31PM

Thanks for the help RiggsFolly. After messing around with settings for a long time, I finally got it to work. Not sure what fixed it, but I downloaded Oracle Instant Client, and included it on my PATH. Then I copied oci.dll to the C:\Windows\system32 folder.

Options: ReplyQuote


Sorry, only registered users may post in this forum.