Join the community today
Become a Member

Install 123.09beta01 betainstaller7.sh redis php issue

Discussion in 'Install & Upgrades or Pre-Install Questions' started by churchill, Jul 8, 2016.

  1. churchill

    churchill New Member

    23
    6
    3
    Sep 25, 2014
    Ratings:
    +6
    Local Time:
    3:53 AM
    hello,

    If i use betainstaller7 on a fresh install centos7 on my vps.
    It is unable to load redis on php 7.0.8.
    will it help to go to 7.0.7?

     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
  3. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Hi I moved your post to it's own thread for troubleshooting.

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    This log will help us figure out what the problem is as PHP 7.0.8 should be able to install redis php extension
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    I thought the user ask if he can use it and not that he has issues with it :(
    Sorry.... Bad reply :(

    If you want delete all my posts here.
     
  5. churchill

    churchill New Member

    23
    6
    3
    Sep 25, 2014
    Ratings:
    +6
    Local Time:
    3:53 AM
    yes thank you for moving it and for the quick reply.

    i already removed the os, so i'm reinstalling.
    If i get the error again i will post the logs
     
  6. churchill

    churchill New Member

    23
    6
    3
    Sep 25, 2014
    Ratings:
    +6
    Local Time:
    3:53 AM
    So i have the error again.
    It is a fresh install with centos 7 and beta .09 beta01 i used betainstaller7 on a VPS.
    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh
    my log:
    centminmod_1.2.3-eva2000.09.001_080716-021939_install.log · GitHub

    Error:
    Code:
    # php -v
    
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 7.0.8 (cli) (built: Jul  8 2016 00:31:54) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.8, Copyright (c) 1999-2016, by Zend Technologies
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Thanks from the initial install log seems phpredis tarball failed to download or extract so compile routine couldn't find the extracted directory - will see what went wrong with download
    Code (Text):
    redisinstall
    *************************************************
    [1;32;40m* Installing redis PHP extension
    (B[m*************************************************
    Downloading redis PHP extension...
    [1;33;40mCheck if phpredis-3.0.0.tgz exists
    (B[m[1;32;40mCompiling PHP redis-3.0.0 extension for PHP 7.x ...
    (B[m/svr-setup
    cd /svr-setup
    /svr-setup
    cd /svr-setup
    inc/redis.inc: line 95: cd: /svr-setup/phpredis-3.0.0: No such file or directory
    Cannot find config.m4.
    Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
    
    inc/redis.inc: line 104: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    grep: /etc/centminmod/php.d/redis.ini: No such file or directory
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what's output for this command
    Code (Text):
    ls -lAhrt /svr-setup/ | grep redis
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @churchill thanks for bug report, i believe i have fixed with this commit to 123.09beta01 code Beta Branch - fix phpredis php 7 check routine for 123.09beta01 | Centmin Mod Community

    Just update centmin mod 123.09beta01 branch via centmin.sh menu option 23 submenu option 2 and then just run centmin.sh menu option 13 to reinstall redis php extension

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    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.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 


    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  10. churchill

    churchill New Member

    23
    6
    3
    Sep 25, 2014
    Ratings:
    +6
    Local Time:
    3:53 AM
    Code:
    # ls -lAhrt /svr-setup/ | grep redis
    drwxr-xr-x.  3  1001 games  4.0K Apr  3  2012 ngx_http_redis-0.3.7
    -rw-r--r--.  1 root  root   135K May 31  2015 phpredis-2.2.7.tgz
    -rw-r--r--.  1 root  root    12K May 31  2015 lua-redis-parser_v0.10.tar.gz
    -rw-r--r--.  1 root  root    12K Jul 26  2015 ngx_http_redis-0.3.7.tar.gz
    drwxrwxr-x.  6 root  root   4.0K May 15 23:15 redis2-nginx-module-0.13
    -rw-r--r--.  1 root  root    27K May 19 11:48 redis2-nginx-module_v0.13.tar.gz
    -rw-r--r--.  1 root  root    18K May 27 04:40 lua-resty-redis_v0.24.tar.gz
    -rw-r--r--.  1 root  root   192K Jun  8 01:50 phpredis-3.0.0-rc1.tgz
    drwxrwxr-x.  5 root  root   4.0K Jun  8 20:07 phpredis-2.2.8
    -rw-r--r--.  1 root  root   194K Jun 21 10:12 phpredis-2.2.8.tgz
    -rw-r--r--.  1 root  root   192K Jun 21 10:12 phpredis-3.0.0.tgz
     
  11. churchill

    churchill New Member

    23
    6
    3
    Sep 25, 2014
    Ratings:
    +6
    Local Time:
    3:53 AM
    i tried it, and it is fixed.
    Code:
    # php -v
    PHP 7.0.8 (cli) (built: Jul  8 2016 00:31:54) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.8, Copyright (c) 1999-2016, by Zend Technologies
    
    Really thanks!!
    you are fast
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  13. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you're welcome - you just helped improved centmin mod 123.09beta01 beta that little bit more - makes it that much better when stable release comes :D