phpLiteAdmin Local SQLite Management Guide
Manage SQLite database files in your browser using phpLiteAdmin at http://localhost/phpliteadmin.
phpLiteAdmin is a web-based SQLite management tool that runs as a single PHP file, suitable for local small projects, prototypes, or PHP applications that do not require MySQL.
Access Address
After extracting phpLiteAdmin to the web root directory phpliteadmin/:
(The specific path depends on the folder name and entry file name, commonly phpliteadmin.php or index.php in the directory.)
Installation
- Download from phpliteadmin.org or GitHub.
- Extract to
htdocs/phpliteadmin/. - Edit
phpliteadmin.config.php(orconfig.php):- Set
$passwordto prevent unauthorized access. - Configure
$directoryto point to the directory containing.db/.sqlitefiles.
- Set
- Ensure the PHP SQLite extension (
php-sqlite3) is enabled. - Access via browser after starting Apache.
Prerequisites
- PHP with
pdo_sqliteorsqlite3extension. - Web server (Apache + PHP, or
php -Swith appropriate configuration).
Verify the extension:
php -m | grep -i sqliteTypical Use Cases
- Manage local
.sqlitedatabase files. - Debug table structures for small CMS or tool projects.
- Lightweight local development without the need for MySQL.
Differences from phpMyAdmin
| Item | phpLiteAdmin | phpMyAdmin |
|---|---|---|
| Database | SQLite (file) | MySQL/MariaDB (service) |
| Deployment | Single PHP + configuration file | Requires MySQL service |
Frequently Asked Questions
Database file not found
Check if the $directory path in config is correct and that the web user has read permissions.
SQLite extension not loaded
Enable extension=pdo_sqlite or extension=sqlite3 in php.ini and restart Apache.
Conclusion
phpLiteAdmin is suitable for managing local SQLite files at http://localhost/phpliteadmin, without the need for MySQL service, making it a common tool for lightweight PHP projects.