Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up an app which builds new websites. I am creating virtual host files automatically when a user signs up.

Is there a "right" way to enable the virtual host and reload apache from the web app or should I delegate that task to a cron job with root privileges? I added www-data to the sudoers folder but I still have a permission denied in my error log.

Ubuntu 11.10 running Apache/Mod_PHP

share|improve this question
up vote 4 down vote accepted

Seems like dynamic vhosts are very useful in your situation. You don't need to reload apache in case with vhosts at all.

share|improve this answer
You're right, this seems like the best path = ) – Calvin Froedge Jun 26 '12 at 19:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.