httpd not reloads after add new website

vitasis

Verified User
Joined
Nov 2, 2009
Messages
20
Location
Lithuanian
Hello,

i have problem. When my directadmin users add new website directadmin not reloads httpd or reload it only after a long time. :)
 
Make sure your cronjobs are running.

Make sure the command to reload httpd ends up in the task queue.

Make sure that running that task manually restarts httpd.

Jeff
 
I can find task.queue file so i tryed run dataskq manually /usr/local/directadmin/dataskq d, but httpd not reloads. Where can i find command reload httpd in task queue? :)

Make sure your cronjobs are running.

Make sure the command to reload httpd ends up in the task queue.

Make sure that running that task manually restarts httpd.

Jeff
 
If you've got anything at all in your task queue file, then wait about 70 seconds and look again. If the contents is the same, then your cronjobs aren't running.

Jeff
 
when i add new website i can find task.queue and:

action=proftpd&value=reread
action=named&value=reload
action=httpd&value=restart

i think that problem is restart it must be reload, where to change this value in directadim configutarion?

If you've got anything at all in your task queue file, then wait about 70 seconds and look again. If the contents is the same, then your cronjobs aren't running.

Jeff
 
Restart actually does more than reload, so if restart doesn't work, reload certainly won't work.

Is the task queue empty again after 70 seconds? You didn't answer that.

What do you get when you restart Apache manually from the command line? Do you get warnings? Errors?

Jeff
 
Yes after 70 sec task.queue disappears. I have a lot of sites so maybe restart work as gracefully and take long time while restarts? Yes, i can use reload apache manually. So maybe i need change command in task.queue, but how to change? :)

Restart actually does more than reload, so if restart doesn't work, reload certainly won't work.

Is the task queue empty again after 70 seconds? You didn't answer that.

What do you get when you restart Apache manually from the command line? Do you get warnings? Errors?

Jeff
 
FYI, DA can be told to use a graceful restart of apache instead of a full restart.

Note that "reload" is not enough whenever a VirtualHost is added or removed to sue the ssl certificates. Any changes to adding/removing an SSL certificate line requires a full restart, but the graceful method still counts, and is less impactful.

http://www.directadmin.com/features.php?id=980

John
 
Hello,

When the feature was added, it wasn't extensively tested. I didn't want to throw a major change into the gears without knowing the side-effects. So far, I've not heard of any.. so it could be made the default, on the assumption that all of our httpd boot scripts contain the "graceful" option, which I'm pretty sure they do. The only one I found that didn't was for apache 1.3 with FreeBSD.. it did have "graceful" in the boot script, but it just did a full stop/start. I won't be setting it as the default for this release with all of the changes already made (don't want a huge pile of potential problems all at the same time), so we can look at it for a future release.

John
 
Ok. So how change from default action=httpd&value=restart to action=httpd&value=reload in task.queue? I manually edited my task.queue i changed httpd this command reload, but cron not reloads httpd. If i want reload i can only do this from bash /etc/init.d/httpd reload in this way http reloads all new configuration for virtual hosts. :rolleyes:


Hello,

When the feature was added, it wasn't extensively tested. I didn't want to throw a major change into the gears without knowing the side-effects. So far, I've not heard of any.. so it could be made the default, on the assumption that all of our httpd boot scripts contain the "graceful" option, which I'm pretty sure they do. The only one I found that didn't was for apache 1.3 with FreeBSD.. it did have "graceful" in the boot script, but it just did a full stop/start. I won't be setting it as the default for this release with all of the changes already made (don't want a huge pile of potential problems all at the same time), so we can look at it for a future release.

John
 
Back
Top