1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

MySQLi class not found

Discussion in 'Plugin Help' started by BalAnce, Nov 25, 2016.

  1. BalAnce

    BalAnce Silverfish

    Messages:
    22
    GitHub:
    YaBoiBalAnce
    Ok so i installed PHP on Ubuntu 16.04 and the server runs fine. Any plugin however using MySQLi says MySQLi class not found. I cant figure out what i need to correctly fix this issue. (Been on google for like the last hour so i figured try the forums.)

    EDIT: PROBABLY POSTED THIS IN WRONG CATEGORY IDK
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    Wrong php binary?
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Use the PHP binaries compiled by the team. Don't use the PHP binaries you install normally. They lack required extensions.
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  5. BalAnce

    BalAnce Silverfish

    Messages:
    22
    GitHub:
    YaBoiBalAnce
    Well i install my own so i can get the OpenSSL.
     
  6. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    OpenSSL should be included in the current php bins made by the team
     
  7. BalAnce

    BalAnce Silverfish

    Messages:
    22
    GitHub:
    YaBoiBalAnce
    its still said OpenSSL extension is not enabled
     
  8. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    How are you checking which PHP modules are enabled, exactly?
     
  9. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    look at the dll files in /bin/php
     
  10. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It is better to use the path/to/php -m command to find out which ones are actually loaded, not just exists.
     
  11. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    This is the correct way - you probably have a PHP installation for your web server (which is configured in your apache httpd.conf fiie) , and a different one for PM (configured in start.sh). If you type php -m at the command line without doing as SOFe says then you'll get results from the one that is in your system $PATH, unless you are already in PM's PHP bin folder, so best to use the full path when checking installed modules, php version etc.

    Some screenshots might help us figure out exactly where your problem lies.
     
    SOFe likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.