---
title: How to adjust PHP INI settings on CentOS Web Panel (CWP)
description: "In **CWP (CentOS Web Panel)**, PHP settings such as file upload size, memory limits, and maximum execution time are managed through the `php.ini` file If you have CWP Pro, you are able to set a different PHP version or each…"
url: "https://truehost.com/support/knowledge-base/how-to-adjust-php-ini-settings-on-cwp/"
updated: "2024-10-04"
category: Cloud servers in Kenya
---

# How to adjust PHP INI settings on CentOS Web Panel (CWP)

In **CWP (CentOS Web Panel)**, PHP settings such as file upload size, memory limits, and maximum execution time are managed through the `php.ini` file

If you have CWP Pro, you are able to set a different PHP version or each domain then adjust these settings independently per domain

If you have the free version of CWP, you will set one PHP version globally, then adjust the INI settings for the current PHP version, and that will apply for all domains if done from **[WHM Admin Panel.](https://truehost.com/support/knowledge-base/how-to-access-cwp-main-whm-panel/)**

We will use the Free version of CWP, in this guide

### Prerequisites:

- **CWP installed** on your server.
- **Root access** to your CWP server.

## **A. Adjust from Admin Panel**

##### **Step 1:** **Log in to the CWP Admin Panel** using **[these](https://truehost.com/support/knowledge-base/how-to-access-cwp-main-whm-panel/)** steps.

##### **Step 2**: **Select the PHP Version** for your server

- Use **[these steps](https://truehost.com/support/knowledge-base/how-to-change-the-php-version-in-control-web-panel-cwp/)** to set a PHP version that you desire

##### **Step 3: Navigate to PHP Settings**

- Once logged in, go to the left-hand menu and select **PHP Settings**.
- Click on **PHP.ini Configuration**. This will give you access to the PHP configuration settings for various PHP versions installed on your server.
- You will see a page with an editor, as in the image below;

![](https://truehost.com/support/wp-content/uploads/2024/10/image-118-1024x673.png)

##### **Step 4: Adjust PHP.ini Settings**

- On the PHP configuration page, you will see various settings related to your PHP environment.
- You can manually edit the `php.ini` settings.
- Using the (CTRL+F) search will help you get the values fater, as in the image below
- Some common settings to adjust include:
  - **upload_max_filesize**: you can set to 512M
  - **post_max_size**: you can set to 512M
  - **memory_limit**: you can set to 800M

![](https://truehost.com/support/wp-content/uploads/2024/10/image-119.png)

- Once done, click on**Save changes** to save

![](https://truehost.com/support/wp-content/uploads/2024/10/image-120.png)

## **B. Adjust from User Panel**

##### **Step 1:** **Log in to the CWP user cPanel** using **[these](https://truehost.com/support/knowledge-base/how-to-access-cwp-users-cpanel/)** steps.

This is the cpanel for a specific domain

##### **Step 2: Locate the Edit PHP INI Option**

- On the user panel's landing page, scroll down to find **Edit php.ini**option, as in the image below;
- Click on it **Edit php.ini**

![](https://truehost.com/support/wp-content/uploads/2024/10/image-121-1024x630.png)

##### **Step 3: Adjust the values as desired**

- On the php.ini editor, you will see a page with various options to choose and values to fill.
- **Domain**: In this section, you will choose the domain whose INI settings you want to adjust
- Using the basic editor, adjust the values as you desire. Below are the common ones
  - **upload_max_filesize**: you can set to 512M
  - **post_max_size**: you can set to 512M
  - **memory_limit**: you can set to 800M
  - **max_execution_time**
  - **display_errors**

- Once you have adjusted the values and clicked the blue tick for each, you will not click on Update changes to save all changes, as shown in the image below

![](https://truehost.com/support/wp-content/uploads/2024/10/image-122-1024x612.png)

If your server is with **Truehost**, you may reach our **[support team](https://wa.me/19726743814)** in case you need further guidance.
