Welcome to Centmin Mod Community
Become a Member

PHP-FPM mailparse broken new install / php rebuild

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jcat, Jun 27, 2017.

  1. jcat

    jcat Member

    51
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    4:05 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS Linux release 7.3.1611 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.1
    • PHP Version Installed: 5.6.30
    • MariaDB MySQL Version Installed: 10.1.24
    • When was last time updated Centmin Mod code base ? : new install today
    • Persistent Config: no
    All new installs and any upgrades done to PHP results with:

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Code:
    * Installing mailparse PHP Extension
    checking whether to enable mailparse support... yes, shared
    /bin/sh /svr-setup/mailparse-3.0.1/libtool --mode=compile /usr/bin/gcc  -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/mailparse-3.0.1/mailparse.c -o mailparse.lo
    /bin/sh /svr-setup/mailparse-3.0.1/libtool --mode=compile /usr/bin/gcc  -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/mailparse-3.0.1/php_mailparse_mime.c -o php_mailparse_mime.lo
    /bin/sh /svr-setup/mailparse-3.0.1/libtool --mode=compile /usr/bin/gcc  -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/mailparse-3.0.1/php_mailparse_rfc822.c -o php_mailparse_rfc822.lo
     /usr/bin/gcc -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /svr-setup/mailparse-3.0.1/php_mailparse_rfc822.c  -fPIC -DPIC -o .libs/php_mailparse_rfc822.o
     /usr/bin/gcc -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /svr-setup/mailparse-3.0.1/mailparse.c  -fPIC -DPIC -o .libs/mailparse.o
     /usr/bin/gcc -I. -I/svr-setup/mailparse-3.0.1 -DPHP_ATOM_INC -I/svr-setup/mailparse-3.0.1/include -I/svr-setup/mailparse-3.0.1/main -I/svr-setup/mailparse-3.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /svr-setup/mailparse-3.0.1/php_mailparse_mime.c  -fPIC -DPIC -o .libs/php_mailparse_mime.o
    In file included from /svr-setup/mailparse-3.0.1/php_mailparse.h:85:0,
                     from /svr-setup/mailparse-3.0.1/php_mailparse_mime.c:21:
    /svr-setup/mailparse-3.0.1/php_mailparse_mime.h:23:43: fatal error: ext/standard/php_smart_string.h: No such file or directory
    In file included from /svr-setup/mailparse-3.0.1/php_mailparse.h:85:0,
                     from /home/vagrant/src/pecl-mail-mailparse/php_mailparse_rfc822.re:21:
    /svr-setup/mailparse-3.0.1/php_mailparse_mime.h:23:43: fatal error: ext/standard/php_smart_string.h: No such file or directory
    In file included from /svr-setup/mailparse-3.0.1/php_mailparse.h:85:0,
                     from /svr-setup/mailparse-3.0.1/mailparse.c:27:
    /svr-setup/mailparse-3.0.1/php_mailparse_mime.h:23:43: fatal error: ext/standard/php_smart_string.h: No such file or directory
    make: *** [php_mailparse_rfc822.lo] Error 1
    make: *** [php_mailparse_mime.lo] Error 1
    make: *** [mailparse.lo] Error 1
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    6:05 PM
    Nginx 1.13.x
    MariaDB 5.5
    seems mailparse 3.x for php 7 is being used instead of mailparse 2.x for php 5.x

    which 123.09beta01 installer you using ?

    can you list the command you used for install ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    6:05 PM
    Nginx 1.13.x
    MariaDB 5.5
    Found the problem and should be fixed in next 15 mins, so in 15 mins time run centmin.sh menu option 23 submenu option 2 for existing installs. New installs should be fine
     
  4. jcat

    jcat Member

    51
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    4:05 AM
    Ruh roh:

    Code:
    [15:47][root@ngx.asd.com centminmod]# centmin
    /usr/local/src/centminmod /usr/local/src/centminmod
    inc/imagick_install.inc: line 196: unexpected EOF while looking for matching `''
    inc/imagick_install.inc: line 210: syntax error: unexpected end of file
    inc/php_upgrade.inc: line 845: unexpected EOF while looking for matching `''
    inc/php_upgrade.inc: line 898: syntax error: unexpected end of file
    inc/igbinary.inc: line 143: syntax error near unexpected token `;'
    inc/igbinary.inc: line 143: `    sed -i 's|^session.serialize_handler=igbinary|;session.serialize_handler=igbinary|' "${CONFIGSCANDIR}/igbinary.ini"'
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    6:05 PM
    Nginx 1.13.x
    MariaDB 5.5
    ain't 15 mins yet :p

    fixed typo extra single quotation mark added :oops:
     
  6. jcat

    jcat Member

    51
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    4:05 AM
    Oh woops my bad :) Looks good now, thanks man!
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    6:05 PM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for bug report and fix confirmation :)