After restoring vhost, php script executed as www-data not the user

Under Webmin (Debian 8), I restored a vhost (without deleting the existing vhost), then I chose ‘No’ to the question “reallocate UID and GID”, now the php scripts run as www-data, I would like the php script to be ran as the user of the vhost as it was initially.
Thanks