r8 - 04 Oct 2008 - 15:05:10 - BjornHelgeMevikYou are here: TWiki >  Main Web  >  AdminTasks > WebAdmin

Web site administration

How to add a new site

All sites should be hosted on bar, so this is a description of how to add a site there.

  1. create a corresponding directory in /www, eg:
    /www/www.domain.com
  2. create a htdocs directory under the above , eg:
    /www/www.domain.com/htdocs
  3. If the owner wants ftp access: add an ftp account for the site with the same group as the owning member, eg
    user domain, group bill, home dir /www/www.domain.com:
    useradd --comment www.domain.com --home /www/www.domain.com --groups "" --gid bill --shell /bin/false domain
    echo domain >> /etc/vsftpd.user_list

    Set the password for the ftp account.
  4. chown the directories above to the owning (shell or ftp) account and group, eg:
    chown -R domain.bill /www/www.domain.com
  5. add the site to /etc/apache2/vhosts.d/username.conf as specified in HttpdConf? (remember to disable PHP for non-members)
  6. check the apache configuration:
    rcapache2 configtest
  7. reload apache:
    rcapache2 reload
  8. communicate the ftp password (if any) to the user in a sensible way (PGP, SMS, text file in home dir)

-- GeirAalberg - 10 Jan 2002
-- BjornHelgeMevik - 17 Nov 2005, 17 Jun 2006, 4 Oct 2008

AdminTaskForm
Description Sette opp/konfigurere apache for siter. Opprette evt. tilhørende ftp-konti. Holde øye med, spore/ta seg av evt. problemer.
Admins SalveJNilsen
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r8 < r7 < r6 < r5 < r4 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback