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.

Error log : PHP Warning: PHP Startup: Unable to load dynamic library

Discussion in 'EasyApache' started by rajat kumar, Sep 19, 2016.

  1. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    i also receiving same error in my log file.

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/mysqli.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
    i recently enabled mysqli extension using easyApache3. after modual installation site is working fine but i got an above error in each directory log file.

    any suggestions?

    thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if you are using a custom php.ini file within that account's home directory? If so, could you temporarily disable it, and let us know if the issue persists?

    Thank you.
     
  3. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    hello,

    No i have gone through all the directory in account storage including home directory but i have not found any custom php.ini file.

    thanks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please post the output from the following commands:

    Code:
    grep mysqli /usr/local/lib/php.ini
    php -m|grep mysqli
    php -i|grep mysqli
    Thank you.
     
  5. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    hello,

    following output is coming from commands:

    grep mysqli /usr/local/lib/php.ini
    Code:
    extension = "mysqli.so"
    php -m|grep mysqli
    Code:
    mysqli
    php -i|grep mysqli
    Code:
    Configure Command =>  './configure'  '--disable-fileinfo' '--disable-opcache' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql' '--with-mysqli' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
    mysqli
    mysqli.allow_local_infile => On => On
    mysqli.allow_persistent => On => On
    mysqli.default_host => no value => no value
    mysqli.default_port => 3306 => 3306
    mysqli.default_pw => no value => no value
    mysqli.default_socket => /var/tmp/mysql.sock => /var/tmp/mysql.sock
    mysqli.default_user => no value => no value
    mysqli.max_links => Unlimited => Unlimited
    mysqli.max_persistent => Unlimited => Unlimited
    mysqli.reconnect => Off => Off
    API Extensions => mysqli,mysql,pdo_mysql
    thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you check if a php.ini file exists in the /root directory? I've seen that cause this issue in some cases:

    Code:
    stat /root/php.ini
    If so, try moving this file out of the way and restarting Apache to see if the issue continues.

    Thank you.
     
  7. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    hello,

    ok this is the output of given command

    stat /root/php.ini
    Code:
    stat: cannot stat `/root/php.ini': No such file or directory
    
    and as i am not expertise in linux commands so which command should i use to restart apache from following 2 type:
    Code:
    sudo /sbin/service httpd graceful
    Code:
    sudo /sbin/service httpd restart
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  9. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    hello,

    Ticket ID: 7740587

    thanks
     
  10. rajat kumar

    rajat kumar Member

    Joined:
    Sep 15, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Jaipur
    cPanel Access Level:
    Root Administrator
    hello,
    finally my problem has been resolved..

    outcome:
    just rebuilt php.ini file it using /scripts/phpini. & restarted Apache.

    thanks
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page