some updates to the Windows install guide.

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3410 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Larry Adams committed 2005-12-04 04:08:05 +00:00
1 parent 8787d2f4b3
commit 57bfdb5a94
1 file changed
+369 -142
+369 -142
View File
@@ -11,6 +11,10 @@
<firstname>Tony</firstname>
<surname>Roman</surname>
</author>
<author>
<firstname>Larry</firstname>
<surname>Adams</surname>
</author>
</authorgroup>
<pubdate>2005</pubdate>
<copyright>
@@ -209,31 +213,85 @@ $database_password = "cacti";</userinput></screen>
<chapter id="install_windows">
<title>Installing Under Windows</title>
<orderedlist>
<title>Install PHP</title>
<title>Software Compoents Required</title>
<listitem>
<para>
Extract the PHP zip file to <filename>c:\</filename> and rename the install directory (ie. 'php5.0.1') to 'php'.
(Optional) <b>Apache</b> - This software is optional if running Windows Internet Information Server.
</para>
</listitem>
<listitem>
<para>
If using PHP 4, move the files in <filename>c:\php\dlls</filename> to <filename>c:\php</filename>.
<b>Cacti</b> - Install from the zip distribution and intstall in the web root or your choice.
Many choose to install into a "Cacti" sub folder.
</para>
</listitem>
<listitem>
<para>
Add the following to your Windows PATH environement variable <filename>c:\php</filename>. The Windows path can be accessed via
the Control Panel at: 'System', 'Advanced', 'Environment'.
<b>Cactid</b> - Install from the zip distribution into the <filename>c:\cacti</filename>
directory. Make sure your <filename>cactid.conf.dist</filename> is located in that directory as well.
</para>
</listitem>
<listitem>
<para>
Add the following two environment variables to your system using the procedure above: <userinput>MIBDIRS=c:\php\mibs</userinput>, and <userinput>PHPRC=c:\php</userinput>.
<b>RRDTool</b> - Install from the Cacti website. Install it into the <filename>c:\cacti</filename> directory.
</para>
</listitem>
<listitem>
<para>
If using PHP 4.3.5 or less (not recommended), create the following directory <filename>c:\tmp</filename>.
<b>PHP 4.3.6+ or 5.x</b> - Install into the <filename>c:\php</filename> folder. If you choose
to install into <filename>c:\Program Files\php</filename>, you will have to use 8.3 filenames
to reference it's binaries in Cacti.
</para>
</listitem>
<listitem>
<para>
<b>MySQL 4.x or MySQL 5.x</b> - Install into the default location. This is typically
<filename>c:\Program Files\MySQL\MySQL Server X.XX</filename>.
</para>
</listitem>
<listitem>
<para>
(Optional) <b>Cygwin</b> - Download and execute <filename>setup.exe</filename> from the Cygwin
website. Keep the <filename>setup.exe</filename> file for later use.
</para>
</listitem>
<listitem>
<para>
(Optional) <b>Net-SNMP</b> - Install to the <filename>c:\net-snmp</filename> directory. If you
choose to use <filename>c:\Program Files\net-snmp</filename> you will have tu use 8.3 filenames
to reference it's binaries in Cacti.
</para>
</listitem>
</orderedlist>
<orderedlist>
<title>Configure PHP</title>
<listitem>
<para>
If using PHP 4, move the files in <filename>c:\php\dlls</filename> to <filename>c:\php</filename>
</para>
</listitem>
<listitem>
<para>
Add the following directory to the existing Windows System <userinput>PATH</userinput> environment variable:
<filename>c:\php</filename>. The Windows path can be accessed via the Control Panel at: System |
Advanced | Environment Variables | System Variables.
</para>
</listitem>
<listitem>
<para>
Add the following directory to a new Windows System environment variable called <userinput>PHPRC</userinput>:
<filename>c:\php</filename>.
</para>
</listitem>
<listitem>
<para>
Add a new Windows System environment variable called <userinput>MIBDIRS</userinput>. If using
PHP 4, set it to <filename>c:\php\mibs</filename>. If using PHP 5, set it to <filename>c:\php\extras\mibs</filename>
</para>
</listitem>
<listitem>
<para>
If using PHP 4.3.5 or less, create the following directory <filename>c:\tmp</filename>.
</para>
</listitem>
<listitem>
@@ -242,18 +300,24 @@ $database_password = "cacti";</userinput></screen>
following changes to it:
</para>
<para>
If using PHP 4 add the following lines.
If using PHP 4 add/uncomment the following lines.
</para>
<screen><userinput>extension_dir = c:\php\extensions</userinput>
<userinput>extension=php_snmp.dll</userinput>
<userinput>extension=php_sockets.dll</userinput></screen>
<screen>
<userinput>extension_dir = c:\php\extensions</userinput>
<userinput>extension=php_snmp.dll</userinput>
<userinput>extension=php_sockets.dll</userinput>
<userinput>cgi.force_redirect = 0</userinput>
</screen>
<para>
If using PHP 5 add the following lines.
If using PHP 5 uncomment the following lines.
</para>
<screen><userinput>extension_dir = c:\php\ext</userinput>
<userinput>extension=php_mysql.dll</userinput>
<userinput>extension=php_snmp.dll</userinput>
<userinput>extension=php_sockets.dll</userinput></screen>
<screen>
<userinput>extension_dir = c:\php\ext</userinput>
<userinput>extension=php_mysql.dll</userinput>
<userinput>extension=php_snmp.dll</userinput>
<userinput>extension=php_sockets.dll</userinput>
<userinput>cgi.force_redirect = 0</userinput>
</screen>
<para>
If using PHP 4.3.5 or less include the following line. If using 4.3.6 or greater, you should remove this line if present.
</para>
@@ -261,9 +325,21 @@ $database_password = "cacti";</userinput></screen>
</listitem>
<listitem>
<para>
If you have had previous versions of PHP installed, you had likely moved the PHP system files to
in the Windows directory structure. If so, you will have to remove those files. Please review your PHP
installation documentation for instructions on removing those files.
In earlier installation guides to PHP, they recommended moving certain DLL's to the <filename>
c:\winnt\system32</filename> directory. If so, you will have to remove those files. Please
review the PHP installation documentation for instructions on removing those files.
</para>
</listitem>
<listitem>
<para>
If you want to allow template importing, uncomment the following line:
<screen><userinput>file_uploads = On</userinput></screen>
</para>
</listitem>
<listitem>
<para>
Give the user who will be running the scheduled task, <b>modify</b> rights to the <filename>.index</filename>
file in the location pointed to by the <userinput>MIBDIRS</userinput> Windows System environment variable.
</para>
</listitem>
</orderedlist>
@@ -271,59 +347,57 @@ $database_password = "cacti";</userinput></screen>
<title>Configure the Webserver (Apache)</title>
<listitem>
<para>
Make sure you have stopped any IIS web servers before you proceed with Apache installation.
</para>
</listitem>
<listitem>
<para>
Install the Apache web server. This is as simple as double clicking the .msi file and
following the prompts. Make sure to install it as a service and for the sake of the
HOWTO, install it to <filename>c:\apache</filename> or <filename>c:\apache2</filename>.
Make sure you have stopped any IIS web servers before you proceed with Apache installation, or make
sure Apache is configured on an alternate port.
</para>
</listitem>
<listitem>
<para>
If you are using <emphasis>Apache 1.3.x</emphasis>, installation of PHP 5 is not recommended.
If using PHP 4, add the following lines to your <filename>httpd.conf</filename> file in the
<filename>c:\apache\conf</filename> directory:
</para>
<screen><userinput>LoadModule php4_module c:\php\sapi\php4apache.dll</userinput>
<userinput>AddModule mod_php4.c</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput></screen>
</listitem>
<listitem>
<para>
If you are using <emphasis>Apache 2.x</emphasis>, add the following lines to your <filename>httpd.conf</filename>
file in the <filename>c:\apache2\conf</filename> directory:
If using PHP 4, add the following lines to your <filename>httpd.conf</filename> file. You can edit
that file by selecting Start | All Programs | Apache HTTP Server X.XX | Configure Server | Edit the
httpd.conf file pick from the Taskbar.
</para>
<para>
If using PHP 4, then add the following lines.
If using Apache 1.3.x and PHP 4, then add the following lines:
</para>
<screen><userinput>LoadModule php4_module c:\php\sapi\php4apache2.dll</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput></screen>
<screen>
<userinput>LoadModule php4_module c:\php\sapi\php4apache.dll</userinput>
<userinput>AddModule mod_php4.c</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput>
</screen>
<para>
If using PHP 5, then add the following lines.
If using Apache 2.x and PHP 4, then add the following lines:
</para>
<screen><userinput>LoadModule php5_module c:\php\php5apache2.dll</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput></screen>
<screen>
<userinput>LoadModule php4_module c:\php\sapi\php4apache2.dll</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput>
</screen>
<para>
If using Apache 2.x and PHP 5, then add the following lines.
</para>
<screen>
<userinput>LoadModule php5_module c:\php\php5apache2.dll</userinput>
<userinput>AddType application/x-httpd-php .php</userinput>
<userinput>DirectoryIndex index.html index.htm index.php</userinput>
</screen>
</listitem>
</orderedlist>
<orderedlist>
<title>Configure the Webserver (IIS)</title>
<listitem>
<para>
Start the Microsoft Management Console, right click on <guilabel>Default Web Site</guilabel> (in most cases)
and select <guilabel>Properties</guilabel>.
Start the Internet Information Services (IIS) Manager, right click on the <guilabel>Default Web Site</guilabel> (in most cases) and select <giulabel>Properties</guilabel>.
</para>
</listitem>
<listitem>
<para>
Under the <guilabel>Home Directory</guilabel> tab, select <guilabel>Configuration</guilabel>
and click <guilabel>Add</guilabel>. Browse to the path of <filename>php4isapi.dll</filename> or
<filename>php5isapi.dll</filename>, and type in .php as the extension.
<filename>php5isapi.dll</filename>, and type in .php as the extension. Note: if using IIS6,
Enable All Verbs and Script Engine.
</para>
</listitem>
<listitem>
@@ -340,14 +414,73 @@ $database_password = "cacti";</userinput></screen>
</listitem>
<listitem>
<para>
Completely stop and start the IIS service using the following commands:
If using IIS6, goto <guilable>Web Service Extensions</guilabel> and add a new Web Service Extension.
Name the extension "php", and click <guilabel>Add</guilabel> and browse to the <filename>php4isapi.dll</filename>
or <filename>php5isapi.dll</filename> file, enable <guilabel>Set Extension</guilabel> status to Enable, and click OK.
</para>
<screen><userinput>net stop iisadmin</userinput>
<userinput>net start w3svc</userinput></screen>
</listitem>
<listitem>
<para>
Give the <emphasis>IUSR_XXXX</emphasis> user read and execute permissions to the file <filename>c:\winnt\system32\cmd.exe</filename>.
Give the IUSR_XXXX and IIS_WPG users <b>read & execute</b> permissions to the file <filename>%windir%\system32\cmd.exe</filename>.
They will also need read permissions on <filename>cacti_web_root/cacti</filename> and it's subfolders.
</para>
</listitem>
<listitem>
<para>
If using IIS6, give the IIS_WPG user <b>modify</b> permissions to the folders <filename>cacti_web_root/cacti/log</filename>
and <filename>cacti_web_root/cacti/rrd</filename>.
</para>
</listitem>
<listitem>
<para>
Completely stop and start the IIS service using the following commands:
</para>
<screen>
<userinput>net stop iisadmin</userinput>
<userinput>net start w3svc</userinput>
</screen>
</listitem>
</orderedlist>
<orderedlist>
<title>Install Cygwin (optional)</title>
<listitem>
<para>
Installing a single instance of Cygwin, and using it for all applications that require it is
recommended so you do not have different versions of the Cygwin dlls laying around on your system,
which can cause conflicts.
</para>
</listitem>
<listitem>
<para>
Run <filename>setup.exe</filename> you previously download.
</para>
</listitem>
<listitem>
<para>
Once you reach the portion of setup entitled Select Packages, install the following:
</para>
<screen>
<userinput>Base (include all items)</userinput>
<userinput>Libs</userinput>
<userinput> libart_lgpl</userinput>
<userinput> libfreetype26</userinput>
<userinput> libpng12</userinput>
<userinput> zlib</userinput>
<userinput> openssl</userinput>
<userinput>Utils</userinput>
<userinput> patch</userinput>
<userinput>Web</userinput>
<userinput> wget</userinput>
</screen>
</listitem>
<listitem>
<para>
Add <filename>c:\wingwin\bin</filename> to your Windows System PATH environment variable.
</para>
</listitem>
<listitem>
<para>
Move <filename>setup.exe</filename> to <filename>c:\cygwin</filename> for future use.
</para>
</listitem>
</orderedlist>
@@ -355,7 +488,7 @@ $database_password = "cacti";</userinput></screen>
<title>Install RRDTool</title>
<listitem>
<para>
Extract the RRDTool zip file to <filename>c:\rrdtool</filename> and copy <filename>c:\rrdtool\src\tool_release\rrdtool.exe</filename> to <filename>c:\rrdtool</filename>.
Extract the RRDTool zip file from the Cacti web site to <filename>c:\cacti\rrdtool.exe</filename>.
</para>
</listitem>
</orderedlist>
@@ -368,52 +501,78 @@ $database_password = "cacti";</userinput></screen>
</listitem>
<listitem>
<para>
Install MySQL to the <filename>c:\mysql</filename> directory.
Install MySQL to the default directory, or for the purposes of this manual to the <filename>c:\mysql</filename> directory.
</para>
</listitem>
<listitem>
<para>
Start MySQL by running <filename>c:\mysql\bin\winmysqladmin.exe</filename>.
If running an older version of MySQL, start it by running <filename>c:\mysql\bin\winmysqladmin.exe</filename>.
In more recent versions, this is not required.
</para>
</listitem>
<listitem>
<para>
Set a password for the root user
</para>
<screen><prompt>shell&gt;</prompt> <userinput>cd mysql\bin</userinput>
<prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root password somepassword</userinput>
<prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root --password reload</userinput></screen>
<screen>
<prompt>shell&gt;</prompt> <userinput>cd mysql\bin</userinput>
<prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root password somepassword</userinput>
<prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root --password reload</userinput>
</screen>
</listitem>
<listitem>
<para>
Create the MySQL database:
</para>
<screen><prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root --password create cacti</userinput></screen>
<screen>
<prompt>shell&gt;</prompt> <userinput>mysqladmin --user=root --password create cacti</userinput>
</screen>
</listitem>
<listitem>
<para>
Import the default Cacti database:
</para>
<screen><prompt>shell&gt;</prompt> <userinput>mysql --user=root --password cacti &lt; c:\apache2\htdocs\cacti\cacti.sql</userinput></screen>
<screen>
<prompt>shell&gt;</prompt> <userinput>mysql --user=root --password cacti &lt; c:\apache2\htdocs\cacti\cacti.sql</userinput>
</screen>
</listitem>
<listitem>
<para>
Optional: Create a MySQL username and password for Cacti.
Create a MySQL username and password for Cacti.
</para>
<screen><prompt>shell&gt;</prompt> <userinput>mysql --user=root --password mysql</userinput>
<prompt>mysql&gt;</prompt> <userinput>GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';</userinput>
<prompt>mysql&gt;</prompt> <userinput>flush privileges;</userinput></screen>
<screen>
<prompt>shell&gt;</prompt> <userinput>mysql --user=root --password mysql</userinput>
<prompt>mysql&gt;</prompt> <userinput>GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';</userinput>
<prompt>mysql&gt;</prompt> <userinput>flush privileges;</userinput>
</screen>
</listitem>
<listitem>
<para>
If you are running MySQl 4.1 and above, you will need to apply the old password setting in order
to authenticate with Cacti. To make this change, stop the MySQL service and add the following to
the Start Parameter field. Start it again once it has been added.
</para>
<screen>
<userinput>--old-password</password>
</screen>
<para>
You will also need to update the cactiuser account with the old password style.
</para>
<screen>
<prompt>shell&gt;</prompt> <userinput>UPDATE mysql.user SET Password = OLD_PASSWORD('cactipwd') WHERE Host = 'localhost' AND User = 'cactiuser';</userinput>
<prompt>mysql&gt;</prompt> <userinput>FLUSH PRIVILEGES;</userinput>
</screen>
</listitem>
</orderedlist>
<orderedlist>
<title>Install Net-SNMP</title>
<listitem>
<para>
If you plan to use any hosts with SNMP v2c support, you must download and install the
<application>Net-SNMP</application> libraries. <application>Net-SNMP</application> provides installers
to install their product. However, caution must be taken not to use long file names as Cacti does not
support them in this version. We suggest you install <application>Net-SNMP</application> in a directory
such as <filename>c:\net-snmp</filename>.
If you plan to use any hosts with SNMP v2c support, and are using early versions of PHP, you must
download and install the <application>Net-SNMP</application> libraries. <application>Net-SNMP</application>
provides installers to install their product. However, caution must be taken if you choose to use
long file names as Cacti does not them as long file names. You will have to user 8.3 notation. For
example <filename>c:\Program Files\Net-SNMP\bin</filename> becomes <filename>c:\progra~1\net-snmp\bin</filename>.
</para>
</listitem>
</orderedlist>
@@ -421,50 +580,135 @@ $database_password = "cacti";</userinput></screen>
<title>Install Cactid</title>
<listitem>
<para>
Extract the Cactid zip file to <filename>c:\cactid</filename> and modify the <filename>cactid.conf</filename> file to
Extract the Cactid zip file to <filename>c:\cacti</filename> and modify the <filename>cactid.conf.dist</filename> file to
include the following statements.
</para>
<screen><userinput>DB_Host IP_Address or Hostname (not localhost)</userinput>
<userinput>DB_Database cacti</userinput>
<userinput>DB_User cactiuser</userinput>
<userinput>DB_Password cacti</userinput></screen>
<screen>
<userinput>DB_Host 127.0.0.1 or hostname (not localhost)</userinput>
<userinput>DB_Database cacti</userinput>
<userinput>DB_User cactiuser</userinput>
<userinput>DB_Password cacti</userinput>
<userinput>DB_Port 3306</userinput>
</screen>
<para>
All other pre 0.8.6 settings are obsolete. Cactid may not complain if you leave them in, but they
are not longer required. Cactid now comes with a binary distribution. Therefore, a full installation
of <application>Cygwin</application> is not longer required.
All other pre 0.8.6 settings are obsolete.
</para>
</listitem>
<listitem>
<para>
If you either have <application>Cygwin</application> installed, or plan on installing it, remove the 3
DLL files and the SH.EXE file from the <filename>c:\cactid</filename> directory.
Cactid now comes with a binary distribution. However, we strongly suggest that you install
Cygwin and then remove all the DLL files and <filename>sh.exe</filename> from the
<filename>c:\cacti</filename> directory.
</para>
</listitem>
</orderedlist>
<orderedlist>
<title>Install Cacti</title>
<title>Configure Cacti</title>
<listitem>
<para>
Extract the Cacti distribution archive. These instructions will assume that the archive has been
extracted to <filename>C:\Apache\htdocs\cacti</filename>, although you can use a different
path if you wish. Make sure you extract with "Use folder names" enabled, so that the
necessary sub-folders will be used.
Edit <filename>cacti_web_root/cacti/include/config.php</filename> and specify the MySQL user,
password, database, and database port for your Cacti configuration.
</para>
<screen>
<userinput>$database_default = "cacti";</userinput>
<userinput>$database_hostname = "localhost";</userinput>
<userinput>$database_username = "cactiuser";</userinput>
<userinput>$database_password = "cacti";</userinput>
<userinput>$database_port = "3306";</userinput>
</screen>
</listitem>
<listitem>
<para>
Pint your web browser to:
</para>
<screen>
http://your-server/cacti/
</screen>
<para>
Log in using the username and password of admin/admin. You will be required to change this
password immediately.
</para>
</listitem>
<listitem>
<para>
Edit <filename>include/config.php</filename> and specify the MySQL user, password and database for your Cacti configuration.
From Cacti, go to <guilabel>Settings</guilabel>-&gt;<guilabel>Paths</guilabel> and verify/udate
your paths to point to the correct locations. Recommended examples are posted below. If you
plan on using Cactid, then it is very important that all paths include forward slashes instead
of backslashes.
</para>
<screen><userinput>$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";</userinput></screen>
<para>
<emphasis>PHP Binary Path:</emphasis>
</para>
<screen>c:/php/php.exe</screen>
<para>
<emphasis>RRDTool Binary Path:</emphasis>
</para>
<screen>c:/cacti/rrdtool.exe</screen>
<para>
<emphasis>SNMPGET, SNMPWALK, SNMPBULKWALK Paths:</emphasis>
</para>
<screen>c:/progra~1/net-snmp/bin/snmpget.exe</screen>
<screen>c:/progra~1/net-snmp/bin/snmpget.exe</screen>
<screen>c:/progra~1/net-snmp/bin/snmpbulkwalk.exe</screen>
<para>
<emphasis>Cacti Logfile Path:</emphasis>
</para>
<screen>c:/mycacti/website/cacti/log/cacti.log</screen>
<para>
<emphasis>Cactid Path:</emphasis>
</para>
<screen>c:/cacti/cactid.exe</screen>
</listitem>
<listitem>
<para>
You are going to need to schedule a task so <filename>poller.php</filename> can run every
5 minutes. Make sure the Task Scheduler service is started and follow the steps below to
begin.
Click on Devices. Delete the Localhost devices as it intended for Linux environments In the upper
right corner, click Add. Fill in the following information and then click Add.
</para>
<screen>
<userinput>Description: My Windows localhost</userinput>
<userinput>Hostname: localhost</userinput>
<userinput>Host Template: Windows 2000/XP</userinput>
</screen>
</listitem>
<listitem>
<para>
You should now be looking at the localhost device screen. Right under it's name, there should be
some SNMP information listed, if not you should double check the SNMP settings on the server and
firewall settings. In the upper right-hand corner, click on Create Graphs for this Host. On the
following screen, select a disk partition and network interface. At the bottom of the page,
click on Create.
</para>
</listitem>
<listitem>
<para>
Log into the user account you'll be using for the scheduled task and verify starting a Cacti
polling cycle works. Do this by running the following from the command prompt:
<para>
<screen>
<userinput>php c:/cacti_web_root/cacti/poller.php</userinput)
</screen>
<para>
The output should look something like the following:
</para>
<screen>
<userinput>C:\>php c:\inetpub\wwwroot\cacti\poller.php</userinput>
<userinput>OK u:0.00 s:0.06 r:1.32</userinput>
<userinput>OK u:0.00 s:0.06 r:1.32</userinput>
<userinput>OK u:0.00 s:0.16 r:2.59</userinput>
<userinput>OK u:0.00 s:0.17 r:2.62</userinput>
<userinput>10/28/2005 04:57:12 PM - SYSTEM STATS: Time:4.7272 Method:cmd.php Processes:1
Threads:N/A Hosts:1 HostsPerProcess:2 DataSources:4 RRDsProcessed:2</userinput>
</screen>
<para>
After this has ran once, you should have <filename>cacti.log</filename> in <filename>/cacti/log/</filename>
and rrd files in /cacti/rra/.
</para>
</listitem>
<listitem>
<para>
You are going to need to schedule a task while logged on as an Administrator. This task is
required to you can run <filename>poller.php</filename> every 5 minutes. Make sure the
Task Scheduler service is started and follow the steps below to begin.
</para>
<para>
<emphasis>Note:</emphasis> The following instructions are based on Windows XP and Windows Server
@@ -485,8 +729,7 @@ $database_password = "cacti";</userinput></screen>
<listitem>
<para>
Click <guilabel>Next</guilabel> and <guilabel>Browse</guilabel> on the following screen. Find <filename>c:\php</filename> and select
<filename>php.exe</filename>. If using PHP 5, use <filename>php-win.exe</filename> instead. Choose <guilabel>Daily</guilabel>
on and click <guilabel>Next</guilabel>.
<filename>php.exe</filename>. Choose <guilabel>Daily</guilabel> on and click <guilabel>Next</guilabel>.
</para>
</listitem>
<listitem>
@@ -498,13 +741,17 @@ $database_password = "cacti";</userinput></screen>
<para>
When entering a username and password make sure the user has read and write access to the following directories:
</para>
<screen>c:\apache2\htdocs\cacti\rra
c:\apache2\htdocs\cacti\log</screen>
<screen>
<userinput>cacti_web_root/cacti/rra</userinput>
<userinput>cacti_web_root/log</userinput>
</screen>
<para>
Make sure the user has read, write, and execute access to the following directories:
</para>
<screen>c:\php
c:\php\sapi</screen>
<screen>
<userinput>c:\php</userinput>
<userinput>c:\php\sapi</userinput>
</screen>
</listitem>
<listitem>
<para>
@@ -547,51 +794,31 @@ c:\php\sapi</screen>
</listitem>
</orderedlist>
</listitem>
</orderedlist>
<orderedlist>
<title>Apply Patches</title>
<listitem>
<para>
Point your web browser to:
There are two methods of applying patches to Cacti:
</para>
<blockquote>
<para>
http://your-server/cacti/
</para>
</blockquote>
<orderedlist>
<listitem>
<para>
If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
</para>
</listitem>
<listitem>
<para>
The other method requires you to visit http://www.cacti.net/downloads/patches/0.8.6h/pre-patched/
and manually download and replace the patched files.
</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>
Log in the with a username of <emphasis>admin</emphasis> and password of <emphasis>admin</emphasis>. You
will be required to change this password immediately.
You might need to reapply file/folder security on the files patched. Double check they are correct.
</para>
<para>
Once logged in, you must go to <guilabel>Settings</guilabel>-&gt;<guilabel>Paths</guilabel> and verify/update your
paths to point to the correct locations. Recommended examples are posted below.
</para>
<para>
<emphasis>PHP Binary Path:</emphasis>
</para>
<para>
If using PHP 4, you should change this to:
</para>
<screen>c:\php\php.exe</screen>
<para>
If using PHP 5, you should change this to:
</para>
<screen>c:\php\php-win.exe</screen>
<para>
<emphasis>RRDTool Binary Path:</emphasis>
</para>
<screen>c:\rrdtool\rrdtool.exe</screen>
<para>
<emphasis>SNMPGET, SNMPWALK Paths:</emphasis>
</para>
<screen>c:\net-snmp\bin\snmpget.exe
c:\net-snmp\bin\snmpget.exe</screen>
<para>
<emphasis>Cacti Logfile Path:</emphasis>
</para>
<screen>c:\mycacti\website\cacti\log\cacti.log</screen>
<para>
<emphasis>Cactid Path:</emphasis>
</para>
<screen>c:\cactid\cactid.exe</screen>
</listitem>
</orderedlist>
</chapter>
@@ -3215,7 +3442,7 @@ disk /</userinput></screen>
<qandaentry>
<question>
<para>
RRDTool Says: ERROR: unknown option '--slope-mode' or RRDTool Says: ERROR: Garbage ':39:24 To 2005/10/22 16:39:24\c' after command: COMMENT:From 2005/10/21 16:39:24 To 2005/10/22 16:39:24\c
RRDTool Says: ERROR: unknown option '--slope-mode' or RRDTool Says: ERROR: Garbage ':39:24 To 2005/10/22 16:39:24\c' after command: COMMENT:From 2005/10/21 16:39:24 To 2005/10/22 16:39:24\c
</para>
</question>
<answer>
@@ -3566,4 +3793,4 @@ disk /</userinput></screen>
</chapter>
</part>
</book>
</book>