This plugin enhances Adminer by simplifying the login process for SQLite databases. Instead of the standard login form, users only need to select a SQLite database and enter a password.
- Simplified Login: works out of the box, for demonstration, adminer.php (V 5.1.0) is included as well. Feel free to get the newest version.
- Password Protection: Stores the hashed password securely in
CSqlite.pwd. - Automatic Database Detection: Recursively scans a specified directory for
*.sqliteor*.dbfiles. - Easy Configuration: comes with defaults that can easily be overwritten.
- Sample Database: Playground
chinook.dbis included, sample db from sqlitetutorial.net
- Upload Adminer & Plugin: Copy the files to your web server directory.
- Adjust Configuration:
- Default configuration can be adjusted in
sqlite.php:# overwrite defaults $aOpt = [ # root path to search for files 'vPath' => '/var/www/global', # we search for *.sqlite / *.db files 'vSearch' => "#(.+\.sqlite|.+\.db)$#", # write access! 'vPwdFile' => __DIR__ . "/CSqlite.pwd", ];
- Default configuration can be adjusted in
- Set File Permissions:
Ensure the web server has write access to file/directory of
vPwdFileand databases:chmod 775 /var/www/global/htdocs/adminer/plugins chgrp www-data /var/www/global/htdocs/adminer/plugins …
- The default password in the sample file
CSqlite.pwdis12345678. - To change the password, delete
CSqlite.pwdand log in with a new password. - On first login, the entered password is encrypted and saved in
CSqlite.pwd.
- As an example, the design
lucas-sanderyis applied. - Delete
adminer.cssto revert to the default design. - Or use a different theme from this list.
-
Open Adminer with the plugin in your browser:
https://[domain/path]/adminer/sqlite.php -
Select a database from the list.
-
Enter the password. The password will be saved on the first login after deleting
CSqlite.pwd. -
Login!
- If no databases are found, check the path setting ($aOpt['vPath']) in
sqlite.phpand file permissions. - A direct call to
https://[domain]/[path]/adminer/adminer.phpopens the unchanged Adminer version. - You might want to set a symlink
index.phpto sqlite.php.
MIT License


