How To Enable/Disable OpCache for Specific Domains in Plesk
- Access Plesk Control Panel
- Log in to your Plesk dashboard
- Ensure you have administrator privileges
- Locate Domain Settings
- Navigate to: Domains > example_domain.com
- Click on the Dashboard tab
- Look for the PHP section
- Check Current Configuration
- Verify PHP version being used
- Confirm OpCache settings:
- Look for
opcache.enable
setting - Check
disable_functions
list
- Look for
- Modify OpCache Settings
- To enable: Set
opcache.enable
to "on" - To disable: Set
opcache.enable
to "off"
- To enable: Set
- Global PHP Settings Check
- Navigate to: Tools & Settings > PHP Settings
- Select your PHP version handler
- Verify OpCache settings at global level
Monitoring OpCache Performance
To check OpCache statistics:
- Go to Domains > example_domain.com
- Click PHP Settings
- Select "View the php_info() page"
- Look for:
- Cache hits
- Cache misses
- Memory usage
- Cache status
Common Plesk-Specific Issues
- Function Access Denied: Check if
opcache_get_status
is in thedisable_functions
list - Settings Not Applied: Ensure changes are saved at both domain and global levels
- Performance Issues: Monitor cache hit/miss ratios through php_info() page