Prerequisites
Before installing Simple Invoice, ensure you have:- PHP 5.3.7 or higher
- MySQL 5.6 or higher
- Web server (Apache, Nginx, or IIS with PHP support)
- phpMyAdmin (recommended for database management)
Installation Methods
Choose the installation method that best fits your environment:- Windows (XAMPP)
- Linux (Apache)
- Docker
Recommended for local development on Windows
Windows Installation (XAMPP)
The easiest way to run Simple Invoice on Windows is using XAMPP.Download Source Files
Download the Simple Invoice source files from the repository and extract them.
Copy to XAMPP Directory
Copy and extract the files to The application will be accessible at:
C:\xampp\htdocs\. You should have a folder called simple_invoice.http://localhost/simple_invoice/Start XAMPP Services
Open XAMPP Control Panel and start:
- Apache (web server)
- MySQL (database server)
Ensure both services show green “Running” status before proceeding.
Create Database
Access phpMyAdmin at
http://localhost/phpmyadmin/ and create a new database:- Click on “New” in the left sidebar
- Enter database name:
simple_invoice - Select collation:
utf8_general_ci - Click “Create”
Import Database Tables
Import the database schema:
- Select the
simple_invoicedatabase - Click on the “Import” tab
- Click “Choose File” and select
simple_invoice.sqlfrom the root directory - Click “Go” to import
The SQL file is located at:
simple_invoice/simple_invoice.sqlConfigure Database Connection
Edit the database configuration file at For XAMPP default installation, the settings above should work without changes.
simple_invoice/config/db.php:Linux Installation (Apache)
For production deployment on Linux servers with Apache.Database Schema
Thesimple_invoice.sql file creates the following tables:
Core Tables
Default Data
The SQL import creates a default admin user:Post-Installation
Verify Installation
After installation, verify everything is working:- Navigate to your Simple Invoice URL
- You should see the login page
- Log in with default credentials (username:
admin, password:admin) - Check that all menu items are accessible:
- Facturas (Invoices)
- Clientes (Clients)
- Productos (Products)
- Usuarios (Users)
File Permissions
Ensure proper file permissions (Linux/Unix):Configuration Options
Key configuration files:config/db.php- Database connection settingsconfig/conexion.php- Database connection functionconfig/tcpdf_config.php- PDF generation settings
Troubleshooting
Common Issues
Cannot connect to database
Cannot connect to database
Error:
mysqli_connect(): (HY000/1045): Access deniedSolution: Verify credentials in config/db.php match your MySQL user and password.White screen after login
White screen after login
Error: Blank page or 500 errorSolution: Enable PHP error reporting to see the actual error:Add this to the top of
index.php temporarily.Database tables not created
Database tables not created
Error: Table doesn’t exist errorsSolution: Ensure you imported Verify tables exist:
simple_invoice.sql correctly:PHP version too old
PHP version too old
Error:
Simple PHP Login does not run on a PHP version smaller than 5.3.7Solution: Upgrade PHP to at least version 5.3.7, preferably 7.x or 8.x for better performance.