How To Enable/Disable OpCache for Specific Domains in Plesk

  1. Access Plesk Control Panel
    • Log in to your Plesk dashboard
    • Ensure you have administrator privileges
  2. Locate Domain Settings
    • Navigate to: Domains > example_domain.com
    • Click on the Dashboard tab
    • Look for the PHP section
  3. Check Current Configuration
    • Verify PHP version being used
    • Confirm OpCache settings:
      • Look for opcache.enable setting
      • Check disable_functions list
  4. Modify OpCache Settings
    • To enable: Set opcache.enable to "on"
    • To disable: Set opcache.enable to "off"
  5. 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:

  1. Go to Domains > example_domain.com
  2. Click PHP Settings
  3. Select "View the php_info() page"
  4. Look for:
    • Cache hits
    • Cache misses
    • Memory usage
    • Cache status

Common Plesk-Specific Issues

  • Function Access Denied: Check if opcache_get_status is in the disable_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
Je li Vam ovaj odgovor pomogao? 0 Korisnici koji smatraju članak korisnim (0 Glasovi)