If I am logged in as root and cd to a domain user folder such as /home/mysite/www and I then use drush as follows
drush site-install standard --account-name=mysite --account-pass= "*****"
--db-url=mysql://my_site_admin:"*****"@localhost/my_site
It installs everything as root:root for uid:gid and the site produces error
SoftException in Application.cpp:357: UID of script "/home/sites/mx3/public_html
/index.php" is smaller than min_uid,
How can I install using mysite:mysite for permissions while logged in as root?