端末にて起動
#/etc/rc.d/init.d/apache2 start

Linux起動時に自動的にapache2が起動するように設定。
#chkconfig apache2 on

設定ファイルの編集
/etc/apache2/conf/httpd.conf をテキストエディタで開く

DirectoryIndex index.html index.html.var

DirectoryIndex index.html index.htm index.shtml index.php index.cgi

 

.htaccessの有効化

AllowOverride All

apache2の再起動
/etc/rc.d/init.d/apache2 restart

 

デフォルトでは /var/www/html がドキュメントフォルダなので、この中に index.html ファイルを作成
テキストエディタで以下を作成しindex.htmlとして保存
<html>
<head></head>
<body>hallo word</body>
</html>

http://localhost/ とで表示