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 adjustments

Discussion in 'General Discussion' started by ozzieonline, Dec 20, 2012.

  1. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello everyone,

    For a week I'm renting a VPS with WHM and cPanel installed. I'm trying to configure everything right now, but there's something I don't understand yet.

    I want to edit the php.ini file. I read it was adviced to change the php.ini file by using the WHM PHP Configuration Editor. So that's what I did. I used the advanced mode to make the required adjustments.

    Now here is my question. For security reasons I would like to add an extra setting (session.cookie_httponly) to the php.ini file. This setting is not available in the PHP Configuration Editor. Now I wonder how I should add the setting. I can edit the file manually, but I read that the setting can be overwritten if an update takes place.

    So my question is, how should I add a value that's not available in the PHP Configuration Editor to the php.ini file? (I do not want to use a .htaccess file!)

    I hope someone can help me. Many thanks in advance.

    Ozzieonline
     
  2. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I see that my post has been viewed 9 times already, but noone has responded yet. Actually I was hoping the solution to my question would be a very basic standard solution. I hope you guys fully understand my question / problem. If not, please say so, so I can try to clarify!
     
  3. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Wow... 105 views and not a single reply :-(
    I hope there will be more response to my future questions.

    Anyhow, I just manually adjusted php.ini
    Hope my settings won't get overwritten.
     
  4. bbrink68

    bbrink68 Active Member

    Joined:
    Nov 27, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hey, I work for a hosting company and we make php.ini edits all the time that never get overwritten, you should be OK.

    Using the editor in WHM is pretty much the same as manually editing.
     
  5. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks for your reply!! I read somewhere that it's best to use the editor in WHM, otherwise my settings could be overwritten if I would update to another version of Apache. Well, I hope you are right and things never get overwritten!
     
Loading...

Share This Page