---
title: "How do I edit the php.ini file?"
url: "https://ploi.io/documentation/php/how-do-i-edit-the-phpini-file"
published: "2024-05-13"
last_updated: "2024-05-13"
---

# How do I edit the php.ini file?

In this FAQ, we'll guide you through the steps to edit the php.ini configuration file for your PHP settings. This file controls various PHP settings on your server, such as memory limits, file upload sizes, and execution times. Adjusting these settings can be crucial for optimizing the performance and security of your applications.

**Select your server**

Identify and click on the server you wish to configure. This will bring you to a specific server dashboard where you can manage all aspects of your server's setup.

**Access the PHP Settings**

Within the server dashboard, locate and click on the **PHP** tab. This tab will show you various PHP-related settings and configurations.

![PHP Tab](/storage/images/205d6d88-b759-42ac-b2fd-327eb6aaab03.png "PHP Tab")

**Edit PHP Configuration**

Find the **Edit** button associated with the desired PHP version. Next a dropdown will open, where you can select **Edit FPM ini** to edit your PHP ini file.

![Select PHP version](/storage/images/978762fe-e04e-4ab2-b4e9-9ef90acc54f6.png "Select PHP version")

**Make Your Changes**

You can now edit your PHP settings directly in the text editor provided. Adjust settings such as `upload_max_filesize`, `post_max_size`, `memory_limit`, and any other relevant directives based on your needs.

![PHP ini contents](/storage/images/40d9eae2-a1d0-4c53-898b-7976d9284b04.png "PHP ini contents")

**Save and Apply Changes**

Once you've made the necessary modifications, click the **Save** button to apply your changes. It may be necessary to restart PHP or the web server for the changes to take effect.