How to install PHP pecl redis extension on cPanel with PHP 5.6 / PHP 7.0

GeeksAlive

TheGeeksAlive is all about Linux, Server Administration, Web Hosting and other Open Source Technologies.

You may also like...

  • When running phpize I get command not found.

    It is an almost fresh install of cPanel (just CSF/LFD and custom backup script added).

    What do I do?

    • OK, phpize should be:

      /opt/cpanel/ea-php56/root/usr/bin/phpize

      However, make command still results in error:

      make: *** No targets specified and no makefile found. Stop.

      Do you know how to solve it?

      Thanks!

      • Good to see that you have found the solution for phpize. Edited the post accordingly. Regarding the error “make: *** No targets specified and no makefile found. Stop.”, it happens when you did not execute the ./configure command. Once you execute “./configure”, please check and make sure that the file “Makefile” is created under the folder.

        • See my other reply.

          One must run ./configure exactly as I illustrated. Otherwise it won’t be possible to be successful.

          • Yes, the configure command has to be specific. Once the ./configure went well, you will be able to execute “make”.
            Thanks for letting me know that the issue resolved.

    • Before make one must run:

      ./configure –with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config