BMS-HOSxP Community

HOSxP => Networking => ข้อความที่เริ่มโดย: - -" ที่ พฤศจิกายน 12, 2009, 22:21:01 PM

หัวข้อ: เรื่อง CACTI
เริ่มหัวข้อโดย: - -" ที่ พฤศจิกายน 12, 2009, 22:21:01 PM
มี ปัญหาเรื่อง program CACTI อ่ะค่ะ

ติดตั้งไม่ได้ ทั้ง ๆๆ ที่ลง rrdtool , net-snmp แล้ว

รันแล้วไม่ขึ้นอะไรเลยในหน้าเว็ป

อยากรู้ด่วนนะค่ะ ๆๆ ช่วยหน่อย นะค่ะ  ๆๆ
หัวข้อ: Re: เรื่อง CACTI
เริ่มหัวข้อโดย: เข้ม ที่ พฤศจิกายน 13, 2009, 08:18:51 AM
รบกวนแจ้งรายละเอียด เกียวกับ
server อะไร เช่น CentOS หรือ ...
php รุ่นไหน

ด้วยครับ

เอาแบบเดาไปก่อนนะครับ

ถ้าเป็น CentOS  ลองเข้าไปดูไฟล์

/etc/httpd/logs/error_log

น่าจะหาสาเหตุได้

ที่ผมเคยทำแล้วมันขึ้นหน้าขาวอย่างเดียวเลย (ย้ำว่ากรณีของผมนะครับ)
ผมก็เข้าไปดู error อย่างที่บอกครับ
เป็นเพราะว่าเรากำหนดค่าใน php.ini กับ open_tag ในไฟล์ *.php เป็นแบบไหน

open_tag ก็คือ <?  และ  <?php

ใน CentOS มันจะอยู่ในนี้  /etc/php.ini

ตรง
short_open_tag = On   จะสามารถใช้ได้ทั้งแบบ <? และ <?php

ซึ่งผมเองก็ไม่แน่ใจว่า default มันเป็น On หรือ Off

ลองเข้าไปดูละกันครับ  ;)

หัวข้อ: Re: เรื่อง CACTI
เริ่มหัวข้อโดย: - -" ที่ พฤศจิกายน 13, 2009, 21:06:32 PM
รันบน windows เป็น php อ่ะ ค่ะ


---------------------------------------------------------------------------------------------------------------------------------------------

<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2009 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDTool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 | http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

include("./include/auth.php");
include("./include/top_header.php");

?>
<table width="100%" align="center">
   <tr>
      <td class="textArea">
         <strong>You are now logged into <a href="about.php">Cacti</a>. You can follow these basic steps to get
         started.</strong>

         <ul>
            <li><a href="host.php">Create devices</a> for network</li>
            <li><a href="graphs_new.php">Create graphs</a> for your new devices</li>
            <li><a href="graph_view.php">View</a> your new graphs</li>
         </ul>
      </td>
      <td class="textArea" align="right" valign="top">
         <strong>Version <?php print $config["cacti_version"];?></strong>
      </td>
   </tr>
</table>

<?php

include("./include/bottom_footer.php");

?>


---------------------------------------------------------------------------------------------------------------------------------------------
นี่คือหน้า index.php อ่ะค่ะ
แล้วมันก็เป็นหน้าสีขาวเหมือนของคุณเลยอ่ะค่ะ
ช่วยหน่อยนะค่ะ ขอบคุณค่ะ ๆๆ ^^