Windows 2000/XP Install Procedure 
=================================


Note: This will not work for Windows 95/98/Me, it's only for Windows 2000/XP and maybe NT 4.0

Installation:
-------------

Install Apache Win32: 
	Download from: http://www.apache.org/dist/httpd/binaries/win32/
	Get the latest 1.3.x release, - D O N T - use the 2.0 branch on windows. 
	Complete Install, Click on Next until Finish.

Install MySQL: 
	Download from: http://www.mysql.com/downloads/mysql-3.23.html
	Extract the Archive, run setup.exe, Click on Next until Finish.

	Run c:\mysql\bin\winmysqladmin.exe 
		Put an Administrator Username and Password.

Install PHP:
	Download from: http://www.php.net/downloads.php
	Get the ZIP File with all the modules (First One).
	Extract the  Archive.
	Copy the content to c:\php 
	
	-------------------------------------------
	Copy c:\php\php4ts.dll to c:\winnt\system32
	-------------------------------------------

	Copy c:\php\php.ini-dist to c:\winnt\php.ini (or use the one in jffnms/docs)
	Create Folder c:\usr
	Copy c:\php\mibs to c:\usr\mibs

	Create Folder c:\tmp

Install JFFNMS:
	Download (I'm sure you already have done this) and extract it to c:\jffnms 

	Create the User jffnms (in Windows User Manager) with any password you choose. 
	(If your machine is part of a domain, you must click on the Advanced tab and then Advanced button to do this)
	
	Remember to CHECK 'Password Never Expires' and UNCHECK 'Must Change password at next logon' for this user.
	
	Give the 'jffnms' user FULL CONTROL over the c:\jffnms folder (and its sub-folders)

Install RRDTOOL:
	Download from: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/?M=D
	Get the rrdtool-1.0.x.x86distr.zip file.
	Extract the archive to a temporary location.
	Copy the src\tool_release\rrdtool.exe file to c:\jffnms 

Install NMAPWin:
	Download it from: http://www.insecure.org/nmap/nmap_download.html
	Get the file: nmapwin_1.3.1.exe (or newer)
	Complete its install.
	The Installer will tell you to install WinPCAP (its included with NMAPWin)
	Close this message and accept the default of not starting this service.
	Goto C:\Program Files\NMapWin\winpcap and install the 2.3 version.
	
	Copy the c:\Program Files\NMapWin\bin\nmap.exe to c:\jffnms
	
Configuration:
--------------

Configure Apache:

	Add this lines to your c:\program files\apache group\Apache\conf\httpd.conf

	This is the PHP Configuration : (your can check on www.php.net for help on this)
	
	You want to put each of these lines where the belong in the conf file:
	(DO NOT PUT THEM ALL TOGETHER LIKE THIS OR IT WON'T WORK)

	LoadModule php4_module c:/php/sapi/php4apache.dll
	AddModule mod_php4.c
	AddType application/x-httpd-php .php

	And Now the JFFNMS Configuration:
	
	- If JFFNMS is the only application running in this webserver:
	
	    NameVirtualHost *

	    <VirtualHost *>
    		ServerAdmin webmaster@your-domain.com
    		DocumentRoot c:\jffnms\htdocs
    		ServerName nms.yourdomain.com
		DirectoryIndex index.php
	    </VirtualHost>

	* Make sure you modify the above information to match your needed settings

	- If you have other Applications you can use a Virtual Directory: 
	(anywhere in the general config or at the bottom)

	    Alias /jffnms/ c:/jffnms/htdocs/

	Also find the DirectoryIndex Directive and change it to:
	
	    DirectoryIndex index.html index.php
	    
Configure PHP:	
	Make sure you have this on your php.ini file:

	register_globals = On
	allow_url_fopen = On
	
	extension_dir = c:\php\extensions
	extension=php_gd.dll 		(could also be named php_gd2.dll)
	extension=php_snmp.dll
	extension=php_sockets.dll
	
	SMTP = your.mail.server.com	(set it to your mail server IP or DNS name)

	Now Restart the Apache Service.

	if you don't change these, JFFNMS will not work.

Configure MySQL:

	To create the JFFNMS DB run the following:

	c:\> c:\mysql\bin\mysql.exe -u root
	mysql>CREATE DATABASE jffnms;
	mysql>GRANT ALL PRIVILEGES ON jffnms.* TO jffnms@localhost IDENTIFIED BY 'jffnms';  
	mysql>FLUSH PRIVILEGES;  
	mysql>quit;
	
	And

	c:\> c:\mysql\bin\mysql.exe -u root jffnms < c:\jffnms\docs\jffnms-0.7.x.mysql 	
    
	Replace x with the version you are installing.

Configure JFFNMS:
	
	-----------------
	I M P O R T A N T
	-----------------
	
	Go to: 
	    http://yourserver/admin/setup.php or http://yourserver/jffnms/admin/setup.php (if you used an alias)

	Verify and change (if needed) the options. 
	
	Make sure you change the db username/pass to jffnms/jffnms.
	
	Don't mind the errors on diff, neato, smsclient, PgSQL and SOAP.
	
	Save the configuration and change the values until everything needed is Green.
	
	Everything else SHOULD be OK. 

	Scheduled Tasks:
	----------------
		If you did not install jffnms in c:\jffnms you will have to change the 
		contents of the .bat files (path).

		Start/Settings/Control Panel/Scheduled Tasks/Add Scheduled Task.
			1) Next
			2) Click Browse
			3) Browse to c:\jffnms\engine\windows and select the first .bat file. 
			4) Select Daily, then Next.
			5) Change the Start time to 12:00 AM
			6) Select Every 1 Days then Next.
			7) Enter Username: jffnms and Password: (the one you choosed before), then Next.
			8) Click the 'Open Avanced...' checkbox, then click Finish
			9) Click the Schedule tab
			10) For autodiscovery_interfaces, consolidate, poller & rrd_analizer:
				Click on the Advanced Button.
				Check Repeat Task.  In the Every Field enter the respective times: 
					autodiscovery_interfaces every 30 minutes.				
					consolidate Every 1 Minute.
					poller Every 4 minutes.
					rrd_analizer every 30 minutes.
				Duration: 24 Hours.

			11) Click on OK.
			12) Click on OK.
			
		** REPEAT THESE STEPS FOR EACH .BATCH FILE IN THE C:\JFFNMS\ENGINE\WINDOWS PATH!


Now... try to access http://yourserver/ or http://yourserver/jffnms/ (if you took this way)
Remember to add the last slash / to the URL.
The Default Username and password is "admin".

If you want to read more, please read the INSTALL file and skip the Unix Parts.


=========================================================================

If you need anything, contact us at: jffnms-users@lists.sourceforge.net

Thank You for trying 'Just For Fun' Network Management System

Don't forget to Donate to the project if you find it useful for your work.

=========================================================================
Javier Szyszlican aka SzYsZ
Buenos Aires, Argentina
javier@jffnms.org (please try the mailing list first) 
ICQ #397319
