This article will tell you how to set PHP versions for your different domain websites in WHM, it also tells you how to change PHP memory size in WHM.
1. Set WebSite PHP Version In WHM.
- Log into WHM use url https://<vps-server-ip>:<whm-port> with root user.
- Search the keyword php in the top left search box.
- Click the MultiPHP Manager menu item under the Software category.
- Scroll down on the right page, then you can see the account list.
- In the account list, each line represents one account, the table headers are account Domain, Account, Account Owner, PHP Version.
- You can change the PHP Version for each domain from the drop-down list below the PHP Version column header.
2. Change PHP Memory Size.
- Search the keyword php in WHM left navigation panel, then click the MultiPHP INI Editor menu item under the Software category.
- On the right pane, click the Basic Mode tab, then select the PHP version which you want to change the settings from the dropdown list.
- Then you can change most php configuration settings below the drop down list. The php setting contains such as memory_limit, max_upload_size, max_execution_time, max_input_vars, post_max_size.
- To increase PHP memory size, please change the memory_limit value to a bigger one.
- Then click Apply button to save the changes.