Skip to main content

cannot install PECL PHPRedis with PHP 5.6

Comments

8 comments

  • syslint
    Hello, You can install the pecl redis extension manually using the phpize command . You may download the source files from PECL :: Package :: redis
    0
  • twhiting9275
    from SSH (as root)
    mkdir ~/redis cd ~/redis wget https://pecl.php.net/get/redis-2.2.8.tgz tar zxpf redis* cd redis* phpize make make install
    Then edit your php.ini file (/usr/local/lib/php.ini) and add
    extension="redis.so"
    near the other extensions Unfortunately, since you don't have php 7 on your server, it's going to be a manual compile, unless you can figure out a way to get PECL to install an old version
    0
  • Greg M
    from SSH (as root)
    mkdir ~/redis cd ~/redis wget https://pecl.php.net/get/redis-2.2.8.tgz tar zxpf redis* cd redis* phpize make make install
    Then edit your php.ini file (/usr/local/lib/php.ini) and add
    extension="redis.so"
    near the other extensions Unfortunately, since you don't have php 7 on your server, it's going to be a manual compile, unless you can figure out a way to get PECL to install an old version

    Thank you for this, however I ran into an issue, please see below:
    [root@server redis]# wget https://pecl.php.net/get/redis-2.2.8.tgz --2016-06-17 16:11:23-- https://pecl.php.net/get/redis-2.2.8.tgz Resolving pecl.php.net... 104.236.228.160 Connecting to pecl.php.net|104.236.228.160|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 192131 (188K) [application/octet-stream] Saving to: `redis-2.2.8.tgz' 100%[==========================================================>] 192,131 521K/s in 0.4s 2016-06-17 16:11:23 (521 KB/s) - `redis-2.2.8.tgz' saved [192131/192131] [root@server redis]# tar zxpf redis* [root@server redis]# cd redis* [root@server redis-2.2.8]# phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 [root@server redis-2.2.8]# make make: *** No targets specified and no makefile found. Stop. [root@server redis-2.2.8]# make install make: *** No rule to make target `install'. Stop.
    I'm not really sure what I should do here EDIT UPDATE: I figured out that I needed to add the ./configure part before make so thank you to both for your comments I now have this installed and seems to be working !
    0
  • twhiting9275
    Yikes! So sorry I forgot to add the configure command, my bad!
    0
  • cPanelMichael
    Hello, I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • Brent Dacus
    Is this a supported way to install Pecl items. Could fix my Imagick issue if it is.
    0
  • twhiting9275
    Is this a supported way to install Pecl items. Could fix my Imagick issue if it is.

    You can always install PECL items from the shell, should never have a problem doing so.
    0
  • cPanelMichael
    Is this a supported way to install Pecl items. Could fix my Imagick issue if it is.

    Hello, The manual installation method should work for any PECL module, however free to open a separate thread for the issue with Imagick if you require assistance with the installation. It's generally helpful to address issues where cPanel/WHM is not functioning as expected through a bug report or feature request. Thank you.
    0

Please sign in to leave a comment.