Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM PHP 5.7 (PHPNG) support testing for Centmin Mod betas

Discussion in 'Beta release code' started by eva2000, Jul 23, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    For PHP 5.7 or 7.0 aka PHP NG, the install method should be same install method work around as for PHP 5.6 PHP-FPM - PHP 5.6 support testing for .07 betas | Centmin Mod Community - manual download to /svr-setup in naming format of php-5.7.0.tar.gz then running menu option 5 to upgrade PHP and specify PHP version = 5.7.0 or 7.0.0

    PHP NG / 7.0 Background



    PHP 5.7 or 7.0 (PHP NG) is alpha status so not ready for production live usage yet but it's already almost 2x times faster performance than PHP 5.6 PHP - PHP 5.7 almost 2x times faster than PHP 5.6 | Centmin Mod Community ! PHP NG is now officially PHP 7.x

    Not all PHP extensions are supported by PHP 7.0 right now - some include geoip, memcache, memcached, igbinary and imagick PHP extensions. You can read how to deal with PHP 7 warnings/errors from those PHP extensions unable to load in PHP-FPM for Centmin Mod.

    Getting PHP NG source code



    To grab PHP NG, you need to download from their Git repository as explained at PHP: phpng. Read below for more details.

    Getting Centmin Mod .08 betas from Github



    You need to download and install Centmin Mod .08 betas from Github to be able to install and use PHP NG. Full details of Centmin Mod .08 beta testing and install at CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ? | Centmin Mod Community

    How to install PHP NG on Centmin Mod .08+ beta builds



    For Centmin Mod .08+ beta menu option 5 support to upgrade PHP to 5.7.0, you need to modify some of the outlined steps at PHP: phpng. You need to Git clone to directory in /svr-setup/php-5.7.0 as the naming convention php 5.7.0 is what Centmin Mod menu option 5 uses to detect the PHP version it will compile and install. You will also need to tar up the resulting /svr-setup/php-5.7.0 directory as the menu option 5 also checks for the /svr-setup/php.5.7.0.tar.gz file.

    I have now updated Centmin Mod .08 betas on Github with new inc/phpng_download.inc file which has a function to auto download via Git clone the PHP NG source to /svr-setup/php-5.7.0 and create /svr-setup/php-5.7.0.tar.gz when you run centmin.sh menu option 5 and specify PHP version = 5.7.0 or 7.0.0. No more manual work needed to be able to test PHP NG (5.7) as outlined below :D

    Remember, PHP NG is alpha quality not ready for production live use so only test this on test servers/sites. More info on PHP NG at PHP - PHP 5.7 almost 2x times faster than PHP 5.6 | Centmin Mod Community.

    Update:

    looks like PHP NG compile is now resulting in errors for igbinary, memcached, memcache and imagemagick PHP extesions

    Works fine if I uncomment and unload those 4 PHP extensions. Now reports itself as PHP 7.0.0-dev version

    Code:
    php -v
    PHP 7.0.0-dev (cli) (built: Sep  3 2014 02:23:09)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.8.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    PHP NG (PHP 7.0.0) modules

    Code:
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    mhash
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    php700_phpng_phpinfo_00.png
    php700_zendopcache_00.png


    phpng_centminmod_working.png

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu     
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 5
    --------------------------------------------------------
    
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.30): 5.7.0
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing php-fpm.conf [y/n]: y
    Does this server have less than <=2048MB of memory installed ? [y/n]: y
    Downloading PHP 5.7 from https://git.php.net/repository/php-src.git
    Cloning into 'php-5.7.0'...
    Checking out files: 100% (17038/17038), done.
    Download PHP 5.7 completed
    
    Creating tar archive
    -----------------------------------------------------------------------------------------
    Detected PHP 5.7 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    
    Centmin Mod menu option 5, will compile and install PHP 5.7.0 and auto detect previously installed custom PHP extensions like APC Cache, Zend Opcache, Xcache, Memcache, Memcached, Libmemcached, Imagick and igbinary and try to auto recompile then if it detects major PHP version upgrades i.e. PHP 5.5 to 5.6 to 5.7 etc. Minor version upgrades will skip the auto recompile of custom PHP extensions.

    Alternate manual PHP NG install



    The old manual method is still listed below. This manual method is no longer needed with latest Centmin Mod .08+ betas. Commands and steps to use Centmin Mod menu option 5 to upgrade and test PHP 5.7.0.

    Updated commands below removing the git branch/checkout commands outlined at PHP: phpng. This fixed all my headaches documented below with PHP extensions not compiling and 504 gateway erros PHP-FPM - PHP 5.7 (PHPNG) support testing for Centmin Mod betas | Centmin Mod Community !

    FYI, there's a github branch for phpng as well at Branches · php/php-src · GitHub

    Code:
    cd /svr-setup
    git clone https://git.php.net/repository/php-src.git php-5.7.0
    tar -cvzf php-5.7.0.tar.gz php-5.7.0
    
    Running centmin.sh and selecting menu option 5
    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 5
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.30): 5.7.0
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing php-fpm.conf [y/n]: n
    
    -----------------------------------------------------------------------------------------
    Detected PHP 5.7 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    edit:
    ok seems PHP NG should be PHP 6.x not 5.7 according one of the PHP devs at PHP 5.7 (aka PHPng) is now nearly TWICE as fast as PHP 5.6 : programming = nikic overview for nikic

     
    Last edited: Nov 6, 2014
    • Like Like x 2
  2. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    Note right now using above method there's some errors (testing with CentOS 7.0 and .08 beta01), so need to tweak Centmin Mod code to work around them.
     
  3. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    Not quite there yet, recompile PHP 5.7 got some errors for imagick, igbinary, memcache, memcached PHP extensions. Looks like these are not listed on the current PHP NG supported extension list at https://wiki.php.net/phpng#supported_extensions ! Hence PHP 5.7 / PHP NG is still alpha status I guess.

    Code:
    [root@centos7 ~]# php --ini
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/zendopcache.ini
    
    Code:
    [root@centos7 ~]# ls -lah /usr/local/lib/php/extensions/no-debug-non-zts-20131227/
    total 2.3M
    drwxr-xr-x  2 root root   39 Jul 23 01:32 .
    drwxr-xr-x. 4 root root   70 Jul 23 01:32 ..
    -rwxr-xr-x  1 root root 1.6M Jul 23 01:32 opcache.a
    -rwxr-xr-x  1 root root 707K Jul 23 01:32 opcache.so
    
    Code:
    [root@centos7 ~]# php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.7.0-dev (cli) (built: Jul 23 2014 01:31:24)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    
    imagick 3.1.2 php extension errors with PHP NG
    Code:
     ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    /svr-setup/imagick-3.1.2/imagickpixel_class.c: In function ‘zim_imagickpixel_gethsl’:
    /svr-setup/imagick-3.1.2/imagickpixel_class.c:38:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      internp = (php_imagickpixel_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
                ^
    /svr-setup/imagick-3.1.2/imagickpixel_class.c: In function ‘zim_imagickpixel_sethsl’:
    /svr-setup/imagick-3.1.2/imagickpixel_class.c:63:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      internp = (php_imagickpixel_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
                ^
    /svr-setup/imagick-3.1.2/imagickpixel_class.c: In function ‘zim_imagickpixel_getcolorvaluequantum’:
    /svr-setup/imagick-3.1.2/imagickpixel_class.c:83:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      internp = (php_imagickpixel_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
                ^
     
    Last edited: Jul 23, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    removing the .ini files for imagick, igbinary, memcache and memcached fixes the errors
    Code:
    [root@centos7 php.d]# php -v
    PHP 5.7.0-dev (cli) (built: Jul 23 2014 01:31:24)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    but seems php isn't serving the phpinfo php file and leads to 502 gateway errors. Error log shows
    Code:
    [23-Jul-2014 02:10:17] WARNING: failed processes threshold (10 in 60 sec) is reached, initiating reload
    [23-Jul-2014 02:10:17] NOTICE: reloading: execvp("/usr/local/sbin/php-fpm", {"/usr/local/sbin/php-fpm", "--fpm-config", "/usr/local/etc/php-fpm.conf"})
    [23-Jul-2014 02:10:17] NOTICE: using inherited socket fd=8, "127.0.0.1:9000"
    [23-Jul-2014 02:10:17] NOTICE: using inherited socket fd=8, "127.0.0.1:9000"
    [23-Jul-2014 02:10:17] NOTICE: fpm is running, pid 28599
    [23-Jul-2014 02:10:17] NOTICE: ready to handle connections
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28600 exited on signal 11 (SIGSEGV) after 0.001791 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28601 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28601 exited on signal 11 (SIGSEGV) after 0.000871 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28602 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28602 exited on signal 11 (SIGSEGV) after 0.001786 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28603 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28603 exited on signal 11 (SIGSEGV) after 0.001059 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28604 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28604 exited on signal 11 (SIGSEGV) after 0.000770 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28605 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28605 exited on signal 11 (SIGSEGV) after 0.000749 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28606 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28606 exited on signal 11 (SIGSEGV) after 0.001197 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28607 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28607 exited on signal 11 (SIGSEGV) after 0.000688 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28608 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28608 exited on signal 11 (SIGSEGV) after 0.000764 seconds from start
    [23-Jul-2014 02:10:17] NOTICE: [pool www] child 28609 started
    [23-Jul-2014 02:10:17] WARNING: [pool www] child 28609 exited on signal 11 (SIGSEGV) after 0.000750 seconds from start
    [23-Jul-2014 02:10:17] WARNING: failed processes threshold (10 in 60 sec) is reached, initiating reload
    [23-Jul-2014 02:10:17] NOTICE: reloading: execvp("/usr/local/sbin/php-fpm", {"/usr/local/sbin/php-fpm", "--fpm-config", "/usr/local/etc/php-fpm.conf"})
     
  5. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    same problem with php-fpm systemd file instead of init.d/php-fpm

    For CentOS 7.0 php-fpm systemd for Centmin Mod

    Created /usr/lib/tmpfiles.d/php-fpm.conf and add to file
    Code:
    d /var/run/php-fpm 755 nginx nginx
    
    create EnvironmentFile
    Code:
    touch /etc/sysconfig/php-fpm
    
    Create php-fpm systemd service file
    Code:
    /usr/lib/systemd/system/php-fpm.service
    
    with following
    Code:
    [Unit]
    Description=The PHP FastCGI Process Manager
    After=syslog.target network.target
    
    [Service]
    Type=notify
    PIDFile=/var/run/php-fpm/php-fpm.pid
    EnvironmentFile=/etc/sysconfig/php-fpm
    ExecStart=/usr/local/sbin/php-fpm -g /var/run/php-fpm/php-fpm.pid -y /usr/local/etc/php-fpm.conf
    ExecReload=/bin/kill -USR2 $MAINPID
    PrivateTmp=true
    
    [Install]
    WantedBy=multi-user.target
    
    enable php-fpm.service
    Code:
    systemctl enable php-fpm.service
    status
    Code:
    systemctl status php-fpm.service
    php-fpm.service - The PHP FastCGI Process Manager
       Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
       Active: deactivating (stop-sigterm) since Wed 2014-07-23 02:30:46 UTC; 23min ago
    Main PID: 7116 (php-fpm)
       CGroup: /system.slice/php-fpm.service
               +-7116 /usr/local/sbin/php-fpm -g /var/run/php-fpm/php-fpm.pid -y /usr/local/etc/php-fpm.conf
    
    Jul 23 02:52:25 centos7.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
    Jul 23 02:54:15 centos7.localdomain systemd[1]: Stopping The PHP FastCGI Process Manager...
    trying to start gives timeout failed error
    Code:
    systemctl status php-fpm.service
    php-fpm.service - The PHP FastCGI Process Manager
       Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
       Active: inactive (dead)
    
    Jul 23 02:51:13 centos7.localdomain systemd[1]: Stopping The PHP FastCGI Process Manager...
    Jul 23 02:52:25 centos7.localdomain systemd[1]: php-fpm.service stopping timed out (2). Killing.
    Jul 23 02:52:25 centos7.localdomain systemd[1]: Unit php-fpm.service entered failed state.
    Jul 23 02:52:25 centos7.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
    Jul 23 02:54:15 centos7.localdomain systemd[1]: Stopping The PHP FastCGI Process Manager...
    Jul 23 02:55:45 centos7.localdomain systemd[1]: php-fpm.service stopping timed out. Killing.
    Jul 23 02:55:45 centos7.localdomain systemd[1]: php-fpm.service: main process exited, code=killed, status=9/KILL
    Jul 23 02:55:45 centos7.localdomain systemd[1]: Unit php-fpm.service entered failed state.
    Jul 23 02:55:45 centos7.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
    Jul 23 02:55:49 centos7.localdomain systemd[1]: Started The PHP FastCGI Process Manager.
    
    Code:
    [root@centos7 init.d]# systemctl start php-fpm.service
    Job for php-fpm.service failed. See 'systemctl status php-fpm.service' and 'journalctl -xn' for details.
    Code:
    journalctl -xn
    -- Logs begin at Wed 2014-07-23 01:26:11 UTC, end at Wed 2014-07-23 02:58:18 UTC. --
    Jul 23 02:55:45 centos7.localdomain systemd[1]: php-fpm.service: main process exited, code=killed, status=9/KILL
    Jul 23 02:55:45 centos7.localdomain systemd[1]: Unit php-fpm.service entered failed state.
    Jul 23 02:55:45 centos7.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
    -- Subject: Unit php-fpm.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php-fpm.service has begun starting up.
    Jul 23 02:55:49 centos7.localdomain systemd[1]: Started The PHP FastCGI Process Manager.
    -- Subject: Unit php-fpm.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php-fpm.service has finished starting up.
    --
    -- The start-up result is done.
    Jul 23 02:56:12 centos7.localdomain systemd[1]: Reloading.
    Jul 23 02:56:20 centos7.localdomain systemd[1]: Reloading.
    Jul 23 02:56:48 centos7.localdomain systemd[1]: Starting The PHP FastCGI Process Manager...
    -- Subject: Unit php-fpm.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php-fpm.service has begun starting up.
    Jul 23 02:58:18 centos7.localdomain systemd[1]: php-fpm.service operation timed out. Terminating.
    Jul 23 02:58:18 centos7.localdomain systemd[1]: Failed to start The PHP FastCGI Process Manager.
    -- Subject: Unit php-fpm.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php-fpm.service has failed.
    --
    -- The result is failed.
    Jul 23 02:58:18 centos7.localdomain systemd[1]: Unit php-fpm.service entered failed state.
    Code:
    tail -5 /var/log/audit/audit.log
    type=ANOM_ABEND msg=audit(1406086631.677:73054): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=23383 comm="php-fpm" reason="memory violation" sig=11
    type=ANOM_ABEND msg=audit(1406086631.677:73055): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=23385 comm="php-fpm" reason="memory violation" sig=11
    type=ANOM_ABEND msg=audit(1406086631.679:73056): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=23386 comm="php-fpm" reason="memory violation" sig=11
    type=ANOM_ABEND msg=audit(1406086631.681:73057): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=23389 comm="php-fpm" reason="memory violation" sig=11
    type=SERVICE_START msg=audit(1406086636.253:73058): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=' comm="php-fpm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
    few more clues in /var/log/messages
    Code:
    tail -50 /var/log/messages
    Jul 23 03:37:03 centos7 kernel: show_signal_msg: 816 callbacks suppressed
    Jul 23 03:37:03 centos7 kernel: php-fpm[22352]: segfault at 18 ip 0000000000909155 sp 00007fff28e19cb0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22353]: segfault at 18 ip 0000000000909155 sp 00007fff28e19cb0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22355]: segfault at 18 ip 0000000000909155 sp 00007fff28e19cb0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22354]: segfault at 18 ip 0000000000909155 sp 00007fff28e19cb0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22358]: segfault at 18 ip 0000000000909155 sp 00007fff28e19af0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22357]: segfault at 18 ip 0000000000909155 sp 00007fff28e19cb0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22360]: segfault at 18 ip 0000000000909155 sp 00007fff28e19af0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22362]: segfault at 18 ip 0000000000909155 sp 00007fff28e19af0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22363]: segfault at 18 ip 0000000000909155 sp 00007fff28e19af0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:03 centos7 kernel: php-fpm[22365]: segfault at 18 ip 0000000000909155 sp 00007fff28e19af0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: show_signal_msg: 632 callbacks suppressed
    Jul 23 03:37:11 centos7 kernel: php-fpm[23346]: segfault at 18 ip 0000000000909155 sp 00007fff298f0aa0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23347]: segfault at 18 ip 0000000000909155 sp 00007fff298f0aa0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23349]: segfault at 18 ip 0000000000909155 sp 00007fff298f0aa0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23348]: segfault at 18 ip 0000000000909155 sp 00007fff298f0aa0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23352]: segfault at 18 ip 0000000000909155 sp 00007fff298f0aa0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23354]: segfault at 18 ip 0000000000909155 sp 00007fff298f08e0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23355]: segfault at 18 ip 0000000000909155 sp 00007fff298f08e0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23356]: segfault at 18 ip 0000000000909155 sp 00007fff298f08e0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23358]: segfault at 18 ip 0000000000909155 sp 00007fff298f08e0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:11 centos7 kernel: php-fpm[23359]: segfault at 18 ip 0000000000909155 sp 00007fff298f08e0 error 4 in php-fpm[400000+7c5000]
    Jul 23 03:37:16 centos7 systemd: php-fpm.service stopping timed out (2). Killing.
    Jul 23 03:37:16 centos7 systemd: Failed to start The PHP FastCGI Process Manager.
    Jul 23 03:37:16 centos7 systemd: Unit php-fpm.service entered failed state.
    Jul 23 03:40:01 centos7 systemd: Starting Session 17 of user root.
    Jul 23 03:40:01 centos7 systemd: Started Session 17 of user root.
    Jul 23 03:42:34 centos7 kernel: show_signal_msg: 18 callbacks suppressed
    Jul 23 03:42:34 centos7 kernel: conftest[30283]: segfault at 1 ip 00007f816f0b0815 sp 00007fff907acdf0 error 4 in libc-client.so.2007[7f816f06e000+107000]
    Jul 23 03:42:46 centos7 kernel: conftest[32621]: segfault at 0 ip 00000000004007f0 sp 00007fff2b4f05a0 error 4 in conftest[400000+1000]
    Jul 23 03:42:46 centos7 kernel: conftest[32644]: segfault at 0 ip 00007fe697fbb576 sp 00007fff3e63a268 error 4 in libc-2.17.so[7fe697e7e000+1b6000]
    Jul 23 03:46:35 centos7 systemd: Starting The PHP FastCGI Process Manager...
    Jul 23 03:48:05 centos7 systemd: php-fpm.service operation timed out. Terminating.
    Jul 23 03:48:05 centos7 systemd: Failed to start The PHP FastCGI Process Manager.
    Jul 23 03:48:05 centos7 systemd: Unit php-fpm.service entered failed state.
    Jul 23 03:48:05 centos7 systemd: Starting The PHP FastCGI Process Manager...
    Jul 23 03:49:35 centos7 systemd: php-fpm.service operation timed out. Terminating.
    Jul 23 03:49:35 centos7 systemd: Failed to start The PHP FastCGI Process Manager.
    Jul 23 03:49:35 centos7 systemd: Unit php-fpm.service entered failed state.
    Jul 23 03:50:01 centos7 systemd: Starting Session 18 of user root.
    Jul 23 03:50:01 centos7 systemd: Started Session 18 of user root.
    Jul 23 03:51:05 centos7 systemd: Starting The PHP FastCGI Process Manager...
    Jul 23 03:52:35 centos7 systemd: php-fpm.service operation timed out. Terminating.
    Jul 23 03:52:35 centos7 systemd: Failed to start The PHP FastCGI Process Manager.
    Jul 23 03:52:35 centos7 systemd: Unit php-fpm.service entered failed state.
    Jul 23 03:52:35 centos7 systemd: Starting The PHP FastCGI Process Manager...
    Jul 23 03:54:05 centos7 systemd: php-fpm.service operation timed out. Terminating.
    Jul 23 03:54:05 centos7 systemd: Failed to start The PHP FastCGI Process Manager.
    Jul 23 03:54:05 centos7 systemd: Unit php-fpm.service entered failed state.
    Jul 23 03:57:18 centos7 systemd: Starting The PHP FastCGI Process Manager...
     
    Last edited: Jul 23, 2014
  6. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    I'm running the live website with php 5.7 no errors
    phpinfo OK
     
  7. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it might be CentOS 7.0 specific issue as I believe you tested on CentOS 6.5 :)

    but do imagick, igbinary, memcache and memcached PHP extensions work for you ?

    Going to try PHP 5.7 on CentOS 6.5 with Centmin Mod .08 beta01 instead now :)
     
    Last edited: Jul 23, 2014
  8. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    Yes I tested on CentOS 6.5
    imagick, igbinary, memcache and memcached working
    Code:
    [root@server1 ~]#  php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/zendopcache.ini
    [root@server1 ~]#
    Code:
    [root@server1 ~]# php -v
    PHP 5.7.0-dev (cli) (built: Jul 22 2014 23:47:43)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    [root@server1 ~]#
    
    [​IMG]

    [​IMG]

    [​IMG]
     
    Last edited: Jul 23, 2014
  9. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    was that fresh install or php 5.4.30 to 5.7.0 upgrade ?

    tried it with CentOS 6.5 and centmin mod .08 beta01 and PHP upgrade via menu option 5 from 5.4.30 to 5.7.0
    Code:
    php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.7.0-dev (cli) (built: Jul 23 2014 04:48:22)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    Code:
     tail -15 /var/log/messages
    Jul 23 04:58:44 centos65np kernel: php-fpm[15334]: segfault at 18 ip 00000000009298ce sp 00007fff8c62bd50 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:44 centos65np kernel: php-fpm[15335]: segfault at 18 ip 00000000009298ce sp 00007fff8c62bd50 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:44 centos65np kernel: php-fpm[15336]: segfault at 18 ip 00000000009298ce sp 00007fff8c62bd50 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:44 centos65np kernel: php-fpm[15337]: segfault at 18 ip 00000000009298ce sp 00007fff8c62bd50 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: __ratelimit: 290 callbacks suppressed
    Jul 23 04:58:49 centos65np kernel: php-fpm[15659]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8220 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15660]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15661]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15662]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15663]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15664]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15665]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15666]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15667]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Jul 23 04:58:49 centos65np kernel: php-fpm[15668]: segfault at 18 ip 00000000009298ce sp 00007fff60bc8100 error 4 in php-fpm[400000+7c3000]
    Code:
     php -i
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131227/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    phpinfo()
    PHP Version => 5.7.0-dev
    
    System => Linux centos65np.localdomain 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64
    Build Date => Jul 23 2014 04:47:12
    Configure Command =>  '../configure'  '--enable-cgi' '--enable-fpm' '--enable-pcntl' '--with-mcrypt' '--with-mhash' '--with-zlib' '--with-gettext' '--enable-intl' '--enable-exif' '--enable-zip' '--with-bz2' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-pear' '--enable-mbstring' '--with-openssl' '--with-mysql=mysqlnd' '--with-libdir=lib64' '--with-mysqli=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-curl' '--with-gd' '--with-xmlrpc' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--with-freetype-dir=lib64' '--with-jpeg-dir=lib64' '--with-png-dir=lib64' '--with-xpm-dir=lib64' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-mysql=mysqlnd' '--enable-inline-optimization' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-readline' '--with-libedit' '--with-gmp' '--with-pspell' '--with-tidy' '--with-enchant' '--with-fpm-user=nginx' '--with-fpm-group=nginx' '--disable-fileinfo' '--with-config-file-scan-dir=/etc/centminmod/php.d' 'CC=ccache 'CXX=ccache
    Server API => Command Line Interface
    Virtual Directory Support => disabled
    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini
    Scan this dir for additional .ini files => /etc/centminmod/php.d
    Additional .ini files parsed => /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/zendopcache.ini
    
    PHP API => 20131218
    PHP Extension => 20131227
    Zend Extension => 220131227
    Zend Extension Build => API220131227,NTS
    PHP Extension Build => API20131227,NTS
    Debug Build => no
    Thread Safety => disabled
    Zend Signal Handling => disabled
    Zend Memory Manager => enabled
    Zend Multibyte Support => provided by mbstring
    IPv6 Support => enabled
    DTrace Support => disabled
    
    Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
    Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
    Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
    
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
     
    Last edited: Jul 23, 2014
  10. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    I'm upgrade PHP 5.4.30 to 5.7.0 using centmin mod .07 .
    not tested centmin mod .08
     
  11. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    strange indeed... might be Centmin Mod .08 beta 01 specific problem but menu option 15 for recompile of imagick on CentOS 6.5 + PHP 5.7.0 won't complete

    Code:
    svr-setup/imagick-3.1.2/imagick_class.c:9582: warning: cast to pointer from integer of different size
    /svr-setup/imagick-3.1.2/imagick_class.c: In function ‘zim_imagick_setimageprogressmonitor’:
    /svr-setup/imagick-3.1.2/imagick_class.c:9609: warning: cast to pointer from integer of different size
    /svr-setup/imagick-3.1.2/imagick_class.c: In function ‘zim_imagick_setresolution’:
    /svr-setup/imagick-3.1.2/imagick_class.c:9660: warning: cast to pointer from integer of different size
    /svr-setup/imagick-3.1.2/imagick_class.c: In function ‘zim_imagick_setsamplingfactors’:
    /svr-setup/imagick-3.1.2/imagick_class.c:9693: warning: cast to pointer from integer of different size
    /svr-setup/imagick-3.1.2/imagick_class.c: In function ‘zim_imagick_setsize’:
    /svr-setup/imagick-3.1.2/imagick_class.c:9720: warning: cast to pointer from integer of different size
    /svr-setup/imagick-3.1.2/imagick_class.c: In function ‘zim_imagick_settype’:
    /svr-setup/imagick-3.1.2/imagick_class.c:9745: warning: cast to pointer from integer of different size
    make: *** [imagick_class.lo] Error 1
     
  12. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    @hungphutho can you try with your working PHP 5.7 install, running centmin.sh menu option 10 and 15 to recompile PHP extensions igbinary, memcache, memcached and imagick and see if it works.
     
  13. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    @eva2000 menu option 10 and 15 working PHP 5.7 / centOS 6.5 46bit / centminmod 07

    Menu 15
    Code:
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    
    creating libtool
    appending configuration tag "CXX" to libtool
    checking whether the ccache g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache g++ option to produce PIC...
    checking if ccache g++ static flag  works... yes
    checking if ccache g++ supports -c -o file.o... yes
    checking whether the ccache g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... unsupported
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick_file.c -o imagick_file.lo
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick_class.c -o imagick_class.lo
    mkdir .libs
    mkdir .libs
    mkdir: cannot create directory `.libs': File exists
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
    /svr-setup/imagick-3.1.2/imagick_file.c: In function âphp_imagick_is_urlâ:
    /svr-setup/imagick-3.1.2/imagick_file.c:52: warning: passing argument 2 of âphp_stream_locate_url_wrapperâ from incompatible pointer type
    /usr/local/include/php/main/php_streams.h:549: note: expected âconst char **â but argument is of type âchar **â
    /svr-setup/imagick-3.1.2/imagick_class.c: In function âs_add_assoc_strâ:
    /svr-setup/imagick-3.1.2/imagick_class.c:6636: warning: passing argument 4 of âadd_assoc_string_exâ discards qualifiers from pointer target type
    /usr/local/include/php/Zend/zend_API.h:384: note: expected âchar *â but argument is of type âconst char * constâ
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagickdraw_class.c -o imagickdraw_class.lo
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagickpixel_class.c -o imagickpixel_class.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick_helpers.c -o imagick_helpers.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    /svr-setup/imagick-3.1.2/imagick_helpers.c: In function âphp_imagick_validate_mapâ:
    /svr-setup/imagick-3.1.2/imagick_helpers.c:153: warning: initialization discards qualifiers from pointer target type
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick.c -o imagick.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick.c  -fPIC -DPIC -o .libs/imagick.o
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=link ccache gcc -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /svr-setup/imagick-3.1.2/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -lMagickWand -lMagickCore
    ccache gcc -shared  .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o  -lMagickWand -lMagickCore  -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
    creating imagick.la
    (cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la)
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=install cp ./imagick.la /svr-setup/imagick-3.1.2/modules
    cp ./.libs/imagick.so /svr-setup/imagick-3.1.2/modules/imagick.so
    cp ./.libs/imagick.lai /svr-setup/imagick-3.1.2/modules/imagick.la
    PATH="$PATH:/sbin" ldconfig -n /svr-setup/imagick-3.1.2/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /svr-setup/imagick-3.1.2/modules
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    
    Build complete.
    Don't forget to run 'make test'.
    
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131227/
    Installing header files:          /usr/local/include/php/
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    *************************************************
    * imagick PHP installed
    
    Menu 10
    attachments centminmod_1.2.3-eva2000.07_230714-142538_memcached_reinstall.log
     

    Attached Files:

  14. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    wow.. now I'm scratching my head as it's definitely not working for me on both CentOS 6.5 and 7.0 with Centmin Mod .08 CentOS 7.0 beta 01 build. So could be an issue with Centmin Mod .08 CentOS 7.0 beta01 build itself https://github.com/centminmod/centminmod/tree/123.08centos7beta01 ? More investigating needed - full file change compare between .07 stable and .08 centos 7 beta 01 at https://github.com/centminmod/centminmod/compare/123.08centos7beta01?expand=1 :D

    For now with .08 centos7 beta 01 build disabled igbinary, memcache, memcached and imagick PHP extension when PHP 5.7 detected on PHP upgrades via menu option 5 https://github.com/centminmod/centminmod/commit/cd7744a8545ed88507c45f0ee9ae45413e16299c

    PHP NG (5.7) gdb backtrace (not that I understand fully what it means) as PHP-FPM is not responsive on web front end with 504 gateway errors

    Code:
    gdb /usr/local/sbin/php-fpm /home/corefiles/core-php-fpm.8158
    GNU gdb (GDB) Red Hat Enterprise Linux (7.2-64.el6_5.2)
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/local/sbin/php-fpm...done.
    [New Thread 8158]
    Missing separate debuginfo for
    Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/e7/38e6c8e449fb6d1817db80b0ed7458930248d2
    Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libcrypt.so.1
    Reading symbols from /usr/lib64/libc-client.so.2007...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libc-client.so.2007
    Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libz.so.1
    Reading symbols from /usr/lib64/libtidy-0.99.so.0...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libtidy-0.99.so.0
    Reading symbols from /usr/lib64/libedit.so.0...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libedit.so.0
    Reading symbols from /lib64/libncurses.so.5...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libncurses.so.5
    Reading symbols from /usr/lib64/libaspell.so.15...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libaspell.so.15
    Reading symbols from /usr/lib64/libpspell.so.15...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libpspell.so.15
    Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/librt.so.1
    Reading symbols from /usr/lib64/libmcrypt.so.4...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libmcrypt.so.4
    Reading symbols from /usr/lib64/libltdl.so.7...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libltdl.so.7
    Reading symbols from /usr/lib64/libstdc++.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libstdc++.so.6
    Reading symbols from /lib64/libpam.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libpam.so.0
    Reading symbols from /usr/lib64/libgmp.so.3...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libgmp.so.3
    Reading symbols from /usr/lib64/libX11.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libX11.so.6
    Reading symbols from /usr/lib64/libXpm.so.4...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libXpm.so.4
    Reading symbols from /usr/lib64/libpng12.so.0...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libpng12.so.0
    Reading symbols from /usr/lib64/libjpeg.so.62...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libjpeg.so.62
    Reading symbols from /usr/lib64/libenchant.so.1...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libenchant.so.1
    Reading symbols from /usr/lib64/libcurl.so.4...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libcurl.so.4
    Reading symbols from /lib64/libbz2.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libbz2.so.1
    Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libm.so.6
    Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libdl.so.2
    Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnsl.so.1
    Reading symbols from /usr/lib64/libxml2.so.2...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libxml2.so.2
    Reading symbols from /lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libgssapi_krb5.so.2
    Reading symbols from /lib64/libkrb5.so.3...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libkrb5.so.3
    Reading symbols from /lib64/libk5crypto.so.3...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libk5crypto.so.3
    Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libcom_err.so.2
    Reading symbols from /usr/lib64/libssl.so.10...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libssl.so.10
    Reading symbols from /usr/lib64/libcrypto.so.10...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libcrypto.so.10
    Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libfreetype.so.6
    Reading symbols from /usr/lib64/libicui18n.so.42...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libicui18n.so.42
    Reading symbols from /usr/lib64/libicuuc.so.42...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libicuuc.so.42
    Reading symbols from /usr/lib64/libicudata.so.42...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libicudata.so.42
    Reading symbols from /usr/lib64/libicuio.so.42...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libicuio.so.42
    Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libgcc_s.so.1
    Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libc.so.6
    Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libresolv.so.2
    Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libfreebl3.so
    Reading symbols from /lib64/libtinfo.so.5...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libtinfo.so.5
    Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
    [Thread debugging using libthread_db enabled]
    Loaded symbols for /lib64/libpthread.so.0
    Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/ld-linux-x86-64.so.2
    Reading symbols from /lib64/libaudit.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libaudit.so.1
    Reading symbols from /usr/lib64/libxcb.so.1...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libxcb.so.1
    Reading symbols from /lib64/libgmodule-2.0.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libgmodule-2.0.so.0
    Reading symbols from /lib64/libglib-2.0.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libglib-2.0.so.0
    Reading symbols from /lib64/libidn.so.11...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libidn.so.11
    Reading symbols from /lib64/libldap-2.4.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libldap-2.4.so.2
    Reading symbols from /usr/lib64/libssl3.so...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libssl3.so
    Reading symbols from /usr/lib64/libsmime3.so...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libsmime3.so
    Reading symbols from /usr/lib64/libnss3.so...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libnss3.so
    Reading symbols from /usr/lib64/libnssutil3.so...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libnssutil3.so
    Reading symbols from /lib64/libplds4.so...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libplds4.so
    Reading symbols from /lib64/libplc4.so...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libplc4.so
    Reading symbols from /lib64/libnspr4.so...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnspr4.so
    Reading symbols from /usr/lib64/libssh2.so.1...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libssh2.so.1
    Reading symbols from /lib64/libkrb5support.so.0...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libkrb5support.so.0
    Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libkeyutils.so.1
    Reading symbols from /usr/lib64/libXau.so.6...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libXau.so.6
    Reading symbols from /lib64/liblber-2.4.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/liblber-2.4.so.2
    Reading symbols from /usr/lib64/libsasl2.so.2...(no debugging symbols found)...done.
    Loaded symbols for /usr/lib64/libsasl2.so.2
    Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libselinux.so.1
    Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnss_files.so.2
    Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done.
    Loaded symbols for /lib64/libnss_dns.so.2
    Core was generated by `php-fpm: pool www                                               '.
    Program terminated with signal 11, Segmentation fault.
    #0  0x0000000000b8b7a2 in fpm_php_zend_ini_alter_master (name=0x15c7630 "error_log", name_length=10,
        new_value=0x15c7650 "/var/log/php-fpm/www-php.error.log", new_value_length=34, mode=4, stage=4) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_php.c:37
    37              if (!ini_entry->on_modify
    Missing separate debuginfos, use: debuginfo-install aspell-0.60.6-12.el6.x86_64 audit-libs-2.2-4.el6_5.x86_64 bzip2-libs-1.0.5-7.el6_0.x86_64 cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64 enchant-1.5.0-4.el6.x86_64 freetype-2.3.11-14.el6_3.1.x86_64 glib2-2.26.1-7.el6_5.x86_64 glibc-2.12-1.132.el6_5.2.x86_64 gmp-4.3.1-7.el6_2.2.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-15.el6_5.1.x86_64 libX11-1.5.0-4.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libXpm-3.5.10-2.el6.x86_64 libc-client-2007e-11.el6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libcurl-7.19.7-37.el6_5.3.x86_64 libedit-2.11-4.20080712cvs.1.el6.x86_64 libgcc-4.4.7-4.el6.x86_64 libicu-4.2.1-9.1.el6_2.x86_64 libidn-1.18-2.el6.x86_64 libjpeg-turbo-1.2.1-3.el6_5.x86_64 libmcrypt-2.5.8-9.el6.x86_64 libpng-1.2.49-1.el6_2.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libssh2-1.4.2-1.el6.x86_64 libstdc++-4.4.7-4.el6.x86_64 libtidy-0.99.0-19.20070615.1.el6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64 libxcb-1.8.1-1.el6.x86_64 libxml2-2.7.6-14.el6_5.2.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nspr-4.10.2-1.el6_5.x86_64 nss-3.15.3-6.el6_5.x86_64 nss-softokn-freebl-3.14.3-10.el6_5.x86_64 nss-util-3.15.3-1.el6_5.x86_64 openldap-2.4.23-34.el6_5.1.x86_64 openssl-1.0.1e-16.el6_5.14.x86_64 pam-1.1.1-17.el6.x86_64 zlib-1.2.3-29.el6.x86_64
    
    Code:
    (gdb) bt
    #0  0x0000000000b8b7a2 in fpm_php_zend_ini_alter_master (name=0x15c7630 "error_log", name_length=10, new_value=
        0x15c7650 "/var/log/php-fpm/www-php.error.log", new_value_length=34, mode=4, stage=4) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_php.c:37
    #1  0x0000000000b8b99e in fpm_php_apply_defines_ex (kv=0x15c7610, mode=4) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_php.c:95
    #2  0x0000000000b8bb17 in fpm_php_apply_defines (wp=0x15c73b0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_php.c:128
    #3  0x0000000000b8bc6a in fpm_php_init_child (wp=0x15c73b0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_php.c:221
    #4  0x0000000000b7ef9b in fpm_child_init (wp=0x15c73b0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_children.c:156
    #5  0x0000000000b7f957 in fpm_children_make (wp=0x15c73b0, in_event_loop=1, nb_to_spawn=1, is_debug=0)
        at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_children.c:407
    #6  0x0000000000b7f5fa in fpm_children_bury () at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_children.c:288
    #7  0x0000000000b85458 in fpm_got_signal (ev=0x11a39a0, which=2, arg=0x0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_events.c:77
    #8  0x0000000000b86376 in fpm_event_fire (ev=0x11a39a0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_events.c:467
    #9  0x0000000000b94b6b in fpm_event_epoll_wait (queue=0x15c8c90, timeout=909) at /svr-setup/php-5.7.0/sapi/fpm/fpm/events/epoll.c:147
    #10 0x0000000000b860af in fpm_event_loop (err=0) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_events.c:411
    #11 0x0000000000b7ec35 in fpm_run (max_requests=0x7fffde4bd08c) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm.c:115
    #12 0x0000000000b8b0dc in main (argc=3, argv=0x7fffde4bd2b8) at /svr-setup/php-5.7.0/sapi/fpm/fpm/fpm_main.c:1823
    despite not being responsive on web front end i.e. phpinfo.php doesn't load and 504 gateway error, the php command line works
    Code:
    php Zend/bench.php     
    simple             0.265
    simplecall         0.125
    simpleucall        0.184
    simpleudcall       0.182
    mandel             0.903
    mandel2            1.153
    ackermann(7)       0.215
    ary(50000)         0.027
    ary2(50000)        0.021
    ary3(2000)         0.481
    fibo(30)           0.601
    hash1(50000)       0.069
    hash2(500)         0.069
    heapsort(20000)    0.229
    matrix(20)         0.252
    nestedloop(12)     0.522
    sieve(30)          0.159
    strcat(200000)     0.041
    ------------------------
    Total              5.500
    Code:
    php Zend/micro_bench.php                                       
    empty_loop         0.358
    func()             0.915    0.557
    undef_func()       0.927    0.569
    int_func()         0.773    0.415
    $x = self::$x      0.696    0.339
    self::$x = 0       0.716    0.359
    isset(self::$x)    0.674    0.316
    empty(self::$x)    0.707    0.349
    $x = Foo::$x       0.632    0.274
    Foo::$x = 0        0.660    0.302
    isset(Foo::$x)     0.624    0.267
    empty(Foo::$x)     0.648    0.290
    self::f()          0.899    0.541
    Foo::f()           0.829    0.472
    $x = $this->x      0.696    0.338
    $this->x = 0       0.695    0.337
    $this->x += 2      0.696    0.338
    ++$this->x         0.774    0.417
    --$this->x         0.634    0.276
    $this->x++         0.700    0.342
    $this->x--         0.701    0.343
    isset($this->x)    0.664    0.307
    empty($this->x)    0.685    0.327
    $this->f()         0.884    0.526
    $x = Foo::TEST     0.686    0.328
    new Foo()          1.679    1.322
    $x = TEST          0.550    0.193
    $x = $_GET         0.853    0.495
    $x = $GLOBALS['v'] 1.059    0.702
    $x = $hash['v']    0.766    0.408
    $x = $str[0]       1.338    0.980
    $x = $a ?: null    0.588    0.231
    $x = $f ?: tmp     0.749    0.391
    $x = $f ? $f : $a  0.761    0.404
    $x = $f ? $f : tmp 0.773    0.415
    ------------------------
    Total             26.988
     
    Last edited: Jul 23, 2014
  15. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    @hungphutho where did you download and source the PHP NG install from ? Maybe I didn't get the right version from PHP Git ?

    this is how I grabbed my source for PHP NG
    Code:
    cd /svr-setup
    git clone https://git.php.net/repository/php-src.git php-5.7.0
    cd php-5.7.0
    git branch phpng origin/phpng
    git checkout phpng
    cd ../
    tar -cvzf php-5.7.0.tar.gz php-5.7.0
     
  16. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    Yes , I git clone git clone https://git.php.net/repository/php-src.git php-5.7.0
    Code:
    [root@server1 centmin-v1.2.3mod]# cd /svr-setup/
    [root@server1 svr-setup]# rm -rf php-5.7.0/
    [root@server1 svr-setup]# git clone https://git.php.net/repository/php-src.git php-5.7.0
    Initialized empty Git repository in /svr-setup/php-5.7.0/.git/
    remote: Counting objects: 571647, done.
    remote: Compressing objects: 100% (118977/118977), done.
    remote: Total 571647 (delta 455650), reused 566753 (delta 451370)
    Receiving objects: 100% (571647/571647), 136.96 MiB | 6.05 MiB/s, done.
    Resolving deltas: 100% (455650/455650), done.
    You have new mail in /var/spool/mail/root
    [root@server1 svr-setup]# cd /usr/local/src/centmin-v1.2.3mod/
    [root@server1 centmin-v1.2.3mod]# ./centmin.sh
    Code:
    Enter option [ 1 - 22 ] 5
    --------------------------------------------------------
    Custom configure CSF settings...set
    
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    
    PHP Upgrade - Would you like to continue? [y/n] y
    
    Install which version of PHP? (version i.e. 5.4.30): 5.7.0
    Do you want to update to latest php-fpm.conf ? It will overwrite your existing php-fpm.conf [y/n]: n
    [​IMG]

    [​IMG]

    [​IMG]
    Code:
    s.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick_helpers.c -o imagick_helpers.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /svr-setup/imagick-3.1.2/imagick.c -o imagick.lo
    /svr-setup/imagick-3.1.2/imagick_helpers.c: In function âphp_imagick_validate_mapâ:
    /svr-setup/imagick-3.1.2/imagick_helpers.c:153: warning: initialization discards qualifiers from pointer target type
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I/usr/include -I. -I/svr-setup/imagick-3.1.2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /svr-setup/imagick-3.1.2/imagick.c  -fPIC -DPIC -o .libs/imagick.o
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=link ccache gcc -DPHP_ATOM_INC -I/svr-setup/imagick-3.1.2/include -I/svr-setup/imagick-3.1.2/main -I/svr-setup/imagick-3.1.2 -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /svr-setup/imagick-3.1.2/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -lMagickWand -lMagickCore
    ccache gcc -shared  .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o  -lMagickWand -lMagickCore  -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
    creating imagick.la
    (cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la)
    /bin/sh /svr-setup/imagick-3.1.2/libtool --mode=install cp ./imagick.la /svr-setup/imagick-3.1.2/modules
    cp ./.libs/imagick.so /svr-setup/imagick-3.1.2/modules/imagick.so
    cp ./.libs/imagick.lai /svr-setup/imagick-3.1.2/modules/imagick.la
    PATH="$PATH:/sbin" ldconfig -n /svr-setup/imagick-3.1.2/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /svr-setup/imagick-3.1.2/modules
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    
    Build complete.
    Don't forget to run 'make test'.
    
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131227/
    Installing header files:          /usr/local/include/php/
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    *************************************************
    * imagick PHP installed
    *************************************************
    igbinary.ini
    sed: -e expression #1, char 0: no previous regular expression
    imagick.ini
    sed: -e expression #1, char 0: no previous regular expression
    memcached.ini
    sed: -e expression #1, char 0: no previous regular expression
    memcache.ini
    sed: -e expression #1, char 0: no previous regular expression
    zendopcache.ini
    sed: -e expression #1, char 0: no previous regular expression
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    *************************************************
    
    Wed Jul 23 16:27:47 ICT 2014
    Success: PHP was installed properly
    
    *************************************************
    ***************************************************
    * PHP upgraded and auto reinstalled PHP extensions
    ***************************************************
    
    ccache stats:
    cache directory                     /home/.ccache
    cache hit (direct)                  8760
    cache hit (preprocessed)            1896
    cache miss                          6372
    called for link                      611
    called for preprocessing             806
    compile failed                       321
    preprocessor error                   302
    bad compiler arguments               193
    unsupported source language           57
    autoconf compile/link               2775
    unsupported compiler option           70
    no input file                        345
    files in cache                     13271
    cache size                         489.8 Mbytes
    max cache size                       2.0 Gbytes
    [​IMG]


    I send you my edit 2 files centmin.sh , php_configure.inc
     

    Attached Files:

    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    thanks @hungphutho picked one change i forgot in centmin.sh but it's related to ZOPCACHEDFT=y variable so not sure that would cause problems. But will check

    also noticed you didn't checkout the branch at all just git clone ?
    Code:
    git branch phpng origin/phpng
    git checkout phpng
    edit: looks like if i DO NOT checkout the branch, PHP 5.7.0 is compiling the PHP extensions !!!!!

    Code:
    php -v
    PHP 5.7.0-dev (cli) (built: Jul 23 2014 10:34:31)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    phpng_centminmod_working.png

    benchmarks

    Code:
    php-5.7.0]# php Zend/bench.php
    simple             0.202
    simplecall         0.099
    simpleucall        0.104
    simpleudcall       0.107
    mandel             0.246
    mandel2            0.279
    ackermann(7)       0.114
    ary(50000)         0.019
    ary2(50000)        0.016
    ary3(2000)         0.154
    fibo(30)           0.324
    hash1(50000)       0.030
    hash2(500)         0.035
    heapsort(20000)    0.074
    matrix(20)         0.078
    nestedloop(12)     0.175
    sieve(30)          0.083
    strcat(200000)     0.011
    ------------------------
    Total              2.150
    Code:
    php-5.7.0]# php Zend/micro_bench.php
    empty_loop         0.180
    func()             0.316    0.135
    undef_func()       0.321    0.141
    int_func()         0.262    0.082
    $x = self::$x      0.311    0.131
    self::$x = 0       0.213    0.032
    isset(self::$x)    0.206    0.025
    empty(self::$x)    0.217    0.037
    $x = Foo::$x       0.200    0.019
    Foo::$x = 0        0.192    0.012
    isset(Foo::$x)     0.182    0.002
    empty(Foo::$x)     0.198    0.018
    self::f()          0.349    0.168
    Foo::f()           0.326    0.145
    $x = $this->x      0.206    0.026
    $this->x = 0       0.273    0.092
    $this->x += 2      0.214    0.033
    ++$this->x         0.204    0.023
    --$this->x         0.193    0.012
    $this->x++         0.235    0.054
    $this->x--         0.225    0.045
    isset($this->x)    0.207    0.026
    empty($this->x)    0.226    0.046
    $this->f()         0.373    0.193
    $x = Foo::TEST     0.217    0.036
    new Foo()          0.642    0.462
    $x = TEST          0.168    -0.012
    $x = $_GET         0.232    0.051
    $x = $GLOBALS['v'] 0.337    0.156
    $x = $hash['v']    0.222    0.042
    $x = $str[0]       0.308    0.127
    $x = $a ?: null    0.195    0.015
    $x = $f ?: tmp     0.278    0.098
    $x = $f ? $f : $a  0.203    0.023
    $x = $f ? $f : tmp 0.279    0.099
    ------------------------
    Total              8.908
     
    Last edited: Jul 23, 2014
    • Like Like x 1
  18. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    2:19 AM
    1.7.2
    Percona 5.6
    Yes .
    I'm didn't checkout the branch
     
    • Like Like x 1
  19. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    So glad you were testing as well as troubleshooting this would of taken a while - must be something wrong with the code in that specific branch ?

    Anyway, I'm happy that Centmin Mod .08 betas at least have basic PHP 5.6 and PHP NG (5.7) support foundation ready :D
     
    • Like Like x 1
  20. eva2000

    eva2000 Administrator Staff Member

    27,179
    6,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,154
    Local Time:
    5:19 AM
    Nginx 1.13.x
    MariaDB 5.5