Zabbix fault: Apache source code and PHP red prompt on the page

Source: Internet
Author: User

Zabbix fault: Apache source code and PHP red prompt on the page

Yesterday, I installed ansible-tower on this machine, and then occupied the original nginx, forcing zabbix web to be replaced with apache. After installing apache in the source code and re-compiling php, the php error prompt is displayed.

Modify the session path of php. ini, change the recursive permission of the session Directory to 777, and restart php and apache.

Attached to the zabbix apache and php source code specified Module

. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2.4/bin/apxs -- with-config-file-path =/usr/local/php/ etc -- with-pdo-mysql =/usr/local/mysql -- with-mysqli =/usr/local/mysql/bin/mysql_config -- with-libxml-dir -- with-gd -- with-jpeg-dir -- with-png-dir -- with-freetype-dir -- with-iconv-dir -- with-zlib-dir -- with-bz2 -- with-openssl -- with-mcrypt -- enable-soap -- enable-gd-native-ttf -- enable-mbstring -- enable-sockets -- enable-exif

Wget https://mirrors.cnnic.cn/apache/httpd/httpd-2.4.29.tar.gz
Wget https://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
Wget https://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.gz
. /Configure -- prefix =/usr/local/apache2.4 -- with-apr =/usr/local/apr -- with-apr-util =/usr/local/apr-util -- enable- so -- enable-mod-shared = most

★On the zabbix page, A session had already been started-ignoring session_start () is displayed. Set session. auto_start = 1 to 0.

Edit the httpd. conf file

Add the following code:

LoadModule php7_module modules/libphp7.so
AddType application/x-httpd-php. php
DirectoryIndex index. php index.htm index.html

More Zabbix Tutorials:

Install Zabbix 16.04 on Ubuntu 3.2 Server

Set up Zabbix3.0 in CentOS 7 LNMP Environment

Install and deploy the monitoring system Zabbix2.4 on Ubuntu 16.04

Zabbix monitoring installation and deployment and alarm Configuration

Detailed description of the Zabbix trigger expression

Install and deploy Zabbix3.0 in Ubuntu 16.04

Under CentOS 6.3, Zabbix monitors apache server-status

How to install Zabbix 3.0 in CentOS 7

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

Zabbix 3.2.6 monitor Oracle database through Orabbix

ZABBIX details: click here
ZABBIX: click here

This article permanently updates link: https://www.bkjia.com/Linux/2018-03/151240.htm

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.