PabloC

Well-Known Member
Mar 24, 2015
58
3
58
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!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
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!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
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.
 
  • Like
Reactions: PabloC

PabloC

Well-Known Member
Mar 24, 2015
58
3
58
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!
 
  • Like
Reactions: cPanelLauren

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
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
 

PabloC

Well-Known Member
Mar 24, 2015
58
3
58
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