title: Apache permissions issue cant upload files
body: <p>I have recently built my first Debian 6 squeezebox as a LAMP server and all appear to be running fine. It is using the latest Mysql, PHP and Apache.. all installed using the apt-get command.</p>
  
  <p>I have created several domains, and they are all running nicely (CMS systems) with one major exception.</p>
  
  <p>I cannot use the CMS website functions to upload extensions or plugins without changing permissions to 777 first, and then dropping them back to 755 afterwards. Its almost as though the apache service is not running as root, or does not have permissions to the files.. and is more like a public user.</p>
  
  <p>For my personal sites, I suppose this is borderline acceptable, but if I make a CMS for someone else, I cant have them unable to upload their own extensions.</p>
  
  <p>Can anyone advise the best practice (happy to redo everything) for making sure the apache service has the full rights it needs to files and directories so I can leave permissions at 755.. or hell, even 604.</p>
  
  <p>I have created a container in the root called www, and this directory contains a folder in the name of the domain i.e example.com, and in there are folders backup,logs,public.. the website files are in the public directory.</p>
  
  <p>I have configured virtual name servers for all, and of course enabled the site.</p>
  
  <p>Thank you in advance for any assitance</p>