Quando vou ao phpmyadmin, diz:
The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a>
Eu também tive wordpress instalado, diz:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Portanto, a extensão php mysql não está funcionando, mas está instalada.
root@john:~# sudo apt-get install php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Eu tentei removê-lo e reinstalá-lo, mas tive problemas:
root@john:~# sudo apt-get purge php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
dbconfig-common libdbd-mysql-perl libmcrypt4 mysql-client mysql-client-5.5 mysql-
client-core-5.5 php5-mcrypt
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
php5-mysql*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 245 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 326631 files and directories currently installed.)
Removing php5-mysql ...
dpkg: error processing php5-mysql (--purge):
subprocess installed pre-removal script returned error exit status 1
Processing triggers for libapache2-mod-php5 ...
Action 'configtest' failed.
The Apache error log may have more information.
Your apache2 configuration is broken, so we're not restarting it for you.
Errors were encountered while processing:
php5-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nota: Tudo estava funcionando bem até que eu removi alguma pasta (talvez apache2), então quando eu tentei instalar o LAMP novamente eu tenho problemas.