PHP安装中出现“未启用日志处理”错误

萨曼莎

我要在Windows Server 2008R2上安装Cacti,但首先应该安装PHP。我下载了VC11 x64 Non-THread Safe,并且按照Cacti网站http://docs.cacti.net/manual:088:1_installation.2_install_windows.1_configure_php中的所有说明进行操作

但是当在命令提示符下我写
php -m

我有一个错误,说

     >Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\Administrator.Germany>PHP -M
No log handling enabled - turning on stderr logging
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 (HOST-RESOURCES-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 (NOTIFICATION-LOG-MIB): 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 (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-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)
Usage: php [options] [-f] <file> [--] [args...]
       php [options] -r <code> [--] [args...]
       php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
       php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
       php [options] -- [args...]
       php [options] -a

  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse and execute <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -B <begin_code>  Run PHP <begin_code> before processing input lines
  -R <code>        Run PHP <code> for every input line
  -F <file>        Parse and execute <file> for every input line
  -E <end_code>    Run PHP <end_code> after processing all input lines
  -H               Hide any passed arguments from external tools.
  -s               Output HTML syntax highlighted source.
  -v               Version number
  -w               Output source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin

  --ini            Show configuration file names

  --rf <name>      Show information about function <name>.
  --rc <name>      Show information about class <name>.
  --re <name>      Show information about extension <name>.
  --ri <name>      Show configuration for extension <name>.


C:\Users\Administrator.Germany>"

我该怎么办?

肠杆菌

关闭用于PHP的SNMP扩展。

在php.ini中找到此行extension=php_snmp.dll并将其删除或注释掉。

关于Serverfault的类似问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在 npm 安装中出现错误

Apache错误日志中出现错误

Firebase函数中的onCall函数导致Firebase函数日志中出现未处理的拒绝错误

在npm安装过程中出现错误,未安装所有软件包

Ansible 的“修复”状态,当配置文件中出现错误且未安装软件包时

如何避免在magento安装中出现“必须加载PHP扩展“ 0””错误?

无法检测到日志中出现的 CustomizedTextParser 错误的来源

在Electron中出现错误消息和控制台日志?

postfix mail.warn日志中出现奇怪的错误

安装Oracle Jdeveloper时在Mac中出现安装错误。

在以下php代码中出现错误

在php登录屏幕中出现错误

PHP 未定义偏移量:服务器日志中出现 0 错误。如何避免?

在PHP 7.0中出现致命错误:未捕获错误:调用未定义函数json_encode()

在Pandas的多重处理中出现“过程已分叉”错误

C ++如何处理对象组合中出现的错误?

18.04:系统安装失败,LiveUSB 中出现文件系统错误

安装调试APK时,Android Studio中出现未知错误

试图安装Drupal 7的VirtualBox中出现权限错误

我在joomla安装过程中出现错误

安装xkcd字体时font_import中出现错误

在Sitecore 9安装过程中出现错误

Maven 安装在 Spring 工具套件中出现多个错误

jNews安装使Joomla中出现数据库错误!3

mscore字体安装过程中出现错误

phpmyadmin 安装过程中出现错误 1064 (42000)

自动完成选择项中出现未捕获的错误

ZFS-系统日志中出现“添加感知:未恢复的读取错误-自动重新分配失败”,但SMART数据看起来正常

使用日志记录处理程序时出现500错误