I installed everything separately (Apache, PHP, MySQL and phpMyAdmin) and do not use a compilation, everything works fine till now except phpMyAdmin.
The problem I am experiencing is, that the error message states that the "MySQL extension is missing", as soon as I try to call up:
localhost/phpmyadmin/index.php
And when I call up
localhost/phpmyadmin/setup/index.php
I have two messages where I do not know if it is supposed to be like that:
Bzip2 compression and decompression requires functions (bzopen, bzcompress) which are unavailable on this system.
and:
Zip decompression requires functions (zip_open) which are unavailable on this system.
Any suggestions?
Just check your php.ini file, In this file Semicolon(;) used for comment if you see then remove semicolon ;.
Now your extension is enable but you need to restart appache
At first make sure you have mysql installed properly. You can ensure it just by checking that whether you can access mysql using mysql command promp. So if you mysql is working then probably it is not loading. For that follow the steps given below
First of all, you must find your php.ini. It could be anywhere but if you create a small php file with the
script it will tell you where it is. Just look at the path of loaded configuration file. Common places include /etc/apache/, /etc/php4/apache2/php.ini, /etc/php5/apache2/php.ini or even /usr/local/lib/php.ini for Windows it may be C:\Users\username\PHP\php.ini
Edit your server’s php.ini and look for the following line. Remove the ‘;’ from the start of the line and restart Apache. Things should work fine now!
should become
For windows it will be
should become
Installing
bzip2
andzip
PHP extensions solved my issue in Ubuntu:Use
php(you version)-(extension)
to install and enable any missing modules that is required in the phpmyadmin readme.Just as others stated you need to remove the '
;
' from:;extension=php_mysql.dll
and;extension=php_mysqli.dll
in your php.ini to enable mysql and mysqli extensions. But MOST IMPORTANT of all, you should set the
extension_dir
in your php.ini to point to your extensions directory. The default most of the time is "ext
". You should change it to the absolute path to the extensions folder. i.e. if you have your xampp installed on drive C, thenC:/xampp/php/ext
is the absolute path to the ext folder, and It should work like a charm!