Debian 4 , no msql - imap servers found by scripts

Running a gpl VM on a Debian 4 , all fine, installed from a fresh system via script.
All is working fine.
But … my sql is invisible to scripts like joomla, same goes for imap.
The user created by virtualmin had no permission in webmin-mysql server, i’ve corrected manually the issue,but nothing, still the same problem.
I tried to manually install a script in the base apache www root with my root credentials, nothing, sql seems dead, but is running fine.
Any ideas about this issue on Debien ech?

Ok,solved Mysql with :

apt-get install php5-mysql[/code:1]
And restarting apache - Mysql server.
What about Imap?