Installing MagicStats 2.0

blah blah...

1. Gather and install appropriate tools:
   * GNU C++
   * GNU Make
   * GNU Bison
   * SDF


2. Extract tarball, enter directory:

sabre@nondot ~> tar zxf MagicStats.tar.g
sabre@nondot ~> cd MagicStats
sabre@nondot ~/MagicStats>


3. Make installation view (Builds MagicStats/Install Directory):

sabre@nondot ~/MagicStats> make
...
*** MagicStats build complete! ***
sabre@nondot ~/MagicStats> 


4. Install MagicStats:

sabre@nondot ~/MagicStats> su
Password: ...
root# make install
...
*** MagicStats build complete! ***
root# exit
sabre@nondot ~/MagicStats> 


5. Test Installation (Optional):
   Here we can test to make sure that the executable was compiled correctly and
   runs as expected.  Since we don't have a configuration file set up, we 
   expect MagicStats to not run, but it should at least print version info:

sabre@nondot ~/MagicStats> rehash    # If running csh
sabre@nondot ~/MagicStats> MagicStats2 -v
MagicStats v2.0pr5...   By: Chris Lattner - sabre@nondot.org
Error opening configuration file '/home/sabre/.MagicStats/MagicStats.cfg' for reading!

sabre@nondot ~/MagicStats> 


6. Set up user installation:

sabre@nondot ~/MagicStats> cd ~
sabre@nondot ~> mkdir .MagicStats
sabre@nondot ~> cd public_html
sabre@nondot ~/public_html> mkdir stats
sabre@nondot ~/public_html> 


7. Set up web server (Example assume installing as root):

sabre@nondot ~/public_html> su
Password: ...
root# cd /usr/local/httpd/htdocs
root# ln -s /var/lib/MagicStats/ MagicStats
root# exit
sabre@nondot ~/public_html> 


8. Customize your MagicStats.cfg file (should be automated by a perl script!):

sabre@nondot ~/public_html> cd ~/.MagicStats
sabre@nondot ~/.MagicStats> vi MagicStats.cfg
sabre@nondot ~/.MagicStats> 


9. Try running MagicStats2:

sabre@nondot ~/.MagicStats> MagicStats2 -v -N 100
MagicStats v2.0pr5...   By: Chris Lattner - sabre@nondot.org
Loaded plugin: PPErrors
Loaded plugin: FSGZipped
Loaded plugin: PPPathBreakout
Loaded plugin: TestPlugin
Loaded plugin: AFDomainify
  Creating daily html pages for: 1/16/2000....
  Creating daily html pages for: 1/17/2000....
  Creating daily html pages for: 1/18/2000....
  Creating all html pages for: 1/18/2000......
Processed 100 accesses in 0.0 seconds: 435.0 Accesses/Second

  Parsed 100 accesses from /home/sabre/Logs/skylab.accesslog.20000.gz
  /home/sabre/Logs/otn.accesslog.partial has been completed.
sabre@nondot ~/.MagicStats> 


10. Let it fly...

sabre@nondot ~/.MagicStats> MagicStats2
sabre@nondot ~/.MagicStats> 


11. Add it to your crontab:
    Add a line like the following to your crontab:

1,31 * * * *   /usr/local/bin/MagicStats2

