In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Cacti how to use the manual to install PHP and configure WEB services, this article describes in detail the corresponding analysis and answers, hoping to help more partners who want to solve this problem to find a more simple and easy way.
For the convenience of installation in the future, a Cacti user manual has been written for later use. [content] Note: after installing apache, open a test page, install php, and always use phpinfo to detect changes. Here are the details of the manual.
Cacti user's manual to install PHP:
Expand the PHP package to "C:\" and modify the directory name (ie. 'php5.0.1') is "PHP". If you are using PHP4, you need to move the file "C:\ php\ dlls" to "C:\ php" and add "C:\ php" to your windows environment variable, which can be accessed from "system", "Advanced", "Environment" through the "Control Panel". Add two more environment variables to the system using the same method as above: MIBDIRS=c:\ php\ mibs,PHPRC=C:\ php if you are using PHP version 4.3.5 or earlier, you need to create a temporary folder C:\ tmp to rename the file c:\ php\ php.ini.dist to php.ini, and make the following modifications: if you use Yes PHP4, you need to add the following line:
Extension_dir = c:\ php\ extensions
Extension = php_snmp.dll
Extension = php_sockets.dll
If you are using PHP5, add the following line:
Extension_dir = c:\ php\ ext
Extension = php_mysql.dll
Extension = php_snmp.dll
Extension = php_sockets.dll
If you are using PHP4.3.5 or earlier, you need to add the following line. If you are using version 4.3.6 or later, delete the following line:
Session.save_path = c:\ tmp
Cacti user's manual configuring WEB service (Apache)
First, make sure that any IIS services have been stopped before apache is installed.
Install Apache. The process is very simple, double-click the .msi file and click next. Make sure it is installed as a service, and for the benefit of HOWTO documentation, * is installed in the c:\ apache or c:\ apache2 directory.
If you are using Apache1.3.x, installing PHP5 is not recommended. To use PHP4, add the following line 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.x is installed, add the following line to c:\ apache2\ conf\ httpd.conf:
If you are using PHP4, add the following:
LoadModule php4_module c:\ php\ sapi\ php4apache2.dll
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php
If you are using PHP5, add the following:
LoadModule php5_module c:\ php\ php5apache2.dll
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php
This is the answer to the question about how Cacti uses the manual to install PHP and configure WEB service. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.