1. sudo apt-get install apache2 php5 php5-sqlite
2. add extension=sqlite.so
extension=sqlite3.so in /etc/php5/apache2/php.ini
3. sudo /etc/init.d/apache2 restart
4. How to check sqlite support or not:
write a php file: content is
Use IE and connect: http://ip address/phpinfo.php
Search key words: "sqlite3" inside phpinfo page.