Archive

Posts Tagged ‘security’

Complete CentOS secure server setup

complete-centos-secure-server-setup
This guide describes how to quick install a CentOS based webserver. It mainly focuses on performance and security.
Read more…

Articles

Secure existing PHP installation

secure_php

Secure PHP

It is impossible to achieve a high level of security for PHP applications in a production environment. However, with some security tips, you can avoid common mistakes and protect yourself from the most frequent attacks.
Read more…

Cheatsheets

Install and secure LAMP on CentOS

centos-secure-lamp

Use YUM to retrieve and install the Apache HTTP server and additional components. After that, start the web-server and put it on startup:

yum install httpd httpd-devel
service httpd start
chkconfig httpd on

Next step is securing Apache. Edit the config /etc/httpd/conf/httpd.conf and set:

ServerSignature Off
ServerTokens Prod
ErrorDocument 500 "Internal error"
ErrorDocument 404 "Not found"

First line tells Apache to not display the server version on generated pages. The second one makes the web-server to return only "Apache" in the header response.
Read more…

Cheatsheets