Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Warning: Module already loaded

Discussion in 'General Discussion' started by upsforum, Oct 30, 2017.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    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"
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    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
     
  4. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    166
    I commented row in /usr/local/lib/php.ini
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  6. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    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
     
Loading...

Share This Page