Categories: IT

apache のインストール(覚書)

UBUNTUにapacheをインストール。

$ apt-get -y install apache2

設定ファイル変更。

$ vi /etc/apache2/mods-available/userdir.conf

中身は下記のように。

<IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root

        <Directory /home/*/public_html>
                AllowOverride FileInfo AuthConfig Limit
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        </Directory>
</IfModule>

設定を有効にする。

$ a2enmod userdir

mod_rewriteを有効に。

a2enmod rewrite

apacheをリスタート。

$ /etc/init.d/apache2 restart
管理者

Recent Posts

Androidにて「Cookieが無効です 」が出る

AndroidスマホのChro…

2か月 ago

GASで半角カナから全角カナへ変換

Googleスプレッドシートに…

3か月 ago

This website uses cookies.