CentOS 7にGraylogサーバーをインストールする方法
CentOS 7にGraylogサーバーをインストールし、ログ管理を行う方法を学びます。
Mini掲示板としても知られるMiniBBは、独自のインターネットフォーラムを構築するために使用されるオープンソースプログラムです。PHPで書かれており、1日あたりの投稿数が100を下回る中小規模のフォーラムコミュニティ向けに特別に設計されています。このチュートリアルでは、Ubuntu 16.04にminiBBフォーラムをインストールして構成する方法を示します。
まず、次のコマンドを実行して、システムを最新の安定したバージョンに更新します。
sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
miniBBをインストールする前に、LAMPスタックといくつかのPHPモジュールをインストールする必要があります。次のコマンドでインストールできます。
sudo apt-get install apache2 libapache2-mod-php7.0 mariadb-server php7.0 php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-opcache php7.0-common
まず、miniBBのWebサイトから最新の安定したバージョンのminiBBをダウンロードする必要があります。
という名前のディレクトリを作成しminibb
、ダウンロードしたアーカイブをApacheドキュメントのルートディレクトリに抽出します。
sudo mkdir /var/www/html/minibb
sudo unzip minibb.zip -d /var/www/html/minibb
minibb
ディレクトリに適切な権限を設定します。
sudo chown -R www-data:www-data /var/www/html/minibb
また、setup_options.php
ファイルにいくつかの変更を加える必要があります。
sudo nano /var/www/html/minibb/setup_options.php
必要に応じてファイルを変更します。
$DBhost='localhost';
$DBname='minibb';
$DBusr='minibbuser';
$DBpwd='password';
$admin_usr = 'admin';
$admin_pwd = 'admin@123';
$admin_email = '[email protected]';
$main_url='http://example.com';
完了したら、ファイルを保存して閉じます。
デフォルトでは、MariaDBは保護されていないため、最初に保護する必要があります。mysql_secure_installation
スクリプトでそれを保護できます。
sudo mysql_secure_installation
以下に示すように、すべての質問に答えてください。
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] n
... skipping.
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] Y
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] Y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] Y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
次に、MariaDBコンソールにログインし、miniBB用のデータベースを作成します。
mysql -u root -p
MariaDBルートパスワードを入力し、Enterキーを押します。MariaDBにログインしたら、miniBB用のデータベースを作成する必要があります。
MariaDB [(none)]> CREATE DATABASE minibb;
MariaDB [(none)]> CREATE USER 'minibbuser'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `minibb`.* TO 'minibbuser'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q
minibb.conf
Apache用の新しい仮想ホストファイルを作成します。
sudo nano /etc/apache2/sites-available/minibb.conf
次の行を追加します。
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/minibb
ServerName 192.168.1.227
ServerAlias www.example.com
<Directory /var/www/html/minibb/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/minibb_log
CustomLog /var/log/apache2/minibb_custom_log common
</VirtualHost>
完了したら、次のコマンドを実行して仮想ホストを有効にします。
sudo a2ensite minibb.conf
sudo service apache2 reload
miniBB Webインターフェースにアクセスする時が来ました。お気に入りのWebブラウザーを開き、URLを入力しますhttp://your-server-ip/_index.php
。必要な手順を実行して、インストールを完了します。
インストールが完了したら、に移動してminiBB管理パネルにログインできますhttp://your-server-ip/bb_admin.php?
。新しいminiBBをお楽しみください。
CentOS 7にGraylogサーバーをインストールし、ログ管理を行う方法を学びます。
Debian 10にWebDAVをデプロイする方法を学び、WsgiDAVとSSL証明書で安全な接続を実現しましょう。
CentOS 7サーバーにApache 2.4をインストールする方法を説明します。安定したウェブサーバーを構築するための前提条件と手順を解説します。
FreeBSD 11.1におけるBlacklistdのインストール方法について詳しく解説します。この方法を通じて、強力なセキュリティ対策を実装できます。
サーバーマネージャーを使用して、Windows Serverの管理が向上します。セキュリティリスクを軽減し、効率的な管理を実現します。
CentOS 7にSeafileサーバーをインストールする方法。Seafile(コミュニティバージョン)は、ownCloudに似た無料のオープンソースファイル同期および共有ソリューションです。
Snortは無料のネットワーク侵入検知システムです。最新の方法で、SnortをDebianにインストールし、設定する手順を紹介します。ネットワークのセキュリティを強化しましょう。
CentOS 7にGraylogサーバーをインストールし、ログ管理を行う方法を学びます。
WindowsサーバーでWebサイトを実行している場合、電子メールも受信できるようにするためにhMailServerを使用する方法を解説します。
FiveMサーバーをUbuntu 19.04にインストールするための詳細なガイド。必要条件からインストール、起動、トラブルシューティングまで、すべてのステップを含みます。
Debian 10にWebDAVをデプロイする方法を学び、WsgiDAVとSSL証明書で安全な接続を実現しましょう。
ヘルスケアにおけるAIは、過去数十年から大きな飛躍を遂げました。したがって、ヘルスケアにおけるAIの未来は、日々成長を続けています。