[root@centos ~]# cp /var/www/iptablelog/conf/config.php.default /var/www/iptablelog/conf/config.php
[root@centos ~]# vi /var/www/iptablelog/conf/config.php
# Password of the MySQL database
$db_password="パスワード"; ← iptablelogデータベースアクセスユーザパスワード設定
# File Path to your installation
$file_base="/var/www/iptablelog"; # i.e. "/var/www/html/iptablelog" ← iptablelogWebディレクトリ名設定
[root@centos ~]# cp /var/www/iptablelog/conf/iptables_resolve.default /etc/cron.hourly/iptables_resolve
← IPアドレス名前解決スクリプトを定期自動実行ディレクトリへコピー
[root@centos ~]# vi /etc/cron.hourly/iptables_resolve ← IPアドレス名前解決スクリプト編集
$iptablelog_path = "/var/www/iptablelog"; # Change this ← iptablelogWebディレクトリ名設定
db_connect("localhost","iptablelog","iptablelog_user", "パスワード"); # Change these db settings
← iptablelogデータベースアクセス情報設定
※IPTables log analyzerバグ対処
[root@centos ~]# vi /etc/php.ini ← PHP設定ファイル編集
short_open_tag = On ← Onにする
[root@centos ~]# vi /var/www/iptablelog/reports/index.php ← Reports設定ファイル編集
require_once("../conf/config.php");
//require_once("conf/config.php"); ← 行頭に//を追加してコメントアウト
#db_disconnect();
pageFooter();
?>
pageFooter(); ← 不要な行を削除
?> ← 不要な行を削除
|
|