ProFTPD module mod_sql_sqlite



SQLite is a lightweight embeddable database system that is gaining in popularity. More details can be found here:

  http://www.sqlite.org

The mod_sql_sqlite module is designed to let ProFTPD's mod_sql module connect to and use a SQLite database. This module is contained in the mod_sql_sqlite.c file for ProFTPD 1.3.x, and is not compiled by default. Installation instructions are discussed here.

The most current version of mod_sql_sqlite can be found at:

  http://www.castaglia.org/proftpd/

Author

Please contact TJ Saunders <tj at castaglia.org> with any questions, concerns, or suggestions regarding this module.


Installation

The mod_sql_sqlite modules requires that SQLite be installed.

After installing SQLite, copy the mod_sql_sqlite.c file into the ProFTPD contrib module area:

  cp mod_sql_sqlite.c proftpd-dir/contrib/
After that, follow the usual steps for using contrib modules in proftpd, making sure to list mod_sql:
  cd proftpd-dir/
  ./configure --with-modules=mod_sql:mod_sql_sqlite
  make
  make install
You may need to specify the location of the SQLite header and library files in your configure command, e.g.:
  ./configure --with-modules=mod_sql:mod_sql_sqlite \
    --with-includes=/usr/local/sqlite/include \
    --with-libraries=/usr/local/sqlite/lib


Usage

For the most part, mod_sql_sqlite requires little configuration. In the SQLConnectInfo directive, simply use the full path to the SQLite database file; no username or password are required. For example:
  <IfModule mod_sql_sqlite.c>
    SQLBackend sqlite3
    SQLConnectInfo /path/to/ftpd.db
  </IfModule>
Please contact the author directly with any questions or comments.



Author: $Author: tj $
Last Updated: $Date: 2007/05/21 15:38:47 $


© Copyright 2004-2007 TJ Saunders
All Rights Reserved