| |||||||||||
| |||||||||||
User and Group settings for Apache httpd web server
When you're running an Apache httpd web server, you should run it using a separate daemon user account and group set up for the purpose and not run it as either root (a horrific thing to do, as it would lead to all sorts of security holes) or nobody (another very bad idea, as the "nobody" applications can club together and become a somebody, as the Tsars discovered some 90 years ago).
Under Redhat (Fedora) you'll find both user and group numbers 48 set up as "apache" and you should use them. Under SuSE the equivalent is "www" and "wwwrun". Simply put the names or numbers into the httpd.conf file under teh user and group directive. On other versions of *nix, you may need to set up the account yourself. Once you have set up your web server in this way, you can create your developer/deployer's account and the web area to be owned by that developer/deployer, in the same group as the web server. Then use the user permissions to control what the developer can read and write, and the group permissions to control what the web server can read and write. (written 2008-04-22 23:27:03) Associated topics are indexed under A161 - Web Application Deployment - Users and GroupsA603 - Web Application Deployment - Further httpd Configuration
Some other Articles
PHP Techniques - a workshopAn extra step - victory from defeat Linux and Java Course in London Norwich and London User and Group settings for Apache httpd web server A small picture does not always cut it! Steam Engines at Bressingham Not daring to be an anorak PHP training courses every month When an array is not an array 1694 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||