Search Our Database

How to Disable Zlib Compression for PHP Output in DirectAdmin (Enhanced Skin)

Last updated on |
by

Introduction

PHP output compression automatically reduces content size before transmission, but there are situations where disabling this feature becomes necessary for troubleshooting or performance optimization. Conflicts with existing server-level compression, debugging output issues, or reducing CPU overhead on high-traffic servers may require turning off PHP-level compression. DirectAdmin’s PHP Settings interface provides a straightforward method for disabling output compression through custom PHP overrides. This guide explains how to disable output compression using the PHP Settings section in DirectAdmin, sending uncompressed content to browsers to resolve conflicts or reduce server processing overhead.

Prerequisites

  • Access to DirectAdmin control panel with the necessary permissions.

 

Step-by-step Guide

Step 1: Access DirectAdmin

Log in to your DirectAdmin control panel.

 

Step 2: Access PHP Settings

Go to the Your Account section and click on Domain Setup. Then, select the domain/subdomain you wish to modify PHP settings for by clicking on the domain/subdomain name.

At the PHP Access row, click Php Settings…. You should be able to see a list of your current PHP configuration.

 

Step 3: Disable Output Compression

Scroll down to the Add Override section. On the zlib.output_compression row, select Off. Then, click Save on the right.

 

Step 4: Verify the changes

You may confirm the new override settings in the updated Domain php.ini overrides table. Pages are now sent uncompressed, which means larger data transfer but less CPU usage.

 

Conclusion

Disabling PHP output compression through DirectAdmin’s PHP Settings interface is a simple process that stops automatic content compression at the PHP level. Turning off zlib output compression sends uncompressed data to browsers, which increases bandwidth usage but reduces CPU processing overhead and can help resolve conflicts with other compression systems or assist with troubleshooting output-related issues.

Should you have any inquiries about the guidelines, please feel free to open a ticket through your portal account or contact us at support@ipserverone.com. We’ll be happy to assist you further.