Location: PHPKode > projects > PortWatcher > Installation.txt
PortWatcher Istallation Guide

Step 1: Create the database for the PortWatcher.
The name of the database is up to you. However, you will have to configure the PortWatcher to that name in later steps.
You should make sure that the permissions are set correctly on the database so the PortWatcher can access it freely.

Step 2: Load the PortWatcher.sql into the database.
The PorWatcher.sql will create the following tables that are needed for the correct work of the program:
macip, maciphistory, macport, macporthistory, switches.
Please, make sure all those tables exist before continuing.

Step 3: Copy the PortWatcher folder into the desired location on your server.
The folder itself can be renamed if you wish, but the contents of the folder and subfolders should stay in one place.

Step 4: Configure the config.php.
config.php contains the database connection configuration. The following configuration exists by default:
$dbserver = "localhost"; // server address
$dbuser = "root"; // username
$dbpasswd = "admin"; // password
$dbname = "switch_test"; //database name
Change those preferences to match your environment so that PortWatcher can connect to the database.

Step 5: Removing possible problems with SE Linux
PortWatcher uses socket_connect and shell_exec commands which require network rights. If you are using Scientific Linux you have
to specifically set those rights. Use the following command in order to do that:
setsebool -P httpd_can_network_connect 1


You can find the manual in Manual.txt in the PortWatcher folder.
Return current item: PortWatcher