2014-12-24 3 views
-2

Windows 서버 2008R2에 Cacti를 설치하려고하지만 먼저 PHP를 설치해야합니다. 나는 VC11 x64의 비 스레드 안전 다운로드 나는 선인장의 사이트 http://docs.cacti.net/manual:088:1_installation.2_install_windows.1_configure_phpPHP 설치시 "로그 처리 불가"오류가 발생했습니다

의 지침을 모두 수행하지만, 명령 프롬프트에서 나는 쓸 때
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>" 
을 말한다 오류가

어떻게해야합니까?

+0

정확하게 오류 메시지를 게시하고 올바르게 서식을 지정하십시오. 에디터는 코드 포맷팅, 링크 등의 도움을 제공합니다. 링크가 끊어 질 수 있으며 중요한 정보가 손실 될 수 있습니다. 또한 링크를 따라 가면 잠재적 인 답변자가 번거로워집니다. – Palec

+0

편집 해 주셔서 감사합니다 – samantha

+0

가능한 [이 PHP 경고를 끄는 방법?] (http://stackoverflow.com/questions/1012238/how-to-turn-off-these-php-warnings) –

답변

0

PHP의 SNMP 확장 기능을 끕니다.

php.ini에서이 라인을 찾아 extension=php_snmp.dll 찾아서 제거하거나 주석 처리하십시오.

Similar question on Serverfault

+0

감사 athousand 시간 ... 그것은 작동합니다 : D 조 – samantha

관련 문제