System Architecture & Engineering
The Emerald Lanka engine was re-engineered as a Decoupled LAMP Stack. By separating the Application and Data layers, the system achieves better fault tolerance and horizontal scalability.
1. Advanced Infrastructure Migration
Transitioning from 2024 legacy code to a 2026 Ubuntu environment involved resolving critical handler conflicts:
* Handler Optimization: Configured the libapache2-mod-php bridge to handle concurrent requests efficiently under the mpm_prefork model.
* PHP 8.3 Refactoring: Updated deprecated MySQLi functions and implemented strict typing to ensure stability in modern runtimes.
2. Distributed Data Management
To enhance security, the system utilizes a Remote Data Access Layer: * Application Node: AWS EC2 (Singapore Region) for low-latency asset delivery. * Data Node: Hardened MySQL instance with strict IP-based CIDR whitelisting. * Connectivity: Optimized database handshakes using persistent connections to reduce TCP overhead between cloud providers.
Security & Reliability Engineering
Hardened Deployment Protocol
- Identity & Access: Implemented granular directory permissions (
chmod 755/644) and restricted the web server user (www-data) to non-interactive shell access. - Transport Encryption: Provisioned automated Let's Encrypt SSL certificates via Certbot, with a forced 301 redirection at the Apache Virtual Host level.
- Security via Obscurity: Custom
.htaccesslogic masks server-side file extensions, mitigating directory traversal attacks and automated bot scanning.
Performance Benchmarks
- Production Stability: 100% uptime over a 12-month deployment period.
- Routing Efficiency: Optimized
DirectoryIndexpriority and leveraged Apache’smod_rewriteengine to create a clean, professional URI structure for improved SEO and UX.
Technical Stack
- Backend: PHP 8.3 (Modular Architecture)
- Frontend: jQuery, Bootstrap 5, FontAwesome 6
- Database: MySQL 8.0
- Infrastructure: AWS EC2, Apache2, Linux (Ubuntu)