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.
I have created several domains, and they are all running nicely (CMS systems) with one major exception.
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.
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.
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.
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.
I have configured virtual name servers for all, and of course enabled the site.
Thank you in advance for any assitance
imho you need to create one upload-directory(say) under website public directory and set it’s permission to 775..
second thing, the uploaded files might be first going /tmp, so you need to move the uploaded file from there to upload-directory..do ensure that your file is getting successfully uploaded under /tmp first..