[Solved] The mysqli extension is missing. Please check your PHP configuration.

When I installed phpmyadmin after installing apache2, mysql-server, php5 on my Ubuntu 11.10 machine,  I was presented with this error when I navigated to phpmyadmin page.

The mysqli extension is missing. Please check your PHP configuration. <a href=”Documentation.html#faqmysql” target=”documentation”><img src=”./themes/pmahomme/img/b_help.png” width=”11″ height=”11″ alt=”Documentation” title=”Documentation” /></a>

The solution to this is simple, though I had to scratch my head for sometime. You need to restart apache server before navigating to phpmyadmin page. How do you do that? Easy!

sudo /etc/init.d/apache2 restart

This solution works only if you have already installed mysql-server and php5-mysql. You may need to

sudo apt-get install php5-mysql

if you hadn’t done that already and then restart the apache server.
And you are done!

 

10 Comments

  1. mmm says:

    Actually does not work….

  2. George says:

    If you have installed mysql-server then you need to run this command:

    sudo apt-get install php5-mysql

    and then reload the server.

  3. Caspy says:

    Hello this was the anwser i was lloking for !

    ” sudo apt-get install php5-mysql ”

    i had installed Apache2 and PhP5 but it didn’t include the PhP5-mysql

    Thank you !

  4. Reddevil says:

    The Post was stupid, but @Caspy — Thanks man, You were helpful

  5. jimdorky says:

    @Reddevil : The post not stupid at all. It helped me. Thanks :D

  6. ganja says:

    still no working!! showing the same error.

  7. Jonny says:

    sudo apt-get install php5-mysql, it works!!!

  8. NABEEL says:

    Already php mysql installed on my vps but it is showing error again

Leave a Reply