# How to Enable or Disable zlib.output_compression in DirectAdmin

> The 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: You have now successfully updated the setting in DirectAdmin, adjusting the compression for PHP output as needed.

- Source: https://support.yash-host.in/directadmin/how-to-enable-or-disable-zlib-output_compression-in-directadmin/
- Topic: Direct Admin
- Last reviewed: 2024-11-07 by Yash Host Support Team
- Publisher: Yash Host Private Limited (https://yash-host.in)

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

1. Log in to your DirectAdmin account.

#### Step 2: Access PHP Settings

1. In the main menu, go to **Account Manager** and select **PHP Settings**.

![](https://cdn.kbassets.in/da-account-manager-php-settings.gif)

#### Step 3: Locate `zlib.output_compression`

1. 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

1. In the value dropdown for **zlib.output_compression**, select **On** to enable compression or **Off** to disable it.

2. Click **Add** to save your changes.

![](https://cdn.kbassets.in/da-php-zlib-output.gif)

#### Step 5: Confirm the Change

1. A confirmation message will appear at the top of the page, indicating that the `zlib.output_compression` setting has been successfully updated.

![](https://cdn.kbassets.in/da-php-zlib-output-added.gif)

You have now successfully updated the `zlib.output_compression` setting in DirectAdmin, adjusting the compression for PHP output as needed.

---
Need help? WhatsApp +91 7660000158 · support@yash-host.in
