"Fossies" - the Fresh Open Source Software Archive

Member "htpasstool-v1.03/INSTALL" (3 Dec 2006, 1412 Bytes) of package /linux/www/old/htpasstool-v1.03.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 
    3 To install, extract the tarball into a path accessible via your webserver, for instance
    4 
    5   /var/www/htpasstool
    6 
    7 Make sure the directory is owned by the user your webserver runs as (e.g. www-data).
    8 
    9 -----------------------------------------------------------------------------
   10 
   11 First of all, edit the index.php file as follows.
   12 
   13 1 Change the BASE_DIRECTORY constant to your liking. The htpasstool script
   14 operates below this directory; in other words; if you put BASE_DIRECTORY to
   15 /var/www/somewhere, htpasstool will only be able to manage .htaccess and
   16 .htpasswd files in /var/www/somewhere/... It will not be able to manage
   17 /var/www, or even /var/www/somewhereelse/.
   18 
   19 2. If you changed BASE_DIRECTORY, you are probably going to want to modify the
   20 $url_prefix variable too. See inside the index.php file for an explanation of
   21 what this variable does.
   22 
   23 3. If you intend to use the password reset/assign e-mail functionality, also
   24 set/modify $admin_email, $template_subject and $template_body to your liking.
   25 
   26 -----------------------------------------------------------------------------
   27 
   28 Now surf to the htpasstool directory on your webserver.
   29 
   30 If you don't have .htpasswd/.htaccess files yet in that directory, start by
   31 adding a user, and then protect the directory.
   32 
   33 At this point, you are set up. You can use htpasstool to manage .htpasswd files
   34 across your webspace.
   35 
   36 Ward Vandewege, 2006-12-03
   37 ward@pong.be