You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Leif W <wa...@usa.net> on 2003/08/30 22:28:38 UTC
[users@httpd] Apache2 security, performance, flexibility tuning.
Hello,
My scenario is a home-based system (Linux on a PC) running Apache, with PHP
as a DSO, where most of the settings are defaults, and likely insecure. For
practice, I want to learn how to secure my system as if it were a multi-user
shared webhosting environment. As it stands now, I'm reading through the
docs and Googling for some information, but still can't grasp everything
that I need to do.
First I guess I need to discover what criteria exist and how I would
prioritize them to suit my needs.
1) Security - issues of security are of primary concern
2) Flexibility - Has to have typical shared hosting flexibility, i.e. users
are securely isolated from each other, but still multiple users have access
to multiple sites, and run PHP, Perl, access MySQL, do Authentication and
SSL, etc..
3) Performance - it's a small server with little to no traffic (mostly
bots/viruses/worms), so if a choice needs to be made between performance and
security, go with security.
What other criteria might I need to be aware of?
Second, based on the main list of prioritized criteria, I then need to know
all the options available to me and then make the choices and put everything
together into a working system.
Here are some examples of things I am reading about but not sure which
direction is "better", or what advantages/disadvantages there may be.
1) suEXEC vs. CGIWrap - differences, pros/cons
2) Running PHP as a module (DSO or builtin) or a CGI (with suEXEC or
CGIWrap)?
3) Running Perl as a mod_perl or a CGI (with suEXEC or CGIWrap)?
4) SuexecUserGroup Directive inside each VirtualHost to set each site to run
as a different user, or run all sites as nobody/nogroup?
5) For VirtualHosts, chmod 775 and 664 for directories or scripts and files
for user and group access to the same files, or restrict to single-user, 755
644?
Some starting points for security issues:
Apache2 security: http://httpd.apache.org/docs-2.0/misc/security_tips.html
PHP security:
http://www.linuxsecurity.com/feature_stories/feature_story-117.html
Can you suggest further readings or HOWTOs where this has been discussed?
Third, I need to test my criteria.
1) Security: tools like nikto, nmap, etc. Suggest other security auditing
tools that are either Apache/web specific or networks in general?
2) Flexibility: I test to see if it meets hypothetical clients' (my)
expectations.
3) Performance: benchmarking tools like ab, scanning conf files for
performance tuning options, etc.
4) Other: other (suggestions)
Leif
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org