I regularly set up virtualbox ubuntu setups to run as local webservers. I have set these up several times and never had an issue. However, something has changed:
1)vb guest additions no longer allow me to copy and paste (i'll worry about that later)
2)more importantly phpmyadmin no longer works as installed - Initially going to localhost/phpmyadmin gave a message that the page could not be found.
So followed instructions which told me to do this in /var/www:
sudo ln -s /usr/share/phpmyadmin phpmyadmin
which has created a phpmyadmin directory in /var/www but now I get an error saying: the mysqli extension is missing.
If I run phpinfo mysql and mysqli are listed.
All I have done so far is
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server
and
sudo apt-get install phpmyadmin
I found a post of a similar question which suggested I should do
sudo apt-get install php5-mysql
(I've done this) and edit php.ini and uncomment the line:
extension=mysqli.so
This is not there, so I tried adding it but no joy. I have restarted apache and still no phpmyadmin.
I'm running a windows 7 machine and the guest os is ubuntu 12.04