I am setting up a LAMP server in VirtualBox for personal development. This will be an Ubuntu Server 12.04 install, and I will be using Virtual Hosts for Drupal, Yii, and other small PHP apps. Ideally I'd like to avoid creating new Virtual Hosts in /var/www
and instead opt for creating these under a public_html
folder in my user's home directory.
Is there any benefit in creating another user (non-root) that will "host" these apps in their home directory, or will the root user created in the setup process suffice? I realise I'm being a bit pedantic by asking this, but its based on a recommendation I saw on another site (can't remember the URL) for setting up a LAMP server for personal development. I imagine this is only critical in a production environment. I'm thinking in terms of permissions, security, etc.
EDIT: Will I run into any issues using the root user to this end, or would I be safer creating a new non-root user?
EDIT2: Please don't down-vote this post! I would really like some clarity on this as I'm still walking the Linux learning path :)