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!

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:
    497
    Likes Received:
    3
    Trophy Points:
    318
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    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:
    497
    Likes Received:
    3
    Trophy Points:
    318
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice