Helo, everybody !
I want to set up a web server. To make my work a little bit easyer, I surfed the internet to see how other web sites/servers are configured, and a few questions joined my mind (as I've never done a web server). So, my main question is:
- How can I add some users from a web page, without setting apache to run as root ?.
I guess that you agree with me when I say that it's realy stupid to run a web server as root. Anyway, what I realy want is not only that... I want the script that I'll create to add a user, and to create a public_html directory in the user's home directory, and also copy into that directory a PHP script (phpMyAdmin). Also, after I'm doing this, I want to set in the /etc/ftpchroot file the user name...
So, shortly, this is what I want to do. How can I do it, without configuring apache to use root as the default user, and without changing the file atributes (for ftpchroot and other files that I wouldn't like to modify) ? Any sugestions ? Any FM to read
? Or some tutorials... or just a few words to get the ideea...
I'll appreciate any kind of help.
Thanks !