How to Enable or Disable zlib.output_compression in DirectAdmin
The zlib.output_compression
setting in PHP compresses the output of PHP scripts, which can improve loading speed for users. Here’s how to toggle this setting on or off in DirectAdmin:
Step 1: Log in to DirectAdmin
- Log in to your DirectAdmin account.
Step 2: Access PHP Settings
- In the main menu, go to Account Manager and select PHP Settings.

Step 3: Locate zlib.output_compression
- On the PHP Settings page, find the zlib.output_compression option in the dropdown list.
Step 4: Set zlib.output_compression
to On or Off
- In the value dropdown for zlib.output_compression, select On to enable compression or Off to disable it.
- Click Add to save your changes.

Step 5: Confirm the Change
- A confirmation message will appear at the top of the page, indicating that the
zlib.output_compression
setting has been successfully updated.

You have now successfully updated the zlib.output_compression
setting in DirectAdmin, adjusting the compression for PHP output as needed.
Was this article helpful?
YesNo