You can also use an event handler to create the directory and setup files.
You can get the php handler type by querying the database for that domain and only handle if its fastcgi
somethihng like
select php_handler_type from hosting h inner join domains d on d.id=h.dom_id where d.name='${NEW_DOMAIN_NAME}';
You can get the php handler type by querying the database for that domain and only handle if its fastcgi
somethihng like
select php_handler_type from hosting h inner join domains d on d.id=h.dom_id where d.name='${NEW_DOMAIN_NAME}';