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.

changes made to php.ini - do I have to restart Apache?

Discussion in 'EasyApache' started by spaceman, Nov 2, 2003.

  1. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Hi All,

    I've just made some minor changes to /usr/local/lib/php.ini and was wondering - in order for these changes to start working, do I have to restart Apache or is there a softer/gentler way of achieving the same?

    Thanks.
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    You have to restart apache for those changes to take place. But restarting apache is no big deal. Just type
    service httpd restart
    in shell.
     
  3. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Thanks. I just restarted Apache via WHM :)

    Supplementary slightly off-topic question: if website visitors are logged into a site using php sessions and I restart Apache, are the sessions destroyed by the restart and they are therefore logged out? This was the real reason I asked the 'do I have to restart Apache' question in the first place.

    Thanks again.
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    No. I actually have my apache set to restart every 10 minutes.:) There were a few times when I first started out that apache would die and not start back up automatically, so that's how I "fixed" it.
     
Loading...

Share This Page