Navigation Path: Admin Dashboard → Server Manager
URL:
URL:
/admin/ServerManagerOverview
The Server Manager provides comprehensive server configuration tools, including PHP settings management, system actions, and advanced server configurations for DirectAdmin environments.Server Actions
Reboot server and system operations
PHP Configuration
Edit PHP.ini and settings
System Settings
Configure server parameters
Security
Firewall and security settings
Server Actions
Quick Actions
Server Reboot:- Restarts the entire server system
- All services restart
- Brief downtime expected
- Use during maintenance windows
- Flushes CSF firewall blocked IPs
- Removes all IP blocks
- Useful after false positives
- Restores access for blocked users
- Displays server online status
- Shows current PHP version
- Monitors system health
- Real-time status indicators
Server Configuration Settings
PHP Shell Functions
Status Check:- Monitors
shell_execandexecfunctions - Shows enabled/disabled status
- Critical for platform operation
Required Functions:
shell_exec and exec are required for the platform to function properly. These functions enable server management and automation features.open_basedir Restriction
Critical Setting - Must Be DISABLED:open_basedir restricts PHP file access and prevents proper platform operation.
Status Indicators:
- 🔴 ENABLED - Must Disable! (Red badge)
- ✅ Disabled (Green badge - correct state)
- Click Disable Now (Required) button
- System automatically:
- Finds all PHP ini files
- Comments out
open_basedirlines - Creates backups
- Restarts PHP services
- Page reloads with updated status
DirectoryIndex Priority
Purpose: Ensuresindex.php loads before index.html
Fix DirectoryIndex:
- Click Fix DirectoryIndex button
- System updates Apache configuration
- Sets priority:
index.php index.html index.htm - Apache reloads configuration
/etc/httpd/conf/extra/httpd-directoryindex.conf
PHP Configuration Management
Upload Max Filesize
Quick Update:- Enter desired file size (e.g.,
256M,512M,1G) - Click Update button
- System updates:
upload_max_filesizepost_max_size(set to same value)
- PHP-FPM restarts automatically
- Refresh page to verify new value
PHP.ini Editor
Advanced Configuration:- Click Edit PHP.ini button
- Code editor opens with current php.ini content
- Make desired changes
- Click Save button
- System:
- Validates changes
- Creates backup
- Writes new configuration
- Restarts PHP-FPM
- Changes take effect immediately
Advanced Server Management
PHP Service Management
Automatic Restart:- PHP-FPM restarts after configuration changes
- Background process prevents connection loss
- Service restart takes 3-5 seconds
- Minimal impact on running sites
Apache Configuration
Reload Apache:CSF Firewall Management
Unblock All IPs:- Removes all temporary blocks
- Clears deny list
- Useful after false positives
- Doesn’t affect permanent rules
System Information
PHP Information
Displayed Details:- PHP version
- Loaded configuration file
- Configuration directives
- Loaded extensions
- Server API
upload_max_filesizepost_max_sizememory_limitmax_execution_timedisable_functionsopen_basedir
Server Information
System Details:- Server IP address
- Operating system
- DirectAdmin version
- Apache version
- MySQL/MariaDB version
Best Practices
PHP Configuration
PHP Configuration
- Test changes on staging first
- Always backup php.ini before editing
- Document all configuration changes
- Monitor error logs after changes
- Keep php.ini organized with comments
- Review settings quarterly
- Match settings to workload requirements
Server Maintenance
Server Maintenance
- Schedule reboots during off-peak hours
- Notify users before maintenance
- Keep system updated
- Monitor resource usage
- Review logs regularly
- Test backups frequently
- Document server configuration
Security
Security
- Keep firewall rules updated
- Monitor blocked IPs
- Review security logs
- Disable unnecessary PHP functions
- Use secure PHP settings
- Keep software updated
- Implement fail2ban rules
Performance
Performance
- Optimize PHP settings for workload
- Monitor PHP-FPM pool usage
- Adjust memory limits appropriately
- Enable OPcache
- Configure session handling
- Monitor slow queries
- Optimize Apache configuration
Troubleshooting
PHP Not Restarting
PHP Not Restarting
Issue: PHP-FPM fails to restart after configuration changeSolutions:
- Check php.ini syntax errors
- Review PHP error logs
- Verify PHP-FPM service status
- Check for conflicting processes
- Manually restart PHP-FPM
- Restore from backup if needed
- Check DirectAdmin logs
Configuration Not Applying
Configuration Not Applying
Issue: PHP.ini changes don’t take effectSolutions:
- Verify correct php.ini file edited
- Check if multiple php.ini files exist
- Restart PHP-FPM service
- Clear OPcache
- Check file permissions
- Verify DirectAdmin isn’t overwriting
- Use phpinfo() to confirm settings
Upload Limit Not Changing
Upload Limit Not Changing
Issue: upload_max_filesize update doesn’t workSolutions:
- Verify both upload_max_filesize and post_max_size updated
- Check nginx limits if using nginx
- Restart PHP-FPM completely
- Clear browser cache
- Check .htaccess overrides
- Verify DirectAdmin limits
- Test with phpinfo()
Sites Down After Change
Sites Down After Change
Issue: Websites not loading after configuration changeSolutions:
- Check PHP-FPM is running
- Review error logs immediately
- Restore php.ini from backup
- Restart all services
- Check Apache error logs
- Verify syntax of configuration files
- Rollback recent changes
Configuration Examples
WordPress Optimized PHP Settings
High-Traffic Configuration
Quick Reference
Common Tasks
| Task | Steps |
|---|---|
| Update Upload Limit | Enter size → Click Update → Wait for restart |
| Edit PHP.ini | Click Edit → Make changes → Save |
| Reboot Server | Click Reboot Server → Confirm → Wait |
| Unblock IPs | Click Unblock All IPs → Confirm |
| Fix DirectoryIndex | Click Fix DirectoryIndex → Wait for reload |
| Disable open_basedir | Click Disable Now → Wait for completion |
Recommended PHP Values
| Setting | Small Sites | Medium Sites | Large Sites |
|---|---|---|---|
| memory_limit | 256M | 512M | 1024M |
| upload_max_filesize | 128M | 256M | 512M |
| max_execution_time | 120 | 300 | 600 |
| OPcache memory | 128 | 256 | 512 |