0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Network-weathermap on CentOS7 with gri

Last updated at Posted at 2015-11-17

Installation

Installation gri

  • griはgemパッケージで提供されているのでgem installで入れることができる。

 # yum install ruby-gems
 # gem install gri

Installation network-weathermap

  • Network weathermapはPHPに依存しているのでPHP関連のパッケージを入れる。

 # yum install rrdtool
 # yum install rrdtoop-php
 # yum install cacti
 # yum install php-gd
 # yum install php-pear
  • Network weathermapをインストールする
  • 以下は、/var/www/html(DocRoot)に展開した場合の操作

 # chown -Rv apache:apache /var/www/html

editorの設定変更

  • webで設定ファイルを修正するためにはeditorをONにしなければならない
    • また、PHPの構文が古く、上記と合わせて2カ所を編集しないと正しく動作しない

# diff -U0 /var/tmp/weathermap/editor.php editor.php                                                                                       
--- /var/tmp/weathermap/editor.php      2013-04-10 14:14:36.000000000 -0700
+++ editor.php  2015-11-20 17:52:36.484220260 -0800
@@ -7 +7 @@
-$ENABLED=false;
+$ENABLED=true;
@@ -32 +32 @@
-    $parts = split(":",$_COOKIE['wmeditor']);
+    $parts = explode(":",$_COOKIE['wmeditor']);

利用開始

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?