Back to Top

Daily Archives: 2016年2月7日

VineLinux6.3 Apache2(Webサーバ)の構築

端末にて起動
#/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/ とで表示

VineLinux6.3 rootログイン

rootログイン設定

/etc/pam.d/gdmを編集する

端末にて

#sudo gedit /etc/pam.d/gdm

2行目あたりにあるにで頭に # をつけてコメントアウト。

#auth required pam_succeed_if.so user != root quiet

保存して再起動すると、[その他] からrootでログインできるようになります