Join the community today
Become a Member

PHP-FPM Minor version upgrade

Discussion in 'Install & Upgrades or Pre-Install Questions' started by trxerz, Dec 11, 2015.

  1. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Hi,
    I don't see any option to upgrade PHP (and also MariaDB) to minor version, like from 5.6.15 to 5.6.16 (or MariaDB 10.0.21 to 10.0.22).
    Can anyone show me how to do that?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Hi George,
    I tried to update PHP today, from 5.6.15 to 5.6.16 via centmin.sh option 5. [PHP Upgrade / Downgrade].
    Sadly, it always failed with this error message.

     
  4. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    need the full php upgrade log from /root/centminlogs post to pastebin.com or gist.github.com
     
  5. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
  6. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    Code:
    checking whether the C compiler works... no
    configure: error: in `/svr-setup/php-5.6.16/fpm-build':
    configure: error: C compiler cannot create executables
    missing C compiler it seems.. did you uninstall some yum packages recently ?
     
  7. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    No,
    Will running "yum -y update" could trigger this issue?
     
  8. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    nope shouldn't have, i always run yum update too
     
  9. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Will option 21 "Update PHP Nginx Siege" able to solve this ?
     
  10. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nope probably not.. 1st thing I'd do is update to latest copy of 123.08stable via centmin.sh menu option 23 submenu options 1 and then 2 or if you previously ran submenu option 1, just run submenu option 2

    As per Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS

    Then afterwards run centmin.sh menu option 5, and when asked for yum checks answer = y for yes to ensure all yum packages required are installed.
     
  11. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    this is the same section of a working PHP 5.6.16 test upgrade I just did
    Code:
    Forcing buildconf
    Removing configure caches
    buildconf: checking installation...
    buildconf: autoconf version 2.63 (ok)
    make: *** No rule to make target `clean'.  Stop.
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --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=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --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
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether ccache /usr/bin/gcc accepts -g... yes
    checking for ccache /usr/bin/gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache /usr/bin/gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache /usr/bin/gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... ccache /usr/bin/gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking whether ln -s works... yes
    checking for system library directory... lib64
    checking whether to enable runpaths... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for gawk... gawk
    checking for bison... bison -y
    checking for bison version... 2.4 (ok)
    checking for re2c... re2c
    checking for re2c version... 0.14.3 (ok)
    checking whether to enable computed goto gcc extension with re2c... no
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking for pthreads_cflags... -pthread
    checking for pthreads_lib... 
     
  12. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    I've done that, but now I got 500 error when accessing domains :D
     
  13. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    and the new php upgrade log contents ? definitely something wrong with your setup IIRC you had numerous issues reported prior here ?
     
  14. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Nope, I just want to upgrade my PHP.
    There's a way to re-install the missing C compiler?

    It's an Amazon EC2 instance, giving so much trouble, LOL.
     
  15. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    what do you get for output for
    Code:
    yum -q list installed glibc* gcc
     
  16. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Here's the results:
    Code:
    gcc.x86_64                                                                            4.4.7-16.el6                                                                         @base             
    glibc.x86_64                                                                          2.12-1.166.el6_7.3                                                                   @CentOS6-Updates/6.7
    glibc-common.x86_64                                                                   2.12-1.166.el6_7.3                                                                   @CentOS6-Updates/6.7
    glibc-devel.x86_64                                                                    2.12-1.166.el6_7.3                                                                   @updates           
    glibc-headers.x86_64                                                                  2.12-1.166.el6_7.3                                                                   @updates
    
     
  17. eva2000

    eva2000 Administrator Staff Member

    31,009
    6,922
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,428
    Local Time:
    5:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks okay to me so not sure why your Amazon EC2 instance is being such a pain heh

    maybe time to look into Linode :D
     
  18. trxerz

    trxerz Member

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    7:41 PM
    Glad it's free instances :D
    Launch new instance now.

    Lesson learned "If it ain't broken, then don't fix it!".
     
    • Like Like x 1