Wow, I'm losing my mind over here.. if this post needs to be moved to it's own thread, mods, I'm fine with that.. but it's on almost the same exact topic.
PHP Warning: Module 'imagick' already loaded in Unknown on line 0 is happening with my HelpDesk scripts when a user sends an email to my support address (which is piped for my helpdesks) and also filling up the error_log file within the script folders each time a user emails support.
This started yesterday right after I installed ImageMagick on my severs via WHM > Software > Module Installers > PHP Pecl and it was successful - made customers who requested imagick on those servers happy.
But ever since then, the two helpdesk scripts I run are sending the following message to any user who emails my helpdesk support email address:
Code:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/example/public_html/xx/admin/pipe.php
generated by [email protected]
The following text was generated during the delivery attempt:
------ pipe to |/home/example/public_html/xx/admin/pipe.php
generated by [email protected] ------
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
Action: failed
Final-Recipient: rfc822;|/home/example/public_html/xx/admin/pipe.php
Status: 5.0.0
(Naturally I replaced the user / domain with example for security reasons in the message above).
The email, however, DOES come through to me and DOES create the ticket in my HelpDesks, and correspondence between me and users still works.
So found this thread here this morning with the work-around kindly provided in
PHP Warning: Module already loaded in Unknown on line 0 above, and I performed these steps:
Via SSH, I did the following:
1. Since only the native PHP 5.6 is where I've implemented imagick , I created:
/opt/cpanel/ea-php56/root/etc/php.d/imagick.ini
extension="imagick.so"
2. Edited /usr/local/lib/php.ini to comment-out extension="imagick.so"
3. restarted apache and ran cagefsctl --force-update (since I'm running CloudLinux , EA4, WHM 68 "Release"
Problem still existed, so I:
4. Edited /opt/cpanel/ea-php56/root/etc/php.ini to comment-out extension="imagick.so" there as well.
5. Did the cagefsctl --force-update and apache restart routine again.
Problem still exists.
I thought I had covered all my bases at that point, following the work-around instructions from both this thread and another similar one where the poster mentioned they commented-out the extension in both Global and EA ini files, and just have the module loading from /opt/cpanel/ea-php56/root/etc/php.d/imagick.ini
I checked phpInfo , php -v , php -m , and everything looks fine. Imagick is showing in phpInfo as loading from /opt/cpanel/ea-php56/root/etc/php.d/imagick.ini and imagick is working correctly for users.
Still the problem exists, so just for good measure I restated CSF/LFD
Still the problem persists...
The emails come through fine, they create tickets in the helpdesk scripts, but every user who emails my support address gets that dreaded "message could not be delivered, PHP Warning: Module 'imagick' already loaded in Unknown on line 0" warning detailed above.
Can anyone please tell me what I've overlooked here? Have I somehow missed a step?
I did the same thing that worked for a few other folks in this thread and now losing my mind because as you all know, this time of year, support requests start coming in heavy.
I'm grateful for any assistance, please and thank you!