Install and secure LAMP on CentOS
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…


Recent Comments