Source

Portfolio / slurry /

Filename Size Date modified Message
..
css
html
js
logs
php
sql
27 B
1.8 KB
2.6 KB
173 B
##################
## SLURRY HOWTO ##
##################
## Author: Adam M. Dutko
## Version: 0.1
##
## URL: http://git.thefuturegrid.org

1) To recreate the project you should first copy the code to the target machine and place it in your sites document root as defined in the Apache configuration file for the VHOST.

  eg. VHOST for networkmap.burningriversoftware.com

  <VirtualHost *:80>
        ServerAdmin adutko -a-t- burningriversoftware [dot-com] 
        ServerName networkmap.burningriversoftware.com
        ServerAlias networkmap 
        DirectoryIndex index.php
        
        DocumentRoot /var/www/html/networkmap/

        ErrorLog /var/log/httpd/networkmap-error.log
        LogLevel warn
        CustomLog /var/log/httpd/networkmap-access.log combined

  </VirtualHost>

2) Once that is done adjust the database settings in php/config.php to match those of the user you created in MySQL.  (Make sure you give the user select,insert,update,delete) privileges to the tables in the database.)

3) Run the php/scan.php utility with a scan log like:

   eg. php php/scan.php ScanLog

4) Setup a cron job to run the job on a regular basis so you expire nodes and get updates:

   eg. 0 1 * * * php /var/www/html/networkmap/php/scan.php /var/www/html/networkmap/ScanResults

5) Have a nice relaxing beverage of your choice!


KNOWN PROBLEMS:

1) Currently we throw errors when processing addresses with multiple names.  I need to fix that and accomodate an insert into a new table for "children" of the address. 

2) Add a security option to the VirtualHost so only internal users (users from a specific address range) can access the machine along with a password (because source address can be spoofed).

3) Investigate:

   PHP Notice:  Trying to get property of non-object in /var/www/html/networkmap/php/scan.php on line 177