Centos 6 Webserver
In this article we will install some software that is useful on a webserver based on Centos 6.
For the beginning let us install some packages that will be useful later:yum install nano wget fetchmail zip unzip bzip2 nmap openssl lynx fileutils ncftp gcc gcc-c++ gd-develyum updateApache
yum install httpdSet Apache to start at boot:
chkconfig httpd onYou can print installed httpd modules with the command httpd -l:
[root@webserver]# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
Conf file /etc/httpd/conf/httpd.conf
MySQL + php
yum install mysql-server php php-mysqlPostfix, POP3/IMAP server
Note that default MTA in Centos is sendmail, so if you want to use postfix you should remove sendmail first:
yum remove sendmailyum install postfix dovecotConf file /etc/postfix/main.cf
Ftp
yum install vsftpdConf file /etc/vsftpd/vsftpd.conf
Webalizer
yum install webalizer