MyBB Community Forums

Full Version: A pear package install: Then is Apache (httpd) restart needed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
pear install HTML_BBCodeParser-1.2.2
downloading HTML_BBCodeParser-1.2.2.tgz ...
Starting to download HTML_BBCodeParser-1.2.2.tgz (15,922 bytes)
......done: 15,922 bytes
install ok: channel://pear.php.net/HTML_BBCodeParser-1.2.2
^^^
Does anyone here know:
After installing a new pear package does Apache have to be restarted for the changes to take effect?
Thanks
I'm pretty sure it does.
TBH, Apache doesn't take long to restart so it wouldn't hurt to do it anyways (I always restart the httpd service when adding/removing/editing anything web related just to be safe).
As kujoe said, apache often restartes in 10 seconds max. I suppose it depends on the modules you have installed but it never really takes long Smile
OK thanks all,
I have a more important related question, please.

If apache restarts in ~2 or 3 seconds, and a new visitor tries to connect the exact moment it is down.
Then...
a) the browser will instantly give out a "server not found" message
or
b) the browser will hang for ~2 seconds and then connect.

I prefer 'b', but the real answer is probably 'a'.
If the network (dns) connection is made and Apache is 'down', then there is no time-out or hang it just instantly goes to a "server not found" message.

^^^
Is that correct?
Thanks again

ps. I know the end-user can "refresh", might be a first time user...
A is correct.
OK, thanks KuJoe; It's good to know the truth, even if...

(2010-12-23, 09:15 AM)KuJoe Wrote: [ -> ]A is correct.

Can I throw a 'red flag?' Toungue


#
Edit:
I'm ~97.99% certain using Nginx as "a caching reverse proxy in front of Apache" could be used to serve cached pages "up front" even when Apache is temporarily down, however...
...No time for learning how to set that up now.

I did succeed at setting up Varnish once, but it is useless for forums and any type of SSL pages;
Varnish = Super-fast 100% static pages.
I've read of instances where users run 2 httpd services on a single server which would allow you to serve pages even if one service is down. In all instances the users run Apache strictly for PHP and a smaller service for their static pages. If you were to do something like that then you could have a static HTML page for those few seconds it takes for Apache to restart.

I just did a test and it took less than 1 seconds for the httpd service (Apache) to stop and start again.