php.ini for specific accounts
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.
-
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. 0 -
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? 0 -
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. 0 -
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
Hello, You can use the MultiPHP INI Editor within cPanel and choose the domain name to make the changes for: MultiPHP INI Editor for cPanel - Version 66 Documentation - cPanel Documentation Thank you.0 -
You can use the MultiPHP INI Editor within cPanel and choose the domain name to make the changes for:
Will this also work for ALL ini settings if PHP-FPM is the handler, or is that a RTFM question? ;-)0 -
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. 0 -
@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. 0 -
Great! Thank you all! Best regards. 0 -
Will this also work for ALL ini settings if PHP-FPM is the handler, or is that a RTFM question? ;-)
Hello, With PHP-FPM, you have to manually edit the PHP-FPM configuration for the domain name to update the php.ini values: MultiPHP INI Editor Values Not Saved for PHP-FPM Sites Thank you.0
Please sign in to leave a comment.
Comments
9 comments