1
I’m building an apache+php+mysql environment in windows to migrate an application. I’m taking the bugs below when I start apache, but this only happens when I run the PHP installer (to tending several things, so more than one run in the installer)
[Thu Mar 08 10:44:31 2018] [notice] Child 5380: Child process is running
[Thu Mar 08 10:44:31 2018] [notice] Child 5380: Acquired the start mutex.
[Thu Mar 08 10:44:31 2018] [notice] Child 5380: Starting 64 worker threads.
[Thu Mar 08 10:44:31 2018] [notice] Child 5380: Starting thread to listen on port 80.
[Thu Mar 08 10:44:32 2018] [error] [client 127.0.0.1] PHP Warning: require_once(SAM/php_sam.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in sam_factory on line 1
[Thu Mar 08 10:44:32 2018] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1
[Thu Mar 08 10:44:36 2018] [error] [client 127.0.0.1] PHP Warning: require_once(C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\SAM\\php_sam.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in sam_factory on line 1
[Thu Mar 08 10:44:36 2018] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1
[Thu Mar 08 10:44:44 2018] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Mar 08 10:44:44 2018] [notice] Child 5380: Exit event signaled. Child process is ending.
[Thu Mar 08 10:44:46 2018] [notice] Child 5380: Released the start mutex
[Thu Mar 08 10:44:47 2018] [notice] Child 5380: All worker threads have exited.
When I restart the server, and try to call php in the terminal, the log below is generated.
php PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_oci8.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_oci.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_oci8.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_pgsql.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_sqlite_external.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pgsql.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pspell.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_sybase_ct.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_ibm_db2.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_ifx.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_ingres2.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_maxdb.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_mcve.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_netools.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_oracle.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_ibm.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load Dynamic library 'C: php ext php_pdo_informix.dll' - It was not possible to find the specified m¾dulo. in Unknown on line 0 Cannot find module (IP-MIB): At line 0 in (None) Cannot find module (IF-MIB): At line 0 in (None) Cannot find module (TCP-MIB): At line 0 in (None) Cannot find module (UDP-MIB): At line 0 in (None) Cannot find module (Snmpv2-MIB): At line 0 in (None) Cannot find module (Snmpv2-SMI): At line 0 in (None) Cannot find module (UCD-SNMP-MIB): At line 0 in (None) Cannot find module (UCD-DEMO-MIB): At line 0 in (None) Cannot find module (SNMP-TARGET-MIB): At line 0 in (None) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (None) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (None) Cannot find module (UCD-DLMOD-MIB): At line 0 in (None) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (None) Cannot find module (SNMP-MPD-MIB): At line 0 in (None) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (None) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (None) Cannot find module (Snmpv2-TM): At line 0 in (None) 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: PHP Fatal error: require_once(): Failed Opening required 'SAM/php_sam.php' (include_path='.;C: php5 Pear') in sam_factory on line 1 Could not startup.
This last error "PHP Fatal error:" is pointing to this directory "C: php5 Pear", which is wrong, my php is in "C: php", and the DLL’s are in the C directory: php ext. See:
C:\php\ext> ls
Diretório: C:\php\ext
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 02/05/2008 18:07 53319 php5activescript.dll
-a---- 02/05/2008 18:07 49214 php_adt.dll
-a---- 02/05/2008 18:07 53310 php_amf.dll
-a---- 02/05/2008 18:07 61508 php_bcompiler.dll
-a---- 02/05/2008 18:07 28737 php_bitset.dll
-a---- 02/05/2008 18:07 32832 php_blenc.dll
-a---- 02/05/2008 18:07 69694 php_bz2.dll
-a---- 02/05/2008 18:07 65605 php_bz2_filter.dll
-a---- 02/05/2008 18:07 32835 php_classkit.dll
-a---- 02/05/2008 18:07 172095 php_cpdf.dll
-a---- 02/05/2008 18:07 41024 php_crack.dll
-a---- 02/05/2008 18:07 237631 php_curl.dll
-a---- 02/05/2008 18:07 32836 php_cvsclient.dll
-a---- 02/05/2008 18:07 28733 php_db.dll
-a---- 02/05/2008 18:07 397374 php_dba.dll
-a---- 02/05/2008 18:07 36928 php_dbase.dll
-a---- 02/05/2008 18:07 61502 php_dbx.dll
-a---- 02/05/2008 18:07 24638 php_dio.dll
-a---- 02/05/2008 18:07 41027 php_docblock.dll
-a---- 02/05/2008 18:07 86081 php_domxml.dll
-a---- 02/05/2008 18:07 32842 php_doublemetaphone.dll
-a---- 02/05/2008 18:07 32832 php_event.dll
-a---- 02/05/2008 18:07 57407 php_exif.dll
-a---- 02/05/2008 18:07 45118 php_fdf.dll
-a---- 02/05/2008 18:07 61507 php_fileinfo.dll
-a---- 02/05/2008 18:07 28738 php_filepro.dll
-a---- 02/05/2008 18:07 950334 php_gd2.dll
-a---- 02/05/2008 18:07 45122 php_gettext.dll
-a---- 02/05/2008 18:07 131134 php_gmp.dll
-a---- 02/05/2008 18:07 24641 php_gopher.dll
-a---- 02/05/2008 18:07 753727 php_haru.dll
-a---- 02/05/2008 18:07 24644 php_htscanner.dll
-a---- 02/05/2008 18:07 507967 php_http.dll
-a---- 02/05/2008 18:07 122948 php_hyperwave.dll
-a---- 02/05/2008 18:07 57410 php_ibm_db2.dll
-a---- 02/05/2008 18:07 45118 php_id3.dll
-a---- 02/05/2008 18:07 65598 php_ifx.dll
-a---- 02/05/2008 18:07 41026 php_iisfunc.dll
-a---- 02/05/2008 18:07 835647 php_imap.dll
-a---- 02/05/2008 18:07 65602 php_ingres2.dll
-a---- 02/05/2008 18:07 69700 php_interbase.dll
-a---- 02/05/2008 18:07 127039 php_ldap.dll
-a---- 02/05/2008 18:07 24638 php_lzf.dll
-a---- 02/05/2008 18:07 49220 php_mailparse.dll
-a---- 02/05/2008 18:07 94272 php_maxdb.dll
-a---- 02/05/2008 18:07 1871939 php_mbstring.dll
-a---- 02/05/2008 18:07 41025 php_mcrypt.dll
-a---- 02/05/2008 18:07 24648 php_mcrypt_filter.dll
-a---- 02/05/2008 18:07 81983 php_mcve.dll
-a---- 02/05/2008 18:07 49219 php_memcache.dll
-a---- 02/05/2008 18:07 24640 php_mhash.dll
-a---- 02/05/2008 18:07 32837 php_mime_magic.dll
-a---- 02/05/2008 18:07 327743 php_ming.dll
-a---- 02/05/2008 18:07 32831 php_msql.dll
-a---- 02/05/2008 18:07 49216 php_mssql.dll
-a---- 02/05/2008 18:07 45120 php_mysql.dll
-a---- 02/05/2008 18:07 86081 php_mysqli.dll
-a---- 02/05/2008 18:07 24642 php_netools.dll
-a---- 02/05/2008 18:07 28737 php_ntuser.dll
-a---- 02/05/2008 18:07 102463 php_oci8.dll
-a---- 02/05/2008 18:07 987204 php_oggvorbis.dll
-a---- 02/05/2008 18:07 65602 php_openssl.dll
-a---- 02/05/2008 18:07 69699 php_operator.dll
-a---- 02/05/2008 18:07 36929 php_oracle.dll
-a---- 02/05/2008 18:07 36931 php_parsekit.dll
-a---- 02/05/2008 18:07 94270 php_pdo.dll
-a---- 02/05/2008 18:07 32839 php_pdo_firebird.dll
-a---- 02/05/2008 18:07 36930 php_pdo_ibm.dll
-a---- 02/05/2008 18:07 36935 php_pdo_informix.dll
-a---- 02/05/2008 18:07 24644 php_pdo_mssql.dll
-a---- 02/05/2008 18:07 28740 php_pdo_mysql.dll
-a---- 02/05/2008 18:07 32834 php_pdo_oci.dll
-a---- 02/05/2008 18:07 32835 php_pdo_oci8.dll
-a---- 02/05/2008 18:07 28739 php_pdo_odbc.dll
-a---- 02/05/2008 18:07 28740 php_pdo_pgsql.dll
-a---- 02/05/2008 18:07 278597 php_pdo_sqlite.dll
-a---- 02/05/2008 18:07 28750 php_pdo_sqlite_external.dll
-a---- 02/05/2008 18:07 69699 php_pdo_user.dll
-a---- 02/05/2008 18:07 98368 php_pgsql.dll
-a---- 02/05/2008 18:07 204863 php_phar.dll
-a---- 02/05/2008 18:07 28737 php_phpdoc.dll
-a---- 02/05/2008 18:07 28735 php_pop3.dll
-a---- 02/05/2008 18:07 49218 php_printer.dll
-a---- 02/05/2008 18:07 36929 php_pspell.dll
-a---- 02/05/2008 18:07 41025 php_radius.dll
-a---- 02/05/2008 18:07 151614 php_rar.dll
-a---- 02/05/2008 18:07 73793 php_runkit.dll
-a---- 02/05/2008 18:07 24638 php_sam.dll
-a---- 02/05/2008 18:07 876606 php_sdo.dll
-a---- 02/05/2008 18:07 24640 php_shmop.dll
-a---- 02/05/2008 18:07 24639 php_smtp.dll
-a---- 02/05/2008 18:07 249919 php_snmp.dll
-a---- 02/05/2008 18:07 249919 php_soap.dll
-a---- 02/05/2008 18:07 49218 php_sockets.dll
-a---- 02/05/2008 18:07 24644 php_spl_types.dll
-a---- 02/05/2008 18:07 241729 php_sqlite.dll
-a---- 02/05/2008 18:07 127039 php_ssh2.dll
-a---- 02/05/2008 18:07 135232 php_stats.dll
-a---- 02/05/2008 18:07 135231 php_stem.dll
-a---- 02/05/2008 18:07 45124 php_sybase_ct.dll
-a---- 02/05/2008 18:07 24642 php_threads.dll
-a---- 02/05/2008 18:07 237631 php_tidy.dll
-a---- 02/05/2008 18:07 282693 php_timezonedb.dll
-a---- 02/05/2008 18:07 585795 php_translit.dll
-a---- 02/05/2008 18:07 24649 php_uploadprogress.dll
-a---- 02/05/2008 18:07 24642 php_win32ps.dll
-a---- 02/05/2008 18:07 36937 php_win32scheduler.dll
-a---- 02/05/2008 18:07 28743 php_win32service.dll
-a---- 02/05/2008 18:07 41027 php_win32std.dll
-a---- 02/05/2008 18:07 73793 php_xmlrpc.dll
-a---- 02/05/2008 18:07 221246 php_xsl.dll
-a---- 02/05/2008 18:07 65599 php_yami.dll
-a---- 02/05/2008 18:07 61502 php_zip.dll
-a---- 02/05/2008 18:07 28742 php_zlib_filter.dll
PS C:\php\ext>
I read some things about environment variables and I have the one from PHP on Path and another MIBDIRS that points to mibs and another PHPRC that points to c: php.
Who can help I thank Vlw and hugs!
How is your PHP configuration file? Lines are uncommented with the use of DLL’s?
– William Aparecido Brandino
yes, for example: [PHP_PDO_OCI8] Extension=php_pdo_oci8.dll
– cpll
... [PHP_PDO_OCI8] Extension=php_pdo_oci8.dll [PHP_PDO_ODBC] Extension=php_pdo_odbc.dll [PHP_PDO_PGSQL] Extension=php_pdo_pgsql.dll
 Extension=php_pdo_sqlite_external.dll [PHP_PGSQL] Extension=php_pgsql.dll continua....
– cpll
apache is ok, it returns It Works! on localhost, now a page phpinfo() returns a 500 and if I restart the server it returns the right page of phpinfo() with the hints and everything
– cpll