PHP Warning: Module 'imagick' already loaded in Unknown on line 0
After a lot of upgrades in software over the last few days, are getting the error PHP warning: Module 'imagick' already loaded in Unknown on line 0.
I read the post about this error posted Dec 16, 2017,
This file does not exist : "/opt/cpanel/ea-php56/root/etc/php.d/imagick.ini"
This is on VPS hosted server and all their tier 3 support does is say it's fix when all they have actually done is disabled imagick and shutdown the server because imagick is relied on heavily.
I see in one of the files, stated in that post #18 about disabling imagick.so, That is in there but not in the place I expected it be.
It listed in the line before [p h p]".
The techs that were suppose to be fixing this problem seemed to be shotgunning what ever they thought would fix it.
That's why the web sites were being shutdown.
I do not trust them to fix the problem, so would like some direction on this and i will go in and edit the files required.
Thank you,
Joseph
cPanel Version 82.0 (build 14)
Apache Version 2.4.41
PHP Version 5.6.40
MySQL Version 5.6.45[/php]
-
Just a thought, could be similar issue I posted here: #18 of that one, seems to be my problem. But without knowing what is suppose to be or how restore this "opt/cpanel/ea-php56/root/etc/php.d/imagick.ini" I can't just go in and hope for best. server has already been shutdown 3 times with cacloud support 'fixing' it. Told them not to do anything to it again.
0 -
Are you running CentOS or CloudLinux? PHP extension if running CloudLinux are in a different location. When Imagick is installed on PHP 5.6 files for it are placed here: Build process completed successfully Installing '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' Installing '/opt/cpanel/ea-php56/root/usr/include/php/ext/imagick/php_imagick_shared.h' install ok: channel://pecl.php.net/imagick-3.4.4 Extension imagick enabled in php.ini
It's a PECL extension and it's not going to be displayed /opt/cpanel/ea-php56/root/etc/php.d You can confirm it's installed by running something like the following (if you're running PHP 5.6)/opt/cpanel/ea-php56/root/usr/bin/php -m |grep imagick imagick
For the issue you're experiencing, that error message means in an .ini file that's being loaded there is the following:extension=imagick.so
. The only file this should be present in is the following:[root@server php.d]# cat /opt/cpanel/ea-php56/root/etc/php.d/zzzzzzz-pecl.ini extension="imagick.so"
I'd suggest looking within the account that is triggering it at any files with the .ini extension0 -
Are you running CentOS or CloudLinux? PHP extension if running CloudLinux are in a different location. When Imagick is installed on PHP 5.6 files for it are placed here:
Build process completed successfully Installing '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' Installing '/opt/cpanel/ea-php56/root/usr/include/php/ext/imagick/php_imagick_shared.h' install ok: channel://pecl.php.net/imagick-3.4.4 Extension imagick enabled in php.ini
It's a PECL extension and it's not going to be displayed /opt/cpanel/ea-php56/root/etc/php.d You can confirm it's installed by running something like the following (if you're running PHP 5.6)/opt/cpanel/ea-php56/root/usr/bin/php -m |grep imagick imagick
For the issue you're experiencing, that error message means in an .ini file that's being loaded there is the following:extension=imagick.so
. The only file this should be present in is the following:[root@server php.d]# cat /opt/cpanel/ea-php56/root/etc/php.d/zzzzzzz-pecl.ini extension="imagick.so"
I'd suggest looking within the account that is triggering it at any files with the .ini extension
The server was upgraded over the weekend to : EasyApache 2.4.41 MySQL 5.6.43 cPanel 82.0 (build 14) PHP 5.6.40 Shows installed, in red letters if that has any meaning/opt/cpanel/ea-php56/root/usr/bin/php -m |grep imagick imagick
This file is empty, nothing in it.[root@server php.d]# cat /opt/cpanel/ea-php56/root/etc/php.d/zzzzzzz-pecl.ini extension="imagick.so"
After this upgrade 'imagick' did not run. support at cacloud got it to run, but with the error as listed. every change they made either stop imagik from running, which caused the web site to quit running, or just didn't stop the errors from accumulating. They still have not fix all the segfaults that are being produced after the upgrades. Have told them not to touch it in any way as all they do cause the web sites (2) to shutdown.0 -
@Nicor I think at this point, especially since you're indicating that you're segfaulting it might be best to open a support ticket with us. You can get instructions on how to do this in the link in my signature. Once the ticket is open please add the Ticket ID so that I can update this thread with the outcome. Thanks! 0
Please sign in to leave a comment.
Comments
5 comments