I'm having a strange error while trying to start apache.

I am recieving the following error(s):

Warning: PHP Startup: Unable to load dynamic library 'C:\Server\PHP\ext\php_oci8.dll' - .......

Allong with the follwing list:
php_pdo_oci.dll
php_pdo_oci8.dll
php_pdo_sqlite_external.dll
php_pspell.dll
php_sysbase_ct.dll
php_ibm_db2.dll
php_ifx.dll
php_ingres.dll
php_maxdb.dll
php_mcve.dll
php_netools.dll
php_oracle.dll
php_pdo_ibm.dll
php_pdo_infromix.dll
php_svn.dll

I have double and triple checked my extensions path and all the dll files within the folder and things are in order. I have made sure that there are no rogue php.ini files floating around and I have also added the php extensions path to my system variable 'PATH'.

I have none of the above mentioned modules turned on within the configuration files. in fact the only module I have turned on is php_mysql.

My current setup is the latest Apache, PHP5, Latest MySQL...
I am running under a Vista box but the server does start, even with the errors, and will host regular web files.

Any ideas are welcomed.

Thanks

    RedSyphon wrote:

    I have none of the above mentioned modules turned on within the configuration files.

    Really? Interesting.

    If you do a phpinfo(), where does PHP say the configuration file is located? Is this the same php.ini file you're editing? Are you sure there are semicolons at the beginning of the extension= lines in the .ini file?

      Yup it's php.ini and it's located in the default php dir.

      The syntax is correct in the file and the machine has been rebooted a few times just to make sure that it is using the updated file.

      I cannot get a phpinfo() script to run at the moment due to the fact that the server fails on the above mentioned problem.. My server will host plain html but does not interpret php script.

      I have also tried a re-install as well... Same issue.

        RedSyphon wrote:

        Yup it's php.ini and it's located in the default php dir.

        Default php dir? What do you mean... the directory where you installed PHP?

        How did you install PHP into Apache.... via the .dll module? If so, did you add the PHPIniDir directive into your httpd.conf file?

          Yes to all 🙂

          I finally got it working however.... Seems my system didn't want to start it up until I opted to run the Monitor program in 'XP SP2 Compatability Mode'... If I do that and then start the server from there all is well!

          Still strikes me as very strange that I can't manually start the server without recieving the before mentioned errors.

          Thanks for your tips!

            a year later

            Hi all,

            I have the same problem on having error after add the PDO extension in my php.ini:
            extension=php_pdo.dll
            extension=php_pdo_oci.dll
            extension=php_pdi_mysql.dll

            Error msg i recevied:
            PHP Startup: Unable to load dynamic library 'ext\php_pdo_oci.dll' The specific module could not be found
            **This happen only if i execute a scheduled cron job. Web application no problem.

            I searched the file: php_pdo_oci.dll, it does exist in the C:/PHP5/ext directory.

            My platform:
            Windows XP professional
            IIS
            PHP 5.2.0
            MySQL 5.0.22

            Some information about PDO on my phpinfo():
            PDO support : enabled
            PDO drivers : mysql
            PDO Driver for MySQL, client library version 5.0.22
            Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\PHP5;C:\Program Files\MySQL\MySQL Server 5.0\bin

              What's the extension_dir set to in your php.ini file? "./ext/" ? If so, perhaps you should change that to "c:/php5/ext/" because if you're using the CLI located at c:\php5\cli\php.exe, that path is incorrect (obviously).

                Hi bradgrafelman,

                Previously it is "ext".

                Now I've changed to "C:\PHP5\ext"
                Restart the windows server (Just realized i got to restart for windows)
                But it still shows the same error 🙁

                  volant wrote:

                  Just realized i got to restart for windows

                  Not really, just the Webserver (e.g. "net stop iisadmin" if using IIS, or "net stop apache2" if using Apache 2.x).

                  As for the issue at hand, which file are you using as your CLI interpreter? C:\php5\cli\php.exe ? If so, try doing this:

                  c:\php5\cli\php -c c:\php5 -f FILENAME_OF_PHP_SCRIPT.php

                  when you execute the CLI.

                    Write a Reply...