After installing Apache and PHP on Ubuntu you might be getting the below error:
PHP Fatal error: Class 'mysqli' not found in ...
This is most likely because the php MySQL module have yet to be installed on your system. To get this done, you may use the below commands from a new terminal window.
gksudo apt-get install php5-mysql