Click to See Complete Forum and Search --> : Please HELP: PHP doesn't find dll extensions


alfatau
05-18-2007, 07:04 AM
hello,
I installed php 5.2.2 on my windows machine and apache 2.2.4. after a first configuration apache worked with php. then i installed mysql 5.0 to be able to run a cms on my machine. after some configuration tries php stopped working. apache log (the same of php.exe output) says:

[Fri May 18 11:15:00 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.2 configured -- resuming normal operations
[Fri May 18 11:15:00 2007] [notice] Server built: Jan 9 2007 23:17:20
[Fri May 18 11:15:00 2007] [notice] Parent: Created child process 2516
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_fdf.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_interbase.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ldap.dll' - The operating system cannot run %1.\are\n in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mcrypt.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mhash.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_msql.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mssql.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mysql.dll' - Invalid access to memory location.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mysqli.dll' - Invalid access to memory location.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oci8.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_openssl.dll' - The operating system cannot run %1.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_firebird.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_mssql.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_mysql.dll' - Invalid access to memory location.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci8.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_sqlite_external.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pspell.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_sybase_ct.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_fribidi.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ibm_db2.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ifx.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ingres.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_maxdb.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mcrypt_filter.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_netools.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oracle.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_ibm.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_informix.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ssh2.dll' - The operating system cannot run %1.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_svn.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_swish.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_yaz.dll' - The specified module could not be found.\are\n in Unknown on line 0
PHP Notice: Constant XML_ELEMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_TEXT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_COMMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_NOTATION_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DTD_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0
[Fri May 18 11:15:01 2007] [notice] Child 2516: Child process is running
[Fri May 18 11:15:01 2007] [notice] Child 2516: Acquired the start mutex.
[Fri May 18 11:15:01 2007] [notice] Child 2516: Starting 250 worker threads.
[Fri May 18 11:15:01 2007] [notice] Child 2516: Starting thread to listen on port 80.


i really don't know what i could have done to create this problem, because i didn't modified configuration files.
the error messages also says "re-installing the application may fix this problem", so i first reinstalled the application and the problem wasn't solved,then i uninstalled-deleted any php files and directories-rebooted-and-installed,then i tried uninstalling and installing in a new-named directory, then i tried to check environment variables add-and-remove them, and i tried so many times i don't remember all tries i did (always rebooting), but the problems is still unsolved.

my php.ini extension_dir is:

extension_dir ="C:\Program Files\PHP\ext"


and all windows extensions directives are disabled.
Any idea to solve my problem??
Thank you very much!
Regards
Alessandro

bradgrafelman
05-18-2007, 11:42 PM
1. Did you add the main c:\Program Files\PHP directory to your system's PATH environment variable?

2. Did you read this bit on the manual page [man]install.windows.manual]: If you are installing PHP 5, extract to C:\php as the zip file doesn't expand as in PHP 4. You may choose a different location but do not have spaces in the path (like C:\Program Files\PHP) as some web servers will crash if you do.

3. Is there really a need to load that many extensions? Do you honestly need all of them? I know there is an ordering issue (some have to be loaded before others), so try starting with just the extensions you need (or just one) and add an extension, one by one, to make sure it's not the ordering that's throwing things off.

4. Shows that mbstring is already loaded... are you sure there aren't duplicate 'extesion=' lines in your config file?