Proper server configuration is essential for WHMCS performance and security. Here are the requirements and recommended setup.
Minimum Requirements
- PHP: 8.1 or higher (8.2 recommended)
- MySQL: 5.7+ or MariaDB 10.2+
- Web Server: Apache 2.4+ or Nginx
- RAM: 2GB minimum
- Storage: 10GB+ SSD recommended
Required PHP Extensions
- curl, gd, json, mbstring
- mysql/mysqli, openssl, pdo
- xml, zip, iconv, ioncube
Recommended Setup
For Small Business (1-500 clients)
- VPS with 2 CPU cores, 4GB RAM
- cPanel/WHM for easy management
- LiteSpeed or Apache with mod_php
For Medium Business (500-5,000 clients)
- VPS with 4 CPU cores, 8GB RAM
- PHP-FPM for better performance
- Redis for session storage
- Separate database server optional
For Large Business (5,000+ clients)
- Dedicated server or cloud instances
- Separate database server
- Redis/Memcached for caching
- CDN for static assets
- Load balancer for high availability
PHP Configuration
memory_limit = 256M
max_execution_time = 300
upload_max_filesize = 20M
post_max_size = 25M
date.timezone = UTC MySQL Optimization
innodb_buffer_pool_size = 1G
innodb_log_file_size = 256M
max_connections = 150
query_cache_type = 1
query_cache_size = 64M Security Considerations
- Use HTTPS with valid SSL certificate
- Enable firewall (CSF recommended)
- Keep PHP and MySQL updated
- Rename admin directory
- Move configuration.php above web root
Hosting Recommendations
For best WHMCS performance, I recommend:
- ElySpace: Optimized WHMCS hosting with free license
- Vultr/DigitalOcean: Cloud VPS for custom setups
- Dedicated servers: For high-traffic installations
About Shahid Malla
ExpertFull Stack Developer with 10+ years of experience in WHMCS development, WordPress, and server management. Trusted by 600+ clients worldwide for hosting automation and custom solutions.