From 0b406b048b1d6faf459fa978aa2ea1a9f8cb37a4 Mon Sep 17 00:00:00 2001 From: Larry Adams Date: Fri, 27 Aug 2004 00:52:41 +0000 Subject: [PATCH] some basic Windows Cacti Installation Instructions (for now) git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@2010 860744bd-22fc-0310-8c96-e9fe5004b5ca --- docs/build/manual.sgml | 91 ++++++++++++++++++++++++++++++------------ 1 file changed, 65 insertions(+), 26 deletions(-) diff --git a/docs/build/manual.sgml b/docs/build/manual.sgml index 5962d94c07..968755727e 100644 --- a/docs/build/manual.sgml +++ b/docs/build/manual.sgml @@ -44,17 +44,17 @@ - RRDTool + RRDTool 1.0.48 or greater - MySQL 3.23 or greater + MySQL 3.23 or greater, 4.0.20d or greater highly recommended for advanced features - PHP 4.1 or greater + PHP 4.1 or greater, 4.3.6 or greater highly recommended for advanced features @@ -208,39 +208,63 @@ $database_password = "cacti"; Install PHP - Extract PHP to c:\ and rename the new directory to 'php'. + Extract PHP to c:\ and rename the install (ie. php5.0.1) directory to 'php'. - Copy the files in c:\php\dlls to c:\winnt\system32. + If using PHP 4, move the files in c:\php\dlls to c:\php. - Copy the file c:\php\php4ts.dll to c:\winnt\system32. + Add the following to your Windows PATH c:\php. The Windows path can be accessed via + Control Panel at: 'System', 'Advanced', 'Environment'. - Move all MIB files from c:\php\mibs to c:\usr\mibs. + Add the following two environment variables to your system using the procedure above: 'MIBS=ALL' and 'MIBSDIR=c:\php\mibs'. - Create the directory c:\tmp. + If using PHP 4.3.5 or less (not recommended), create the following directory c:\tmp. - In the c:\php directory, copy the php.ini-dist file to - c:\winnt, rename the file to php.ini, and make the + Rename the file c:\php\php.ini.dist to php.ini, and make the following changes to the file: - extension_dir = c:\php\extensions -extension=php_snmp.dll -session.save_path=c:\tmp + + If using PHP 4 add the following line. + + + extension_dir = c:\php\extensions + + + If using PHP 5 add the following line. + + + extension_dir = c:\php\ext + + + extension=php_snmp.dll + extension=php_sockets.dll + + + 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. + + + session.save_path=c:\tmp + + + + If you are planning on using CACTID, then create the following directory c:\cactid. Download CACTID + and place all the files that came with the distribution into that directory. Follow the directions that came with CACTID + to modify the file cactid.conf in that directory. Configure the Webserver (Apache) @@ -271,9 +295,23 @@ $database_password = "cacti"; If you are using Apache 2.x, add the following lines to your httpd.conf file in the c:\apache2\conf directory: - LoadModule php4_module c:\php\sapi\php4apache2.dll -AddType application/x-httpd-php .php -DirectoryIndex index.html index.htm index.php + + If using PHP 4, then add the following line. + + + LoadModule php4_module c:\php\sapi\php4apache2.dll + + + + If using PHP 5, then add the following line. + + + LoadModule php5_module c:\php\php5apache2.dll + + + + AddType application/x-httpd-php .php + DirectoryIndex index.html index.htm index.php @@ -287,14 +325,14 @@ $database_password = "cacti"; Under the Home Directory tab, select Configuration - and click Add. Browse to the path of php4isapi.dll, - and type in .php as the extension. + and click Add. Browse to the path of php4isapi.dll or + php5isapi.dll, and type in .php as the extension. Under the ISAPI Filters tab, click Add and browse - to the php4isapi.dll file. Name the filter "php" and click OK. + to the php4isapi.dll or php5isapi.dll file. Name the filter "php" and click OK. @@ -408,7 +446,8 @@ $database_password = "cacti"; Click Next and Browse on the following screen. Find c:\php and select - php.exe. Choose Daily on and click Next. + php.exe. If using PHP 5, use php-win.exe instead. Choose Daily + on and click Next. @@ -421,12 +460,12 @@ $database_password = "cacti"; When entering a username and password make sure the user has read and write access to the following directories: c:\apache2\htdocs\cacti\rra -c:\apache2\htdocs\cacti\log + c:\apache2\htdocs\cacti\log Make sure the user has read, write, and execute access to the following directories: - c:\php -c:\php\sapi + c:\php + c:\php\sapi @@ -462,9 +501,9 @@ c:\php\sapi In the Run textbox enter the following text making sure to use the appropriate paths. - c:\php\php.exe c:\apache2\htdocs\cacti\poller.php + c:\php\php.exe c:\mycacti\website\cacti\poller.php - The start in box should say c:\apache2\htdocs\cacti. + The start in box should say c:\mycacti\website\cacti. @@ -485,7 +524,7 @@ c:\php\sapi PHP Binary Path: - c:\php\php.exe + c:\php\php.exeIf using PHP 5, you should change this to c:\php\php-win.exe RRDTool Binary Path: