Israel_Paya

Well-Known Member
Sep 18, 2015
55
4
58
Spain
cPanel Access Level
Root Administrator
I would like to use individual php.ini's per hosting. I have all php.ini file versions (ver. 5.4, 5.6...7.2) I leave the appropriate one inside /public_html/ folder, but does not work. How can I make it work?

Thank you.
 

webhostuk

Well-Known Member
Sep 11, 2013
151
16
68
UK
cPanel Access Level
Website Owner
Twitter
Which WHM/Cpanel version are you using, now Cpanel offers Multi-php ini editor in Cpanel itself did you try to check it?
Login to particular domain Cpanel search for : cPanel >> Home >> Software >> MultiPHP INI Editor

MultiPHP INI Editor
The MultiPHP INI editor writes to the .htaccess, .user.ini, and php.ini files. The system will only write a directive to a file if it is a valid directive for that file type.
cPanel's MultiPHP INI Editor interface only exists on systems that run EasyApache 4 and use the Paper Lantern theme.
 

Israel_Paya

Well-Known Member
Sep 18, 2015
55
4
58
Spain
cPanel Access Level
Root Administrator
Thank you for your reply.
Yes, my server runs with Multi-php. I can modify through Basic mode and Edit mode, but whatever is modified affects all websites in the hostings. What I need is to modify the php.ini per hosting. How can I achieve that, please?
 

Muhammed Fasal

Well-Known Member
Aug 9, 2017
55
12
8
India
cPanel Access Level
Root Administrator
Hi, :)

cPanel now offers Multi PHP Editor both in WHM and cPanel accounts. I think you were tried to change the settings on WHM panel, which will affect server wide. If you want to modify any particular cPanel account's php.ini file, then you would need to perform these steps under their cPanel >> Software >> Multi PHP Editor. This will modify .htaccess, .user.ini, and php.ini file for that particular account.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463

Israel_Paya

Well-Known Member
Sep 18, 2015
55
4
58
Spain
cPanel Access Level
Root Administrator
In the MultiPHP INI Editor, I can modify the php.ini files, but it affects all domains. Also, I can choose the php.ini version to choose per domain, but I cannot modify the php.ini file per domain. There is no option for that.
 

rpvw

Well-Known Member
Jul 18, 2013
1,100
477
113
UK
cPanel Access Level
Root Administrator
@Israel_Paya

The MultiPHP Manager and the MultiPHP INI Editor should both be available from inside cPanel for each domain.

If they are missing, check if you have enabled the MultiPHP Manager and the MultiPHP INI Editor in the feature lists for the packages your domains are using:

WHM >> Home >> Packages >> Feature Manager >> Feature Lists
> Manage feature list (Select from drop-down)
> Edit
> Check the boxs for MultiPHP Manager and the MultiPHP INI Editor (If these are marked as disabled, you will have to modify your disabled feature list first)
> Save

You should now go to the cPanel for the domain you want to change, and you should see the new features available for use.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463