Installation environment and requirements: 1. system: RedHatAS4 (update2) 2. software Package requirements: cacti-0.8.6j, mysql-5.0.20, php-5.2.0, apache2.0.58 (the above are source package ). installation and configuration process: 1. install apache2.0.58. decompress the package and enter the installation directory. The compilation process is as follows :#. /configure -- prefix =/usr/local/apache2-
Installation environment and requirements:
1. System: RedHat AS4 (update2)
2. Software Package requirements: cacti-0.8.6j, mysql-5.0.20, php-5.2.0, apache2.0.58 (the above are source package ).
Installation and configuration process:
1. Install apache2.0.58
Decompress the package and enter the installation directory. The compilation process is as follows:
#./Configure -- prefix =/usr/local/apache2 -- enable-modules = so
# Make; make install
The compilation option is relatively simple. -- prefix = you need to install apache. -- enable-modules = so indicates that apache can be dynamically loaded.
Required. so Module
After the installation is complete, edit the apache configuration file so that it can be used properly:
# Vi/usr/local/apache2/conf/httpd. conf
Find the following line:
# ServerName www.linuxidc.com: 80
Changed:
ServerName yourIP: 80
Start apache:
#/Usr/local/apache2/bin/apachectl start
Enter your IP address or localhost in the browser to test whether the apache test page is displayed. If the test page is successful, the installation is successful.
2. Install mysql-5.0.20
Decompress the package and enter the installation directory. The compilation process is as follows:
#./Configure -- prefix =/usr/local/mysql
# Make; make install
# Cp support-files/my-medium.cnf/etc/my. cnf (this step is to copy the configuration file to/etc)
You can specify the installation path in the compilation options.
Mysql configuration process:
# Groupadd mysql
# Useradd-g mysql
# Cd/usr/local/mysql
#./Bin/mysql_install_db -- user = mysql
# Chown-R root.
# Chown-R mysql var
# Chogrp-R mysql.
Start mysql
#./Bin/mysqld_safe -- user = mysql &
If the following information is displayed, the startup is successful.
# Starting mysqld daemon with databases from/usr/local/mysql/var