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

Source: Internet
Author: User
Tags php error

Yesterday put Ansible-tower installed on this machine, and then the original Nginx occupied, forcing the Zabbix of the Web into Apache, the source code installed on Apache and recompile PHP, this PHP error appears.

Change the session path of the php.ini, and then change the Session Directory recursion permission to 777, then restart PHP and Apache.

Attached to the Zabbix of the Apache and PHP source specified by the 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-exifwget 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-mods-shared=most★ Show a session Zabbix on the had page Already been started-ignoring session_start () This tip, change Session.auto_start = 1 to 0 to edit the httpd.conf file add the following code LoadModule php7_ Module Modules/libphp7.soaddtype application/x-httpd-php. Phpdirectoryindexindex.php index.htm index.html 

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

Related Article

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.