0

I'm taking over as a system administrator on an existing LAMP server for a site with a number of individual applications. The person I'm replacing has done a pretty good job with security as far as I know, but I'd like to take any preventative measures I can.

With the OWSAP top ten web vulnerabilities as a good place to start, what are critical things to check? I'm looking for both high-level concepts as well as specific things to look for (e.g. file permissions, open ports).

ramblinjan
  • 135
  • 3
  • 2
    Well, you're asking for a guide to secure a server on all fronts (web applications, the server itself, etc.). I think this is too broad to fit here. – Adi Jun 01 '13 at 19:28
  • Possibly a duplicate, but could have a slightly different scope: http://serverfault.com/questions/212269/tips-for-securing-a-lamp-server – Brian Adkins Jun 01 '13 at 22:15

2 Answers2

2

Center for Internet Security (CIS) has extensive guides on how to secure Apache and MySQL. It include everything from file permissions, partition layout, log files best practices etc. For the OS hardening, you would find specific hardening advice for the specific OS as well. It doesn't mean like CIS is the end of the world but what it means is you will find a comprehensive list of security best practices that is not only high level but go on into as much detail as specific commands to run.

The good thing about CIS benchmarks is that once you implement the security settings, you can use many configuration bench-marking tools to audit the security settings against CIS configuration benchmarks. Nessus professional has such a service that I use regularly to audit my own servers.

void_in
  • 5,541
  • 1
  • 20
  • 28
  • You should add these comments to the canonical here http://serverfault.com/questions/212269/tips-for-securing-a-lamp-server – Brian Adkins Jun 01 '13 at 22:15
  • @BrianAdkins You are right. The question is a duplicate of the one you mentioned. I think it will be closed as duplicated shortly. Also, I don't feel any need to paste my comments there because what I have describe here, ScotPack has described in his answer as well. – void_in Jun 02 '13 at 06:22
1

I think the recommendations should be the same as for securing ANY web server...

This may be a duplicate of the canonical question, but I'll leave that to the mods:

https://serverfault.com/questions/212269/tips-for-securing-a-lamp-server

... Plus, change all the passwords.

.

Brian Adkins
  • 1,817
  • 1
  • 17
  • 14