PHP Warning: Module already loaded

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
I migrated vps to EA4 and installed mailparse 2.1.6 for php 5.6, the problem is that I receive on all accounts error_log this message:

PHP Warning: Module 'mailparse' already loaded in Unknown on line 0

I commented row but not solved
;extension="mailparse.so"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Can you let us know the full steps and paths you used to install the module, and which file you commented that line from?

Thank you.
 

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
after I migrated to EA4 I have installed mailparse (2.1.6) with PECL install module from WHM, I don't installed last version of mailparse why is incompatible with php 5.6
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You should be able to browse "WHM >> Module Installers >> PHP Pecl", select PHP version 5.6, and then uninstall the module under "Installed PHP Pecl(s)". Otherwise, if manually removing it from the php.ini, you'd need to remove that line from the correct php.ini file. In EasyApache 4, the correct path for PHP 5.6 is:

Code:
/opt/cpanel/ea-php56/root/etc/php.ini
Also, please see this document:

How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation

Thank you.
 

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
I keep in /opt/cpanel/ea-php56/root/etc/php.d/mailparse.ini and commented in /usr/local/lib/php.ini and in /opt/cpanel/ea-php56/root/etc/php.ini, work fine now