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