Search Our Database

How to Enable Zlib Compression for PHP Output in DirectAdmin (Evolution Skin)

Last updated on |
by

Introduction

PHP output compression reduces the size of data sent from the server to browsers by compressing content before transmission, and enabling this feature improves website performance and reduces bandwidth consumption. Compressing web pages, API responses, and other output can significantly decrease load times, especially for users on slower connections, while reducing server bandwidth costs. DirectAdmin’s PHP Settings interface provides a straightforward method for enabling output compression through custom PHP overrides. This guide explains how to enable output compression using the Account Manager > PHP Settings section in DirectAdmin, improving website performance through automatic content compression for faster delivery to visitors.

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 Account Manager section and click on PHP Settings.

 

Step 3: Enable Output Compression

Scroll down to the Add New Override section. From the Setting drop-down menu, select zlib.output_compression. From the Value drop-down menu, select On. Then, click Add on the bottom right.

 

Step 4: Verify the changes

You may confirm the new override settings in the updated PHP Settings table. Web pages will now be compressed before sending, reducing bandwidth and speeding up load times.

 

Conclusion

Enabling PHP output compression through DirectAdmin’s PHP Settings interface is a simple process that automatically compresses web content before transmission. Activating zlib output compression reduces bandwidth usage and improves page load times by delivering smaller, compressed files to browsers, enhancing overall website performance without requiring changes to your application code.

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.