I am not able to get my "PHP" running properly in Apache server. The first http request will give me this error at access.log 127.0.0.1 - - [09/May/2008:10:11:26 +0800] "GET /test1.php HTTP/1.1" 500 -
The second trial (to the same page) will terminate the Apache server, with this error at error.log PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_fdf.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_interbase.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mcrypt.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mhash.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_msql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_oci8.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_firebird.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_oci.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_sqlite_external.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pspell.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_ibm_db2.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_ifx.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_ingres2.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_maxdb.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mcrypt_filter.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mcve.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_netools.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_ibm.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_informix.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_ssh2.dll' - The operating system cannot run %1.\r\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 09 10:18:55 2008] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations [Fri May 09 10:18:55 2008] [notice] Server built: Jan 17 2008 22:58:29 [Fri May 09 10:18:55 2008] [notice] Parent: Created child process 6088 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_fdf.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_interbase.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mcrypt.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_mhash.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_msql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_oci8.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_firebird.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_oci.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_pdo_oci8.dll' in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pdo_sqlite_external.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\Program Files\\PHP5\\ext\\php_pspell.dll' - The specified module could not be found.\r\n in Unknown on line 0
Below is the php page code <html> <head> <title> PHP Test Script </title> </head> <body> <?php phpinfo( ); ?> </body> </html>
If you are installing apache and php on windows, I have a simpler solution for you if you can follow. Try installing easyphp software, this will automatically install apache + php + mysql on your system. This is a free software, you can download and read more about it at http://www.easyphp.org/
Okay, I checked your php.ini. Sorry, had to go shopping :-).
As I see, you try to load nerly every module, that's available for PHP. Some are loaded (bz2 e.g.), others are not.
Please post a phpinfo.
I would say, there is no need to re-install it, we just have to figure out, which of the modules are failing. If you do not need them, we'll disable them.
I can see that you have the latest version of PHP for Windows, 5.2.6. Assuming that your php.ini file is correct, there is a known issue in this version regarding the Postgres module, which is that it requires access to the Postgres DLL files on the PATH, especially libpg.dll and its dependencies.
The other modules you're trying to load may have the same issue. To check each one of them you can use the Microsoft tool Depends.exe (can be found for download at the Microsoft Download Center as part of the Windows Support Tools, or more directly at http://www.dependencywalker.com/).
Finding out which DLLs that needs to be statically loaded is then (almost) a piece of cake.