phpMyAdmin is showing “The mysqli extension is missing. ”?












2















I have been trying to install phpmyadmin for a while, and i always face the same error



screenshot



I downloaded php7.0 and mysql-server-5.7



I also choose Apache2 and unix socket in the configuration process



Also tried adding Include /etc/phpmyadmin/apache.conf to the end of the file solution



and when I try to open the http://localhost/phpadmin it shows this error




The mysqli extension is missing. Please check your PHP configuration.
See our documentation for more information.




Any help?



PHP MY Admin Error










share|improve this question




















  • 1





    How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

    – Thomas Ward
    Apr 11 '17 at 0:57













  • I downloaded it using repository. I am on ubuntu 16.04 LTS

    – TheGrimBoo
    Apr 11 '17 at 17:07
















2















I have been trying to install phpmyadmin for a while, and i always face the same error



screenshot



I downloaded php7.0 and mysql-server-5.7



I also choose Apache2 and unix socket in the configuration process



Also tried adding Include /etc/phpmyadmin/apache.conf to the end of the file solution



and when I try to open the http://localhost/phpadmin it shows this error




The mysqli extension is missing. Please check your PHP configuration.
See our documentation for more information.




Any help?



PHP MY Admin Error










share|improve this question




















  • 1





    How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

    – Thomas Ward
    Apr 11 '17 at 0:57













  • I downloaded it using repository. I am on ubuntu 16.04 LTS

    – TheGrimBoo
    Apr 11 '17 at 17:07














2












2








2








I have been trying to install phpmyadmin for a while, and i always face the same error



screenshot



I downloaded php7.0 and mysql-server-5.7



I also choose Apache2 and unix socket in the configuration process



Also tried adding Include /etc/phpmyadmin/apache.conf to the end of the file solution



and when I try to open the http://localhost/phpadmin it shows this error




The mysqli extension is missing. Please check your PHP configuration.
See our documentation for more information.




Any help?



PHP MY Admin Error










share|improve this question
















I have been trying to install phpmyadmin for a while, and i always face the same error



screenshot



I downloaded php7.0 and mysql-server-5.7



I also choose Apache2 and unix socket in the configuration process



Also tried adding Include /etc/phpmyadmin/apache.conf to the end of the file solution



and when I try to open the http://localhost/phpadmin it shows this error




The mysqli extension is missing. Please check your PHP configuration.
See our documentation for more information.




Any help?



PHP MY Admin Error







server apache2 mysql php phpmyadmin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 11 '17 at 17:49







TheGrimBoo

















asked Apr 11 '17 at 0:09









TheGrimBooTheGrimBoo

1315




1315








  • 1





    How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

    – Thomas Ward
    Apr 11 '17 at 0:57













  • I downloaded it using repository. I am on ubuntu 16.04 LTS

    – TheGrimBoo
    Apr 11 '17 at 17:07














  • 1





    How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

    – Thomas Ward
    Apr 11 '17 at 0:57













  • I downloaded it using repository. I am on ubuntu 16.04 LTS

    – TheGrimBoo
    Apr 11 '17 at 17:07








1




1





How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

– Thomas Ward
Apr 11 '17 at 0:57







How did you download and install php7.0? From source code, or from a PPA? Or from the repositories? What Ubuntu version are you on?

– Thomas Ward
Apr 11 '17 at 0:57















I downloaded it using repository. I am on ubuntu 16.04 LTS

– TheGrimBoo
Apr 11 '17 at 17:07





I downloaded it using repository. I am on ubuntu 16.04 LTS

– TheGrimBoo
Apr 11 '17 at 17:07










2 Answers
2






active

oldest

votes


















4














You need to install the software php-mysql. This will install php7.0's MySQL interface libraries to the proper locations.



You can install it with: sudo apt-get install php-mysql



After installation, restart your Apache2 instance - sudo systemctl restart apache2



PHP should then detect the mysql and mysqli libraries.






share|improve this answer


























  • it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

    – TheGrimBoo
    Apr 11 '17 at 17:48











  • @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

    – Thomas Ward
    Apr 11 '17 at 18:20



















1














I finally found that I have to specify the version number of the extension to make it work:



apt-get install php7.2-mysql


Because I had upgraded PHP from 5.6 to 7.2






share|improve this answer








New contributor




Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f903390%2fphpmyadmin-is-showing-the-mysqli-extension-is-missing%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    You need to install the software php-mysql. This will install php7.0's MySQL interface libraries to the proper locations.



    You can install it with: sudo apt-get install php-mysql



    After installation, restart your Apache2 instance - sudo systemctl restart apache2



    PHP should then detect the mysql and mysqli libraries.






    share|improve this answer


























    • it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

      – TheGrimBoo
      Apr 11 '17 at 17:48











    • @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

      – Thomas Ward
      Apr 11 '17 at 18:20
















    4














    You need to install the software php-mysql. This will install php7.0's MySQL interface libraries to the proper locations.



    You can install it with: sudo apt-get install php-mysql



    After installation, restart your Apache2 instance - sudo systemctl restart apache2



    PHP should then detect the mysql and mysqli libraries.






    share|improve this answer


























    • it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

      – TheGrimBoo
      Apr 11 '17 at 17:48











    • @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

      – Thomas Ward
      Apr 11 '17 at 18:20














    4












    4








    4







    You need to install the software php-mysql. This will install php7.0's MySQL interface libraries to the proper locations.



    You can install it with: sudo apt-get install php-mysql



    After installation, restart your Apache2 instance - sudo systemctl restart apache2



    PHP should then detect the mysql and mysqli libraries.






    share|improve this answer















    You need to install the software php-mysql. This will install php7.0's MySQL interface libraries to the proper locations.



    You can install it with: sudo apt-get install php-mysql



    After installation, restart your Apache2 instance - sudo systemctl restart apache2



    PHP should then detect the mysql and mysqli libraries.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 11 '17 at 18:20

























    answered Apr 11 '17 at 17:15









    Thomas WardThomas Ward

    44.7k23124177




    44.7k23124177













    • it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

      – TheGrimBoo
      Apr 11 '17 at 17:48











    • @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

      – Thomas Ward
      Apr 11 '17 at 18:20



















    • it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

      – TheGrimBoo
      Apr 11 '17 at 17:48











    • @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

      – Thomas Ward
      Apr 11 '17 at 18:20

















    it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

    – TheGrimBoo
    Apr 11 '17 at 17:48





    it worked and now I can open the local host but there is another problem appeared, I updated the question with a screen shot

    – TheGrimBoo
    Apr 11 '17 at 17:48













    @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

    – Thomas Ward
    Apr 11 '17 at 18:20





    @HwangHeeRa_Gogo That's a different issue, so you need to open a different question.

    – Thomas Ward
    Apr 11 '17 at 18:20













    1














    I finally found that I have to specify the version number of the extension to make it work:



    apt-get install php7.2-mysql


    Because I had upgraded PHP from 5.6 to 7.2






    share|improve this answer








    New contributor




    Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      1














      I finally found that I have to specify the version number of the extension to make it work:



      apt-get install php7.2-mysql


      Because I had upgraded PHP from 5.6 to 7.2






      share|improve this answer








      New contributor




      Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        1












        1








        1







        I finally found that I have to specify the version number of the extension to make it work:



        apt-get install php7.2-mysql


        Because I had upgraded PHP from 5.6 to 7.2






        share|improve this answer








        New contributor




        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        I finally found that I have to specify the version number of the extension to make it work:



        apt-get install php7.2-mysql


        Because I had upgraded PHP from 5.6 to 7.2







        share|improve this answer








        New contributor




        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 10 hours ago









        OmiodOmiod

        1113




        1113




        New contributor




        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Omiod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f903390%2fphpmyadmin-is-showing-the-mysqli-extension-is-missing%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            GameSpot

            日野市

            Tu-95轟炸機