Detailed Implementation of installing PHP In Cacti User Manual

Source: Internet
Author: User
Tags sapi

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.