Changeset 507 for branches/stable/INSTALL
- Timestamp:
- 11/15/11 18:08:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/INSTALL
r445 r507 61 61 b) Edit CustIDCK.pm as needed to validate customer IDs. 62 62 63 4) Create the database, and the inital tables using cgi-bin/ipdb.psql. 63 4) As a Postgres superuser, create a database user and the database. 64 Create the inital tables using cgi-bin/ipdb.psql. 64 65 65 66 5) Configure your webserver to call the IPDB scripts at an appropriate 66 67 web 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 shouldwork as well.68 the ipdb-#VERSION#/ tarball directory, or /usr/local/lib/ipdb-#VERSION#) 69 should work fine; a server alias under an existing virtual host should 70 work as well. 70 71 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/. 72 Set $IPDB::webpath (the web path to your IPDB install) in MyIPDB.pm. 73 Straight out of the tarball it should work at the webroot, but if you 74 want it in a subdirectory, you'll need to set this variable to get all 75 of the internal links to behave properly. 74 76 75 77 The directory containing the HTML and scripts must have at least the 76 78 following Apache directives (or other server equivalent) set: 77 79 78 Options ExecCGI IncludesNoEXEC FollowSymlinks80 Options ExecCGI IncludesNoEXEC 79 81 80 82 6) User lists can be maintained two basic ways: … … 86 88 remove the default user (or at least change its password). 87 89 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 89 95 maintained however you like. In this case the access-pwd-update.pl 90 96 script should edited to match the .htpasswd filename/path and should … … 94 100 in the database. 95 101 96 You will have to either temporarily create a user "admin", so that user97 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: 98 104 99 UPDATE users SET acl='bacdsA' WHERE username='newadminuser';105 UPDATE users SET acl='bacdsA' WHERE username='newadminuser'; 100 106 101 Replace 'newadminuser' as appropriate.107 Replace 'newadminuser' as appropriate. 102 108 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. 105 111 106 112 7) (optional) Pick a log facility by setting $IPDB::syslog_facility in
Note:
See TracChangeset
for help on using the changeset viewer.