文書の過去の版を表示しています。
# apt install apache2 libapache2-mod-php php-xml
# a2enmod rewrite # systemctl restart apache2
ファイアウォールの状態を確認.
# ufw status
Status: inactive
Inactiveの場合,有効化する.
# ufw enable # ufw status
Status: active
使用可能なアプリケーションを確認する.
# ufw app list
Available applications: Apache Apache Full Apache Secure CUPS OpenSSH
Apacheに対して,ファイアウォールを許可.httpのみの場合は'Apache',httpsのみ場合'Apache Secure',両方の場合'Apache Full'を指定する.
# ufw allow 'Apache' # ufw status
Status: active To Action From -- ------ ---- Apache ALLOW Anywhere Apache (v6) ALLOW Anywhere (v6)
Apacheの再起動.
systemctl status apache2.service