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-devel
yum update

Apache 

yum install httpd

Set Apache to start at boot:

chkconfig httpd on

You 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-mysql

Postfix, 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 sendmail
yum install postfix dovecot

Conf file /etc/postfix/main.cf

Ftp

yum install vsftpd

Conf file /etc/vsftpd/vsftpd.conf

Webalizer

yum install webalizer

 

Was this answer helpful?

 Print this Article

Also Read

Epel Centos

Some packages are missing from the base repository. This guide shows how to install RHEL EPEL...

Php

Can I help you? Our agents are ready to assist you. Click "Chat Now" to be...

Adding a new disk drive to Centos 6

Installing a new HDD The disk drives in Centos is named hd* or sd*. In system with only one...

Changing mac address in VMware

In Centos: 1. Edit old mac HWADDR=XX:XX:XX:XX:XX:XX in the file...

Security tips for Linux server

1. Use only  strong passwords for all accounts , especially for root. Always use a secure root...