> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mochahost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom PHP.INI creation (CPanel)

## Enable Custom PHP.INI

In order to enable your Custom PHP.INI being processed by the Apache server, please follow the steps below:

1. Login to your Cpanel.

![](https://tutorials.my-virtual-panel.com/articles/1php.png)

2. Click on **File Manager**.

![](https://tutorials.my-virtual-panel.com/articles/2php.png)

3. Upload your **custom php.ini** file to the directory you desire and **edit the .htaccess** file so the Apache server will know where to find it.

![](https://tutorials.my-virtual-panel.com/articles/3php.png)

4. Add the following code to your php.ini:

`SetEnv PHPRC /home/user/.../`

Note: /home/user/... being the exact directory under which you have uploaded your php.ini

![](https://tutorials.my-virtual-panel.com/articles/4php.png)

5. Click **Save**.

![](https://tutorials.my-virtual-panel.com/articles/4aphp.png)
