Most of the company's monitoring platforms are freebsd. I wrote this manual for future installation convenience. [content] Note: After installing apache, you can open a test page and install php, and you will always use phpinfo to detect changes.
Cacti User Manual to install PHP:
Expand the PHP compressed package to "C: \", and change the directory name (ie. 'php5. 0.1 ') to "PHP ". If you are using PHP4, you need to move the "C: \ php \ dlls" file to "C: \ php" and add "C: \ php" to your windows environment variable, windows environment variables can be accessed through "Control Panel" in "system", "advanced", "environment. Use the same method to add two environment variables to the system: MIBDIRS = c: \ php \ mibs, PHPRC = C: \ php if the PHP version is 4.3.5 or earlier, you need to create a temporary folder C: \ tmp to convert the file c: \ php. ini. change the name of dist to php. ini and make the following changes: If PHP4 is used, add the following lines:
Extension_dir = c: \ php \ extensions
Extension = php_snmp.dll
Extension = php_sockets.dll
If PHP5 is used, add the following lines:
Extension_dir = c: \ php \ ext
Extension = php_mysql.dll
Extension = php_snmp.dll
Extension = php_sockets.dll
If PHP4.3.5 or earlier is used, add the following line. If version 4.3.6 or later is used, delete the following line:
Session. save_path = c: \ tmp
Cacti user manual configuration WEB Service Apache)
Make sure that you have stopped any IIS service before installing apache.
Install Apache. This process is very simple. Double-click the. msi file and click Next. Ensure that it is installed as a service. To obtain the benefits of the HOWTO documentation, it is best to install it in the c: \ apache or c: \ apache2 directory.
If Apache1.3.x is used, it is not recommended to install PHP5. If PHP4 is used, add the following lines to the c: \ apache \ conf \ httpd. conf file:
LoadModule php4_module c: \ php \ sapi \ php4apache. dll
AddModule mod_php4.c
AddType application/x-httpd-php. php
DirectoryIndex index.html index.htm index. php
If Apache 2.xis installed, add the following lines to c: \ apache2 \ conf \ httpd. conf:
If PHP4 is used, add the following lines:
LoadModule php4_module c: \ php \ sapi \ php4apache2. dll
AddType application/x-httpd-php. php
DirectoryIndex index.html index.htm index. php
If PHP5 is used, add the following lines:
LoadModule php5_module c: \ php \ php5apache2. dll
AddType application/x-httpd-php. php
DirectoryIndex index.html index.htm index. php