From: Martijn Cremer on
Hello,

I installed PHP 5.2 on a clean Windows XP sp2 machine with Apache 2.2.
Now the problem is Php gives a lot of errors and then crashes:

All the errors start with "PHP Warning: PHP Startup: Unable to load
dynamic library"

It seems php cant find any of the modules set in the extension
directory. First I toucht it was bc I maybe had old extensions and A
removed them all and download them again. Just to be sure. But Even
after doing that PHP keeps giving that it cant find the dynamic library.

I used the MSI installer found on php.net. Any ideas what can cause this?
From: Lester Caine on
Martijn Cremer wrote:
> Hello,
>
> I installed PHP 5.2 on a clean Windows XP sp2 machine with Apache 2.2.
> Now the problem is Php gives a lot of errors and then crashes:
>
> All the errors start with "PHP Warning: PHP Startup: Unable to load
> dynamic library"
>
> It seems php cant find any of the modules set in the extension
> directory. First I toucht it was bc I maybe had old extensions and A
> removed them all and download them again. Just to be sure. But Even
> after doing that PHP keeps giving that it cant find the dynamic library.
>
> I used the MSI installer found on php.net. Any ideas what can cause this?

Which modules is it complaining about?
Are they actually in the extensions directory?
Have you checked you have the full path to the extensions directory in
php.ini ?
Is php.ini in your \Windows directory?

--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php
From: Martijn Cremer on
> Which modules is it complaining about?
The following errors:
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_bz2.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_curl.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_dba.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_dbase.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mbstring.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_exif.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_fdf.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_gd2.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_gettext.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_gmp.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ifx.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_imap.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_interbase.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ldap.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mcrypt.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mhash.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mime_magic.dll' - Kan opgegeven module niet
vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ming.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_msql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mssql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mysql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mysqli.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_oci8.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_openssl.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_firebird.dll' - Kan opgegeven module niet
vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_mssql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_mysql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_oci.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_oci8.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_odbc.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_pgsql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pdo_sqlite.dll' - Kan opgegeven module niet
vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pgsql.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_pspell.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_shmop.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_snmp.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_soap.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_sockets.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_sqlite.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_sybase_ct.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_tidy.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_xmlrpc.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_xsl.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_zip.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_fribidi.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_http.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ibm_db2.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_imagick.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ingres.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mailparse.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_mcrypt_filter.dll' - Kan opgegeven module niet
vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_netools.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_oracle.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_ssh2.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_svn.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_swish.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\webserver\PHP\ext\php_yaz.dll' - Kan opgegeven module niet vinden.
in Unknown on line 0
> Are they actually in the extensions directory?
D:\webserver\PHP\ext>dir
De volumenaam van station D is Soldats
Het volumenummer is 0CF6-0D23

Map van D:\webserver\PHP\ext

12-01-07 01:54 <DIR> .
12-01-07 01:54 <DIR> ..
02-11-06 12:41 53.314 php5activescript.dll
02-11-06 12:41 32.829 php5servlet.dll
02-11-06 12:41 15.620 phpsrvlt.jar
02-11-06 12:41 36.921 php_apd.dll
02-11-06 12:41 61.503 php_bcompiler.dll
02-11-06 12:41 28.732 php_bitset.dll
02-11-06 12:41 32.827 php_blenc.dll
02-11-06 12:41 65.600 php_bz2_filter.dll
02-11-06 12:41 32.830 php_classkit.dll
02-11-06 12:41 167.994 php_cpdf.dll
02-11-06 12:41 41.019 php_crack.dll
02-11-06 12:41 32.831 php_cvsclient.dll
02-11-06 12:41 28.728 php_db.dll
02-11-06 12:41 61.497 php_dbx.dll
02-11-06 12:41 24.633 php_dio.dll
02-11-06 12:41 41.022 php_docblock.dll
02-11-06 12:41 86.076 php_domxml.dll
02-11-06 12:41 32.827 php_event.dll
02-11-06 12:41 61.502 php_fileinfo.dll
02-11-06 12:41 28.733 php_filepro.dll
02-11-06 12:41 24.637 php_fribidi.dll
02-11-06 12:41 24.636 php_gopher.dll
02-11-06 12:41 462.906 php_http.dll
02-11-06 12:41 122.943 php_hyperwave.dll
02-11-06 12:41 53.309 php_ibm_db2.dll
02-11-06 12:41 45.113 php_id3.dll
02-11-06 12:41 41.021 php_iisfunc.dll
02-11-06 12:41 57.405 php_imagick.dll
02-11-06 12:41 57.404 php_ingres.dll
02-11-06 12:41 28.730 php_java.dll
02-11-06 12:41 9.951 php_java.jar
02-11-06 12:41 24.633 php_lzf.dll
02-11-06 12:41 49.215 php_mailparse.dll
02-11-06 12:41 24.643 php_mcrypt_filter.dll
02-11-06 12:41 45.118 php_memcache.dll
02-11-06 12:41 24.637 php_netools.dll
02-11-06 12:41 28.732 php_ntuser.dll
02-11-06 12:41 987.199 php_oggvorbis.dll
02-11-06 12:41 69.694 php_operator.dll
02-11-06 12:41 36.924 php_oracle.dll
02-11-06 12:41 36.926 php_parsekit.dll
02-11-06 12:41 679.993 php_pdf.dll
02-11-06 12:41 36.922 php_phar.dll
02-11-06 12:41 28.732 php_phpdoc.dll
02-11-06 12:41 28.730 php_pop3.dll
02-11-06 12:41 49.213 php_printer.dll
02-11-06 12:41 41.020 php_radius.dll
02-11-06 12:41 147.513 php_rar.dll
02-11-06 12:41 73.788 php_runkit.dll
02-11-06 12:41 811.065 php_sdo.dll
02-11-06 12:41 24.634 php_smtp.dll
02-11-06 12:41 127.034 php_ssh2.dll
02-11-06 12:41 135.227 php_stats.dll
02-11-06 12:41 98.362 php_stem.dll
02-11-06 12:41 790.585 php_svn.dll
02-11-06 12:41 28.731 php_swish.dll
02-11-06 12:41 24.637 php_threads.dll
02-11-06 12:41 278.592 php_timezonedb.dll
02-11-06 12:41 585.790 php_translit.dll
02-11-06 12:41 24.637 php_win32ps.dll
02-11-06 12:41 36.932 php_win32scheduler.dll
02-11-06 12:41 28.738 php_win32service.dll
02-11-06 12:41 41.022 php_win32std.dll
02-11-06 12:41 45.113 php_yaz.dll
02-11-06 12:41 28.737 php_zlib_filter.dll
65 bestand(en) 7.418.561 bytes
2 map(pen) 16.720.293.888 bytes beschikbaar

D:\webserver\PHP\ext>
> Have you checked you have the full path to the extensions directory in php.ini ?
[PHP.ini]
; Default timeout for socket based streams (seconds)
default_socket_timeout = 60
upload_tmp_dir="D:\webserver\PHP\uploadtemp"
session.save_path="D:\webserver\PHP\sessiondata"
extension_dir="D:\webserver\PHP\ext"
> Is php.ini in your \Windows directory?
Yes, I put it there when I read the faq. And still giving the errors.