I'm setting up a dedicated Web server with one site. It will serve as my company's intranet, inaccessible to the outside world. I've installed Apache2 and PHP4 using Debian's apt-get utility.
By default, Apache's directory (/var/www) and its children are owned by user www-data, group www-data. I do all my PHP source editing on a Windows box because I've been using EditPlus for way too long now. I'd like to utilize its FTP Upload command to update the server, so I also installed vsftpd on my Debian box. The login I'm using is my own (adam) that I've placed on the Debian box. Here are the questions I have:
- When I create a new file through EditPlus and save it using the FTP Upload command inside the program, it's obviously chowning the file as "adam" which will conflict with the "www-data" user Apache runs as. I'm assuming I should either FTP in as www-data or run Apache under a different user?
- If I'm only running one site under Apache, is it really necessary/recommended to run it with user-dirs turned on, going that route? I could then choose /home/adam as the default site path and upload files that way, but it'd still have files chowned as "adam."
Ultimately, I just want to be able to edit my PHP files on my Windows box, upload them (whether they're newly created files or updated files already on the server) to the server, refresh my Web browser and have Apache work without fussing over permission problems.
Is there hope?
Thanks,
Adam