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.

mcrypt.so is missing

Discussion in 'General Discussion' started by AviMoto, Jul 22, 2012.

  1. AviMoto

    AviMoto Member

    Joined:
    Feb 28, 2012
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I try to run ZF2 on Centos 5 with Cpanel installed on it :
    I get this error in error_log
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    I run command :
    Code:
    locate mcrypt.so
    
    /opt/libmcrypt/lib/libmcrypt.so
    /opt/libmcrypt/lib/libmcrypt.so.4
    /opt/libmcrypt/lib/libmcrypt.so.4.4.8
    /usr/local/cpanel/3rdparty/lib/libmcrypt.so
    /usr/local/cpanel/3rdparty/lib/libmcrypt.so.4
    /usr/local/cpanel/3rdparty/lib/libmcrypt.so.4.4.8
    /usr/local/cpanel/lib/libmcrypt.so.4
    /usr/local/cpanel/src/3rdparty/gpl/libmcrypt-2.5.8/lib/.libs/libmcrypt.so
    /usr/local/cpanel/src/3rdparty/gpl/libmcrypt-2.5.8/lib/.libs/libmcrypt.so.4
    /usr/local/cpanel/src/3rdparty/gpl/libmcrypt-2.5.8/lib/.libs/libmcrypt.so.4.4.8
    
    as you can see no mcrypt.so, but when I checkd PHP installed modules
    Code:
     php -m
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    curl
    date
    dom
    ereg
    filter
    ftp
    gd
    gettext
    hash
    iconv
    imap
    json
    libxml
    mbstring
    [b]mcrypt[/b]
    mysql
    openssl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    Reflection
    session
    SimpleXML
    sockets
    SPL
    SQLite
    sqlite3
    standard
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlwriter
    Zend Debugger
    zlib
    
    [Zend Modules]
    Zend Debugger
    
    
    mcrypt is here.

    Do someone know how to fix it?
     
  2. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    On The Road
    cPanel Access Level:
    Root Administrator
    Hello,

    CAn you make sure that mcrypt is installed in easyapache. You can check this in WHM>> Software >> EasyApache (Apache Update)

    On the "Profile" page click "Start customizing based on profile"
    On the "Apache Version" page click "Next Step"
    On the "PHP Version" page click "Next Step"
    On the "Options" page click "Exhaustive Options List"
    On the "Exhaustive Options List" page make sure that "Mcrypt" is checked
    Then click the "Build Now" at the bottom of the page.

    Please let us know if this solves you problem.
     
  3. AviMoto

    AviMoto Member

    Joined:
    Feb 28, 2012
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I already try it before, but it isn't help
     
  4. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    On The Road
    cPanel Access Level:
    Root Administrator
    Hello,

    If the method above is not working, I would recommend that you open a support ticket.

    Also does mcrypt show up as enabled when you make a php script with the following code in it and execute it from a web browser?

    phpinfo.php
    Code:
    <?php phpinfo(); ?>
     
  5. AviMoto

    AviMoto Member

    Joined:
    Feb 28, 2012
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,
    The mcrypt is enabled:
    mcrypt status.jpg

    I'll try to open a ticket
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    We don't compile mcrypt as a dynamic PHP module in that directory, so it won't exist in /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ location.

    You likely have manually added the pecl module, which would cause the error to occur. You should search the /usr/local/lib/php.ini file for mcrypt.so extension and comment it out, then restart Apache.

    I don't think that error is the cause of some script not working, since mcrypt is enabled. You mention ZF2, but if that isn't functioning, what is happening detail-wise that isn't working for it?
     
Loading...

Share This Page