Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php.ini for specific accounts

Discussion in 'General Discussion' started by Israel_Paya, Oct 24, 2017.

Tags:
  1. Israel_Paya

    Israel_Paya Well-Known Member

    Joined:
    Sep 18, 2015
    Messages:
    47
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    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.
     
  2. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    128
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    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.
     
  3. Israel_Paya

    Israel_Paya Well-Known Member

    Joined:
    Sep 18, 2015
    Messages:
    47
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    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?
     
  4. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  6. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    862
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Will this also work for ALL ini settings if PHP-FPM is the handler, or is that a RTFM question? ;-)
     
  7. Israel_Paya

    Israel_Paya Well-Known Member

    Joined:
    Sep 18, 2015
    Messages:
    47
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    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.
     
  8. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    618
    Likes Received:
    192
    Trophy Points:
    43
    Location:
    Spain
    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.
     
  9. Israel_Paya

    Israel_Paya Well-Known Member

    Joined:
    Sep 18, 2015
    Messages:
    47
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Great! Thank you all!
    Best regards.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page