symlink('/etc/nginx/sites-available/'.$vhost['file'], '/etc/nginx/sites-enabled/'.$vhost['file']); exec('nginx -c /etc/nginx/nginx.conf -t 2>&1', $output);