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


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:

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


yum install vsftpd

Conf file /etc/vsftpd/vsftpd.conf


yum install webalizer


Was this answer helpful?

 Print this Article

Also Read

php increase max file size upload

For increase maximum size of uploads file you should set only one setting in php.ini. Set...

Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local. For example:...

Usefull linux tools

please note: for installing some toosl you ned to connect EPEL repo first. htop -extened version...

OpenVPN Access Server

§  Install OpenVPN Access Server Be sure that you are using a clean system and no...

Oracle 11g EX on Centos 6 x64 vps

We describe how to install Oracle 11g Express on Centos 6 x86_64 Openvz VPS. First of all you...