On Dabian: 新增使用者並且啟動個人網頁

安裝好 Debian,要如何新增使用者 xyz,並啟動 xyz 的個人網頁?

新增使用者

$> adduser xyz

設定密碼則輸入

$> passwd xyz

這時候,在 /home 底下會出現一個 xyz 目錄。

新增 public_html 目錄

進入 /home/xyz 目錄,新增 public_html 目錄

$> cd /home/xyz
$> mkdir public_html

Debian Apache2 加 UserDir

加 links

$> sudo ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf
$> sudo ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load

重新啟動 apache2

$> sudo /etc/init.d/apache2 restart

0 comments on On Dabian: 新增使用者並且啟動個人網頁

    Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img><blockquote>
    • Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.