There is no apt-get install php5-sqlite3, as its refereed by php5-sqlite
thus, i did:
apt-get install sqlite3
and then
apt-get install php5-sqlite
Restarted apache2.
When I run echo sqlite_libversion(); it returns 2.8.17.
I tried print_r(SQLite3::version()); and it gives an error: Class 'SQLite3' not found