1. Create the DB with the sqlite3 command
  2. Hook into the DB with PHP: example here
  3. Realize that that it's not working...
  4. Set the permissions so it works correctly.
  5. ???
  6. profit

Something worthy of note is that user is typically going to be www-data. If it's not, check with your sysadmin to find out who php is running as.