Environment: RedHat6.5 x64, Apache2.4.12, PHP5.6.6, MySQL5.6.23, Zabbix2.4.4
Install the configuration on the same server
First configure the hosts hosts table!
One, MySQL installation
The installation process is described in MySQL installation configuration, where mysql-devel and shared packages are installed and required for installation of Zabbix.
RPM-IVH mysql-devel-advanced-5.6. 1. el6.x86_64.rpm
RPM-IVH mysql-shared-advanced-5.6.23-1.el6.x86_64.rpm
Second, Apache installation
See apache+php installation configuration, there is no other place to watch for Apache installation.
Third, PHP installation
The installation process is described in the apache+php installation configuration, other needs to be explained:
1. Compile and install the code
./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql--enable-mbstring-- Enable-bcmath--enable-autoconf--enable-mysqlimake&&makeinstall
In accordance with the installation of PHP, in the installation of Zabbix detection process error, according to the actual solution can be.
2. Connect MySQL Test
1) Install Autof
cd/home/soft/auoconf-2.69. config&make &makeinstall
2) Installation M4
cd/home/soft/m4-1.4. - . config&make &makeinstall
3) Install Mysqli
cd/home/soft/php-5.6. 6/ext/mysqli//usr/local/php5/bin/phpize. /configure--with-php-config=/opt/php/bin/php-configmake &makeInstall
The above three is installed according to the error prompt when configuring the connection database.
Iv. installation of Zabbix
Reference Official Document: Https://www.zabbix.com/documentation/2.4/manual/installation/install
1. Configuration database
#mysql-uroot–proot//log in to MySQL databaseSet Password =password (); Create database Zabbix character set UTF8; Grant all privileges on Zabbix.* to [email protected]'%'Identified by'Zabbix'; Quit//The following is the import data, executed sequentially. Perform the first bar when installing the agent//Schema.sql, Images.sql, Data.sql in the Zabbix installation packageMysql-uzabbix-pzabbix Zabbix < database/mysql/Schema.sqlmysql-uzabbix-pzabbix Zabbix < database/mysql/images.sql MySQL-uzabbix-pzabbix Zabbix < Database/mysql/data.sql
2, to the Zabbix library Zabbix user Authorization
GRANT ALTER SESSION to ZABBIX; GRANT CREATE SESSION to ZABBIX; GRANT CONNECT to ZABBIX; ALTER USER ZABBIX DEFAULT ROLE all; GRANT SELECT on v_$instance to ZABBIX; GRANT SELECT on dba_users to ZABBIX; GRANT SELECT on v_$log_history to ZABBIX; GRANT SELECT on V_$parameter to ZABBIX; GRANT SELECT on SYS. Dba_audit_session to ZABBIX; GRANT SELECT on V_$lock to ZABBIX; GRANT SELECT on Dba_registry to ZABBIX; GRANT SELECT on V_$librarycache to ZABBIX; GRANT SELECT on V_$sysstat to ZABBIX; GRANT SELECT on V_$parameter to ZABBIX; GRANT SELECT on V_$latch to ZABBIX; GRANT SELECT on V_$pgastat to ZABBIX; GRANT SELECT on V_$sgastat to ZABBIX; GRANT SELECT on V_$librarycache to ZABBIX; GRANT SELECT on v_$process to ZABBIX; GRANT SELECT on Dba_data_files to ZABBIX; GRANT SELECT on Dba_temp_files to ZABBIX; GRANT SELECT on Dba_free_space to ZABBIX; GRANT SELECT on v_$system_event to ZABBIX;
3. Compile and install
./configure–prefix=/usr/local/zabbix--enable-server--enable-agent--with-mysql--with-net-snmp--with-libcurl-- with-libxml2make doinstall
4. Configure Server and Agent
vim/usr/local/zabbix/etc/zabbix_server.conf Modify the following three items: DBName=Zabbix DBUser=Zabbix Dbpassword =zabbix
// using the agentd.conf configuration file
Revise the following three items according to the actual situation
server=192.168.137.128
serveractive=192.168.137.128
Hostname=zabbix//After adding monitored hosts, be consistent with this hostname
5. Interface Installation
Copy the root directory of/frontends/php to Apache under the installation directory
CP -r/home/soft/zabbix-2.4. 4/frontends/php/./
Run index.php for the first time:
Check dependencies, report a lot of mistakes, one solution.
1, according to the error information to modify the PHP configuration, edit the php.ini file, find relevant parameters, such as PHP timezone.
2, according to the instructions to compile and install PHP related modules, such as PHP sockets,php GD. See the apach+php installation configuration (iii, configuration)
PS: The first installation, the operating system minimum installation, missing a lot of packages, PHP installation did not consider too much, in the installation of Zabbix a variety of toss ~ ~ ~
After resolving the error, MySQL connection:
Follow the instructions:
And then you're done.
Default User name password: Admin/zabbix. Again Spit Groove, the first installation to this step, dead and alive are not landing, do not know what went wrong, helpless reload
Zabbix Server Installation Configuration