Archive

Posts Tagged ‘lamp’

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

Debian LAMP + nginx installation for high-loaded webservers

Debian LAMP + nginx installation for high-loaded webservers

Debian LAMP + nginx installation for high-loaded webservers

All below steps have been done on the server which have the latest version of Debian pre-installed. I will setup a standard LAMP installation for a web-server and will install and configure nginx to serve static content for better performance.
Read more…

Articles