Ad Widget

Collapse

Upgrade Apache and PHP 5.6.3 on Zabbix 3.4.7 to PHP 7.2.16 failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevenfoo
    Member
    • Mar 2008
    • 46

    #1

    Upgrade Apache and PHP 5.6.3 on Zabbix 3.4.7 to PHP 7.2.16 failed

    We clone our existing instance running Zabbix 3.4.7 / PHP 5.6.3 / MySQL / Apache and perform a test upgrade.
    Our OS is running on CentOS 7.6.1810.

    First, we upgrade Apache == no issue we are able to upgrade and start it successfully.

    Second, we upgrade PHP 7.2.16 == the configure and make is fine, however the make test end up with problem found.
    We ignore that and continue with make install. Then we tried to start httpd, and we end up error as below.

    Any help is greatly appreciated.

    Below are make configure, summary of make test and make install information.

    ./configure --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-bcmath --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib --with-apxs2=/usr/local/apache/bin/apxs --enable-mbstring --enable-sockets --enable-ctype --enable-bcmath --enable-ctype --with-snmp --with-gettext --prefix=/usr/local/php


    You may have found a problem in PHP.
    This report can be automatically sent to the PHP QA team at
    http://qa.php.net/reports and http://news.php.net/php.qa.reports
    This gives us a better understanding of PHP's behavior.
    If you don't want to send the report immediately you can choose
    option "s" to save it. You can then email it to [email protected] later.
    Do you want to send this report now? [Yns]:
    Please enter your email address.
    (Your address will be mangled so that it will not go out on any
    mailinglist in plain text):

    Posting to http://qa.php.net/buildtest-process.php


    make install
    Installing PHP SAPI module: apache2handler
    /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' libphp7.la /usr/local/apache/modules
    /usr/lib64/apr-1/build/libtool --mode=install install libphp7.la /usr/local/apache/modules/
    libtool: install: install .libs/libphp7.so /usr/local/apache/modules/libphp7.so
    libtool: install: install .libs/libphp7.lai /usr/local/apache/modules/libphp7.la
    libtool: install: warning: remember to run `libtool --finish /software/php-7.2.16/libs'
    chmod 755 /usr/local/apache/modules/libphp7.so
    [activating module `php7' in /usr/local/apache/conf/httpd.conf]
    Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20170718/
    Installing PHP CLI binary: /usr/local/php/bin/
    Installing PHP CLI man page: /usr/local/php/php/man/man1/
    Installing phpdbg binary: /usr/local/php/bin/
    Installing phpdbg man page: /usr/local/php/php/man/man1/
    Installing PHP CGI binary: /usr/local/php/bin/
    Installing PHP CGI man page: /usr/local/php/php/man/man1/
    Installing build environment: /usr/local/php/lib/php/build/
    Installing header files: /usr/local/php/include/php/
    Installing helper programs: /usr/local/php/bin/
    program: phpize
    program: php-config
    Installing man pages: /usr/local/php/php/man/man1/
    page: phpize.1
    page: php-config.1
    Installing PEAR environment: /usr/local/php/lib/php/
    [PEAR] Archive_Tar - upgraded: 1.4.4
    [PEAR] Console_Getopt - already installed: 1.4.1
    [PEAR] Structures_Graph- already installed: 1.1.1
    pear/pear dependency package "pear/XML_Util" downloaded version 1.4.3 is not the recommended version 1.4.2, but may be compatible, use --force to install
    pear/XML_Util cannot be installed, conflicts with installed packages
    [PEAR] XML_Util - upgraded: 1.4.3
    [PEAR] PEAR - upgraded: 1.10.7
    Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
    You may want to add: /usr/local/php/lib/php to your php.ini include_path
    /software/php-7.2.16/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
    ln -s -f phar.phar /usr/local/php/bin/phar
    Installing PDO headers: /usr/local/php/include/php/ext/pdo/
    You have new mail in /var/spool/mail/root


    service httpd start
    /etc/init.d/httpd: line 89: 7298 Segmentation fault (core dumped) $HTTPD -k $ARGV
    Last edited by stevenfoo; 21-03-2019, 03:52.
  • stevenfoo
    Member
    • Mar 2008
    • 46

    #2
    Found the solution. There is a need to stop httpd service and comment out #LoadModule php5_module modules/libphp5.so in the httpd.conf file.
    Then start back httpd service.

    So far it is working after testing our with phpinfo(). It is showing 7.3.3 now.

    Comment

    Working...