Skip to main content

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

Comments

10 comments

  • cPanelMichael
    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.
    0
  • rajat kumar
    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.
    0
  • cPanelMichael
    Please post the output from the following commands:
    grep mysqli /usr/local/lib/php.ini php -m|grep mysqli php -i|grep mysqli
    Thank you.
    0
  • rajat kumar
    hello, following output is coming from commands: grep mysqli /usr/local/lib/php.ini
    extension = "mysqli.so"
    php -m|grep mysqli
    mysqli
    php -i|grep mysqli
    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
    0
  • cPanelMichael
    Hello, Could you check if a php.ini file exists in the /root directory? I've seen that cause this issue in some cases:
    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.
    0
  • rajat kumar
    hello, ok this is the output of given command stat /root/php.ini
    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:
    sudo /sbin/service httpd graceful

    sudo /sbin/service httpd restart
    0
  • cPanelMichael
    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.
    0
  • rajat kumar
    hello, Ticket ID: 7740587 thanks
    0
  • rajat kumar
    hello, finally my problem has been resolved.. outcome: just rebuilt php.ini file it using /scripts/phpini. & restarted Apache. thanks
    0
  • cPanelMichael
    hello, finally my problem has been resolved.. outcome: just rebuilt php.ini file it using /scripts/phpini. & restarted Apache. thanks

    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.