1
2

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.

Ubuntu12.04でApache2.4.7を設定するまで

Last updated at Posted at 2015-06-18

1 Apacheのダウンロードおよびインストール

sudo apt-get install apache2

2 サーバー名の設定

echo ServerName $HOSTNAME | sudo tee /etc/apache2/conf-available/fqdn.conf

3 設定ファイルの反映

sudo a2enconf fqdn

4 Apacheの各種コマンド

コマンド 説明
sudo /usr/sbin/apachectl start 起動
sudo /usr/sbin/apachectl stop 停止
sudo /usr/sbin/apachectl graceful 停止中の場合は起動,起動中の場合は再起動
sudo /usr/sbin/apachectl graceful-stop 処理完了後に停止
sudo /usr/sbin/apachectl restart 再起動
sudo /usr/sbin/apachectl configtest 設定ファイルのテスト
sudo /usr/sbin/apachectl status ステータス表示
sudo /usr/sbin/apachectl fullstatus ステータス表示
sudo /usr/sbin/apachectl help ヘルプの表示

5 index.htmlの場所

/var/www/html/index.html

おまけ


  • Ubuntuのバージョン確認方法
cat /etc/lsb-release

  • アーキテクチャの確認
arch
1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?