Setting Up DeltaPOS on Local Machine
1. System Requirements
| PHP Version | PHP 8.2 or higher |
| Required Extensions | BCMath, Ctype, JSON, Mbstring, OpenSSL, PDO, Tokenizer, XML, cURL, Fileinfo, GD |
| Database | MySQL 5.7+ or MariaDB 10.3+ |
2. Local Development Environment Setup
Option 1: XAMPP Setup
- Download XAMPP with PHP 8.2 or higher from apachefriends.org
- Install XAMPP following the installation wizard
- Start Apache and MySQL services from XAMPP Control Panel
- Extract DeltaPOS files to
C:\xampp\htdocs\deltapos - Access your application at
http://localhost/deltapos/public
Option 2: Laragon Setup Recommended
- Download Laragon from laragon.org
- Install Laragon and select PHP 8.2 or higher during installation
- Start Laragon and ensure all services are running
- Extract DeltaPOS files to
C:\laragon\www\deltapos - Access your application at
http://localhost/deltapos/public - else Access your application at
http://deltapos.test(Laragon creates virtual hosts automatically)
3. Database Setup using phpMyAdmin
XAMPP phpMyAdmin Access
- Start Apache and MySQL in XAMPP Control Panel
- Access phpMyAdmin at
http://localhost/phpmyadmin - Default credentials:
- Username:
root - Password:
(leave blank)
- Username:
Laragon phpMyAdmin Access Recommended
- Start Laragon
- Click on "Database" button in Laragon or visit
http://localhost/phpmyadmin - Default credentials:
- Username:
root - Password:
(leave blank)
- Username:
Creating Database Steps:
- Login to phpMyAdmin
- Click "New" in the left sidebar
- Enter database name (e.g.,
deltapos) - Select "Collation" as
utf8mb4_unicode_ci - Click "Create" button
4. OPcache Configuration
Enable OPcache to improve PHP performance by following these steps:
1. Enable OPcache in php.ini
Add or update these settings in your php.ini file:
zend_extension=opcache.so
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
2. Location of php.ini:
- XAMPP:
C:\xampp\php\php.ini - Laragon:
C:\laragon\bin\php\php-8.x\php.ini
OPcache Settings Explained:
opcache.enable=1: Enables OPcacheopcache.memory_consumption=128: Memory allocation for OPcache in MBopcache.max_accelerated_files=4000: Maximum number of files that can be cachedopcache.revalidate_freq=60: How often to check file timestamps for changes (in seconds)
5. Directory Permissions
Set the following directory permissions:
chmod -R 775 bootstrap/cache
chmod -R 775 storage/framework
chmod -R 775 storage/logs
For Windows, ensure these directories are writable by your web server.
6. Troubleshooting
| Issue | Solution |
|---|---|
| 500 Server Error | Check storage directory permissions and .env file configuration |
| Composer Memory Limit | Run: COMPOSER_MEMORY_LIMIT=-1 composer install |
| Database Connection Error | Verify database credentials in .env file and ensure MySQL service is running |
Development URL: After setup, your application will be available at:
- XAMPP:
http://localhost/deltapos - Laragon:
http://deltapos.test