Ignore:
Timestamp:
11/15/11 18:08:14 (13 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Make the fixed web path at least configurable in one place rather
than completely hardcoded across many files.
Update initial database tabledef SQL
Bump version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/INSTALL

    r445 r507  
    6161  b) Edit CustIDCK.pm as needed to validate customer IDs.
    6262
    63 4) Create the database, and the inital tables using cgi-bin/ipdb.psql.
     634) As a Postgres superuser, create a database user and the database.
     64Create the inital tables using cgi-bin/ipdb.psql.
    6465
    65665) Configure your webserver to call the IPDB scripts at an appropriate
    6667web path.  A webroot pointing to the HTML files (first level under
    67 the ipdb-#VERSION#/ tarball directory, or /usr/local/lib/ipdb-#VERSION#) 
    68 with a symlink or alias for ip/ -> . should work fine;  a server alias
    69 under an existing virtual host should work as well.
     68the ipdb-#VERSION#/ tarball directory, or /usr/local/lib/ipdb-#VERSION#)
     69should work fine;  a server alias under an existing virtual host should
     70work as well.
    7071
    71 Note that all URLs referenced internally currently assume they will be
    72 presented at http://host/ip/;  you cannot put the IPDB at
    73 http://host/noc/misc/ipdb/.
     72Set $IPDB::webpath (the web path to your IPDB install) in MyIPDB.pm.
     73Straight out of the tarball it should work at the webroot, but if you
     74want it in a subdirectory, you'll need to set this variable to get all
     75of the internal links to behave properly.
    7476
    7577The directory containing the HTML and scripts must have at least the
    7678following Apache directives (or other server equivalent) set:
    7779
    78   Options ExecCGI IncludesNoEXEC FollowSymlinks
     80  Options ExecCGI IncludesNoEXEC
    7981
    80826) User lists can be maintained two basic ways:
     
    8688    remove the default user (or at least change its password).
    8789
    88   b) Maintain an external .htpasswd file of your own, configured and
     90  b) Use the built-in user manager as in a) but create a short script to
     91    export the user list to a standard .htpasswd file.  This may be
     92    useful if mod_auth_pgsql isn't easily available.
     93
     94  c) Maintain an external .htpasswd file of your own, configured and
    8995    maintained however you like.  In this case the access-pwd-update.pl
    9096    script should edited to match the .htpasswd filename/path and should
     
    94100    in the database.
    95101
    96 You will have to either temporarily create a user "admin", so that user
    97 can grant other users priviledges, or run the following on the database:
     102    You will have to either temporarily create a user "admin", so that user
     103    can grant other users priviledges, or run the following on the database:
    98104
    99   UPDATE users SET acl='bacdsA' WHERE username='newadminuser';
     105      UPDATE users SET acl='bacdsA' WHERE username='newadminuser';
    100106
    101 Replace 'newadminuser' as appropriate.
     107    Replace 'newadminuser' as appropriate.
    102108
    103 If you don't do this, nobody will be able to make any changes; 
    104 access-pwd-update.pl only grants minimal read access to new users.
     109    If you don't do this, nobody will be able to make any changes; 
     110    access-pwd-update.pl only grants minimal read access to new users.
    105111
    1061127) (optional) Pick a log facility by setting $IPDB::syslog_facility in
Note: See TracChangeset for help on using the changeset viewer.