8.3 Install the Web Pages into Your Web Server

  1. If you have moved out of the en_US.ISO8859-1/htdocs directory, change back to it.

    # cd /usr/build/en_US.ISO8859-1/htdocs
    
  2. Run the make(1) install target, setting the DESTDIR variable to the name of the directory you want to install the files to. The actual files are installed under $DESTDIR/data which should be configured as your web server's document root.

    # env DESTDIR=/usr/local/www make install
    
  3. If you have previously installed the web pages into the same directory the install process will not have deleted any old or outdated pages. For example, if you build and install a new copy of the site every day, this command will find and delete all files that have not been updated in three days.

    # find /usr/local/www -ctime 3 -print0 | xargs -0 rm