CentOS 7にApacheをインストールする方法
CentOS 7サーバーにApache 2.4をインストールする方法を説明します。安定したウェブサーバーを構築するための前提条件と手順を解説します。
MantisBT、またはMantis Bug Trackerは、PHPで記述されたオープンソースの課題トラッカーです。MantisBTは、使いやすさと機能性の間で細かくバランスが取れており、開発チームのすべてのメンバーに優れたユーザーエクスペリエンスを提供します。
203.0.113.1
ます。MantisBTを提供するために、以下で構成される最新のLAMPスタックをセットアップします。
LAMPスタックの設定は複数のVultrチュートリアルで説明されているので、ここではプロセスの詳細は説明しませんが、参照用にコマンドライン履歴を提供します。
# Install Apache 2.4
sudo yum install httpd -y
sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
# Install MariaDB 10.2
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
sudo yum install MariaDB-server MariaDB-client -y
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
# Secure MariaDB 10.2
sudo /usr/bin/mysql_secure_installation
# When prompted, answer questions as below:
# - Enter current password for root (enter for none): Just press the Enter button
# - Set root password? [Y/n]: Y
# - New password: your-MariaDB-root-password
# - Re-enter new password: your-MariaDB-root-password
# - Remove anonymous users? [Y/n]: Y
# - Disallow root login remotely? [Y/n]: Y
# - Remove test database and access to it? [Y/n]: Y
# - Reload privilege tables now? [Y/n]: Y
# Create a MariaDB database for MantisBT
mysql -u root -p
# For security purposes, be sure to replace "mantisbt", "mantisbtuser", and "yourpassword" with your own ones.
CREATE DATABASE mantisbt;
CREATE USER 'mantisbtuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisbtuser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
# Install PHP 7.1
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install -y php71w php71w-mysqlnd php71w-common php71w-cli php71w-xml php71w-mbstring php71w-gd php71w-mcrypt php71w-opcache php71w-imap php71w-process php71w-intl
sudo cp /etc/php.ini /etc/php.ini.bak
sudo sed -i 's#;date.timezone =#date.timezone = America/Los_Angeles#' /etc/php.ini
# Configure firewall rules
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload
MantisBT
アーカイブをダウンロードして解凍します。
cd
wget https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.5.1/mantisbt-2.5.1.zip
sudo yum install -y unzip
unzip mantisbt-2.5.1.zip
MantisBT
ファイルを適切な場所に移動し、適切な権限を付与します。
sudo mv ~/mantisbt-2.5.1 /opt
sudo ln -s /opt/mantisbt-2.5.1 /var/www/html/mantisbt
sudo chown -R apache:apache /opt/mantisbt-2.5.1
MantisBTを適切に実行する前に、MantisBT用のApache仮想ホストをセットアップする必要があります。以下のコードセグメント全体をSSHターミナルにコピーして、を押してくださいEnter
。
注意:の値を変更することを忘れないでくださいServerAdmin
、ServerName
と、ServerAlias
それに応じて自分のマシン上で。
cat <<EOF | sudo tee -a /etc/httpd/conf.d/mantisbt.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/mantisbt/
ServerName mantisbt.example.com
ServerAlias www.mantisbt.example.com
<Directory /var/www/html/mantisbt/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/mantisbt.example.com-error_log
CustomLog /var/log/httpd/mantisbt.example.com-access_log common
</VirtualHost>
EOF
すべての変更を有効にするためにApacheを再起動します。
sudo systemctl restart httpd.service
お気に入りのWebブラウザーでサーバーのIPを指定すると、MantisBT Webインストールウィザードインターフェイスが表示されます。
ではChecking Installation
セクション、すべての項目があることを確認してくださいGOOD
。
ではInstallation Options
、次のようにセクション、入力MariaDBデータベースの資格情報、そのまま他のフィールドを残して、[OK]をクリックしますInstall/Upgrade Database
上に移動するボタンを。
mantisbtuser
yourpassword
mantisbt
次の段階Continue
で、下部のリンクをクリックしてインストールを完了し、ログインページに切り替えます。
ログインページで、デフォルトのadminユーザー名administrator
とデフォルトのパスワードroot
を使用してログインします。セキュリティ上の理由から、デフォルトのパスワードをすぐに変更する必要があります。
MantisBTが正常に稼働していることを確認したら、不正アクセスを防ぐためにMantisBTルートディレクトリを削除する必要があります。
sudo rm -rf /var/www/html/mantisbt/admin
必要に応じて、ファイルを編集してMantisBTをカスタマイズできます/var/www/html/mantisbt/config/config_inc.php
。
CentOS 7サーバーにApache 2.4をインストールする方法を説明します。安定したウェブサーバーを構築するための前提条件と手順を解説します。
CentOS 7にSeafileサーバーをインストールする方法。Seafile(コミュニティバージョン)は、ownCloudに似た無料のオープンソースファイル同期および共有ソリューションです。
CentOS 7にGraylogサーバーをインストールし、ログ管理を行う方法を学びます。
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の未来は、日々成長を続けています。