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

# PHP Configuration Editor (WHM)

## You can edit the general server PHP configuration in two possible ways.

### Use PHP Configuration Editor menu

1. A preferable and safe way is to use the **WHM > PHP Configuration Editor menu**: 

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

2. **Basic Mode** allows editing only commonly changed parameters, so if you want to change some specific settings, switch to **Advanced Mode instead**. 

Once you are done with the changes, click **Save**. You will then be redirected to the page where you can check the new global **php.ini** which is created as a result of your changes: 

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

### Alternatively, you can edit the php.ini file directly via SSH as a root user.

The global **php.ini** file is located in the **/usr/local/lib/** folder. When connected via SSH run:

`nano /usr/local/lib/php.ini`

or 

`nano /usr/local/lib/php.ini`

Once you made all the changes, **save the file and restart** the web server by running: 

`/etc/init.d/httpd restart`
