lamdira

Registered
Jun 1, 2020
1
1
3
maroc
cPanel Access Level
Website Owner
Hello
i upload a photo but not appear
I lost more of 6 hours in this ...
I restart APACHE many times....
run many commands...

i tried to install Imagick PHP Extension
i used :
1) On WHM/cpanel
Home »Software »Module Installers
2) PHP Pecl
3) i Selected PHP version (7.3) and apply
4) On the “install a PHP Pecl” box type “imagick” without the quotes and click install now.
5 ) I added a code # extension=imagick.so # to php.ini
6 ) i restarted PHP-FPM service for Apache and Httpd
But still i can't upload PHOTOS

I used too SSH
# yum remove ImageMagick
# yum --enablerepo=remi install ImageMagick6-devel

# /scripts/restartsrv_apache_php_fpm
# /scripts/restartsrv_httpd




NGINX:
[[email protected] ~]# ls -lah /opt/cpanel/ea-php73/root/usr/lib64/php/modules
total 11M
drwxr-xr-x 2 root root 4.0K Jun  1 18:07 .
drwxr-xr-x 4 root root 4.0K May 31 13:33 ..
-rwxr-xr-x 1 root root  32K May 21 03:40 bcmath.so
-rwxr-xr-x 1 root root  32K May 21 03:40 calendar.so
-rwxr-xr-x 1 root root  16K May 21 03:40 ctype.so
-rwxr-xr-x 1 root root  98K May 21 03:40 curl.so
-rwxr-xr-x 1 root root 161K May 21 03:40 dom.so
-rwxr-xr-x 1 root root 5.2M May 21 03:40 fileinfo.so
-rwxr-xr-x 1 root root  61K May 21 03:40 ftp.so
-rwxr-xr-x 1 root root 378K May 21 03:40 gd.so
-rwxr-xr-x 1 root root  41K May 21 03:40 iconv.so
-rw-r--r-- 1 root root 1.2M Jun  1 05:10 imagick.so
-rwxr-xr-x 1 root root  94K May 21 03:40 imap.so
-rwxr-xr-x 1 root root  44K May 21 03:40 json.so
-rwxr-xr-x 1 root root 1.6M May 21 03:40 mbstring.so
-rwxr-xr-x 1 root root 135K May 21 03:40 mysqli.so
-rwxr-xr-x 1 root root 253K May 21 03:40 mysqlnd.so
-rwxr-xr-x 1 root root  32K May 21 03:40 pdo_mysql.so
-rwxr-xr-x 1 root root 110K May 21 03:40 pdo.so
-rwxr-xr-x 1 root root  29K May 21 03:40 pdo_sqlite.so
-rwxr-xr-x 1 root root 268K May 21 03:40 phar.so
-rwxr-xr-x 1 root root  37K May 21 03:40 posix.so
-rwxr-xr-x 1 root root  53K May 21 03:40 simplexml.so
-rwxr-xr-x 1 root root  90K May 21 03:40 sockets.so
-rwxr-xr-x 1 root root  53K May 21 03:40 sqlite3.so
-rwxr-xr-x 1 root root  20K May 21 03:40 tokenizer.so
-rwxr-xr-x 1 root root  32K May 21 03:40 wddx.so
-rwxr-xr-x 1 root root  33K May 21 03:40 xmlreader.so
-rwxr-xr-x 1 root root  83K May 21 03:40 xmlrpc.so
-rwxr-xr-x 1 root root  53K May 21 03:40 xml.so
-rwxr-xr-x 1 root root  49K May 21 03:40 xmlwriter.so
-rwxr-xr-x 1 root root  33K May 21 03:40 xsl.so
-rwxr-xr-x 1 root root 136K May 21 03:40 zip.so
System : Apache 2.4, PHP 7.3, Cent OS 7 (64 Bit)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
5 ) I added a code # extension=imagick.so # to php.ini
This step is unnecessary modules are loaded through include files, and adding anything with a # in front of it is seen as a comment so it wouldn't have worked this way. Furthermore, you're installing the wrapper (magick) to the ImageMagick library, not actual ImageMagick when installing the PHP PECL module. There is a tutorial on how to install ImageMagick itself here: Tutorial - How to Install ImageMagick for EA-PHP and ALT-PHP

You need both to use ImageMagick. Since you've already done the parts for Imagick you can ignore those steps in the tutorial.