Requirements
Before installing MINI, ensure your environment meets these requirements:PHP
PHP 5.3.0 or higher (tested with PHP 5.6, 7.x, and 8.0)
MySQL
MySQL or MariaDB database server
Apache mod_rewrite
Apache with mod_rewrite enabled for clean URLs
Composer
Optional: Composer for dependency management
If you cannot enable mod_rewrite, check out TINY, a version of MINI that works without mod_rewrite.
Installation Methods
Choose the installation method that best fits your needs:- Manual Installation
- Vagrant (Automatic)
- Ubuntu Auto-Install
Manual Installation
The standard way to install MINI on any system.Clone or Download MINI
Clone the repository or download the ZIP file:Or download and extract the ZIP file from GitHub.
Configure Database
Edit the database credentials in
application/config/config.php:application/config/config.php
Create Database
Create the database and import the SQL file:Or use PHPMyAdmin to import the
.sql file from the _install/ folder.Enable mod_rewrite
Ensure Apache’s mod_rewrite module is enabled:Ubuntu/Debian:Check if enabled:You should see:
rewrite_module (shared)Configure Apache
Make sure your Apache configuration allows Restart Apache after changes:
.htaccess overrides:Server-Specific Configuration
nginx Configuration
If you’re using nginx instead of Apache:nginx.conf
For detailed nginx setup discussion, see this GitHub issue.
Enabling mod_rewrite on Different Platforms
Ubuntu 14.04/20.04 LTS
Ubuntu 14.04/20.04 LTS
XAMPP (Windows)
XAMPP (Windows)
- Open
httpd.confin the Apache config folder - Find the line:
#LoadModule rewrite_module modules/mod_rewrite.so - Remove the
#to uncomment it - Restart Apache
MAMP (Mac OS)
MAMP (Mac OS)
- Open MAMP preferences
- Go to Apache settings
- Enable mod_rewrite
- Restart servers
EasyPHP (Windows)
EasyPHP (Windows)
Guide: EasyPHP and .htaccess
AMPPS (Windows/Mac)
AMPPS (Windows/Mac)
Guide: AMPPS rewrite enable option
Verification
Verify your installation is working correctly:Test Clean URLs
Try accessing:
http://localhost/mini/home/exampleOneIf you see a page without a 404 error, clean URLs are working.Test Database
Click on “Songs” in the navigation. If you see the songs list, the database connection is working.
Troubleshooting
404 errors on all pages except home
404 errors on all pages except home
Cause: mod_rewrite is not enabled or
.htaccess is not being read.Solution:- Verify mod_rewrite is enabled:
apache2ctl -M | grep rewrite - Check Apache config allows
.htaccessoverrides:AllowOverride All - Ensure
.htaccessfile exists in thepublic/folder - Restart Apache
Database connection error
Database connection error
Cause: Incorrect database credentials or MySQL not running.Solution:
- Verify MySQL is running:
sudo service mysql status - Check credentials in
application/config/config.php - Ensure the database exists:
mysql -u root -p -e "SHOW DATABASES;" - Verify the user has access to the database
Blank white page
Blank white page
Cause: PHP error with error reporting disabled.Solution:
- Enable error reporting in
application/config/config.php: - Check PHP error logs:
tail -f /var/log/apache2/error.log - Verify PHP version:
php -v(must be 5.3.0+)
Permission denied errors
Permission denied errors
Cause: Incorrect file permissions.Solution:
Sub-folder Installation
MINI works perfectly in a sub-folder without any additional configuration:Next Steps
Quick Start Guide
Learn how to build your first controller and view
