Note that this doesn't actually get PHP to load the extension, so once you've compiled the SQLite3 extension as shown above:
Code:
cd /etc/php5/conf.d
sudo nano sqlite3.ini
...and insert this into the file:
Code:
# configuration for php SQLite3 module
extension=sqlite3.so
Save and then restart Apache:
Code:
sudo /etc/init.d/apache2 restart
And the SQLite3 class should be available in PHP.
By the way, currently there is no installation candidate for php5-sqlite3 in Jaunty, so don't worry if the install complains about that; just continue on, since you're compiling it from source anyway.
Bookmarks