If you use VestaCP and need Apache+Nginx with PHP-fcgid across different versions, you usually end up juggling static vhost templates.

I decided to simplify this with a small Bash-based generator. It lets you insert your own parameters into php.ini and automatically adds a specific vhost option inside the Vesta panel.
Venomen/vesta_template_generator
Script to generate custom domain apache vhost templates for VESTACP - Venomen/vesta_template_generator