Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Installing php 7.2 concerns

Discussion in 'EasyApache' started by PabloC, Nov 8, 2018.

  1. PabloC

    PabloC Well-Known Member

    Joined:
    Mar 24, 2015
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    I have a dedicated server with cPanel and EasyApache 4

    borrarapach.jpg

    Now I want to add php 7.2

    I am no expert, so I would like to know if I need to hire an expert to do it, or if following the instructions I can add php 7.2 by myself.

    borrarphp.jpg

    Could anyone advice me on this matter?

    Thanks!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @PabloC

    You shouldn't need an expert to do this. Actually, once you select enable for PHP 7.2 EasyApache will automatically add dependencies as well as recompile apache for you. If you have any trouble though please let us know!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PabloC

    PabloC Well-Known Member

    Joined:
    Mar 24, 2015
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Thanks!

    It seems to be that I have done it!

    72.jpg

    What do I have to do now? restart Apache? anything else? Can I move sites to 7.2 right away?

    Thank you!
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @PabloC


    You shouldn't have to do anything else! EasyApache4 should have taken care of anything potentially needing done for you. The only thing I would ensure before moving to PHP 7.2 is that you have all the necessary PHP extensions installed on PHP 7.2. You may want to mimic the extensions you have installed on other versions of PHP.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    PabloC likes this.
  5. PabloC

    PabloC Well-Known Member

    Joined:
    Mar 24, 2015
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Everything went perfectly, and I have installed the extensions I needed, and I already have 4 sites running on PHP 7.2

    One last question: I need to install the extension for ImageMagick, and it is not on EasyApache's list.

    Could you be so kind as to tell me where to look for?

    Thanks so much!
     
    cPanelLauren likes this.
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    906
    Likes Received:
    347
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Disclaimer: I don't use, or have installed ImageMagic for EA-4 (I use Cloudlinux and imagick appears to be installed by default for the Alt-PHP versions) - the following informations is from articles on this forum (search for imagick), and what I have found by using a search engine, so research the installation until you feel confident to perform it.

    I believe you will need to install the imagick through the PHP Pecl installer

    WHM >> Software >> Module Installers >> “PHP Pecl” Installer >> select the PHP version you want it for > search for imagick and install

    You might find some tips in the threads Installing PHP ImageMagick, and carefully read @cPanelMichael posts from SOLVED - Installing Imagick CentOS 7 if it applies to you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. PabloC

    PabloC Well-Known Member

    Joined:
    Mar 24, 2015
    Messages:
    48
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Mar del Plata - Argentina
    cPanel Access Level:
    Website Owner
    Thanks rpvw!

    I am trying, but I have been so far unable to install it.

    This is what I get: in the final lines it tells me that there's something missing, but I don't know what is it. I would appreciate if you could give me a hand with it.


    downloading imagick-3.4.3.tgz ...
    Starting to download imagick-3.4.3.tgz (245,410 bytes)
    .............done: 245,410 bytes
    19 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20170718
    Zend Module Api No: 20170718
    Zend Extension Api No: 320170718
    Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-rootXIbIMd/imagick-3.4.3
    running: /root/tmp/pear/imagick/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --with-imagick
    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 for cc... cc
    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 cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    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 for PHP prefix... /opt/cpanel/ea-php72/root/usr
    checking for PHP includes... -I/opt/cpanel/ea-php72/root/usr/include/php -I/opt/cpanel/ea-php72/root/usr/include/php/main -I/opt/cpanel/ea-php72/root/usr/include/php/TSRM -I/opt/cpanel/ea-php72/root/usr/include/php/Zend -I/opt/cpanel/ea-php72/root/usr/include/php/ext -I/opt/cpanel/ea-php72/root/usr/include/php/ext/date/lib
    checking for PHP extension directory... /opt/cpanel/ea-php72/root/usr/lib64/php/modules
    checking for PHP installed headers prefix... /opt/cpanel/ea-php72/root/usr/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking for pkg-config... /bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/root/tmp/pear/imagick/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --with-imagick' failed
     
  8. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    906
    Likes Received:
    347
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  9. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @PabloC


    Please do let us know if the suggestion by @rpvw was a solution to the issues you had installing ImageMagick
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice