Learn about Linux server configuration

0

04 May 2016

By 

What is Linux server configuration?

A Linux server configuration is basically setting up the server so that it can be used for certain operations within your computer system. You can configure several Linux-based servers such as DHCP (Dynamic Host Configuration Protocol), DNS (Domain Name System), FTP (File Transfer Protocol), NIS (Network Information System), Printer, Sendmail, Telnet, Web, even cloud storage solutions as well as virtualization server. Apparently, there are still many kinds of Linux-based servers to mention.

Linux server configuration Prerequisites

If you want to configure a server that runs on different Linux distributions, then you need to have these standard software prerequisites that utilize rpm commands to initiate and verify Linux server configuration.

1. Fedora Core 1+, CentOS 4/5 and Red Hat Enterprise Linux 4/5
rpm -q httpd bind bind-chroot bind-utils system-config-bind xinetd vsftpd

2. SuSE 9.3
rpm -ivh apache2 apache2-prefork bind bind-chrootenv bind-utils vsftpd

3. Debian, Ubuntu with dapper 6.06/hardy 8.04
apt-get install apache2 apache2-common apache2-mpm-prefork apache2-utils
apt-get install bind9
apt-get install vsftpd

4. Debian, Ubuntu with a natty 11.04/14.04
apt-get install apache2
apt-get install bind9
apt-get install vsftpd

5. Red Hat Enterprise Linux 7.x
rpm -q apache bind inetd wu-ftpd

6. Red Hat Enterprise Linux 8.0
rpm -q httpd bind xinetd wu-ftpd

7. Red Hat Enterprise Linux 9.0
rpm -q httpd bind xinetd vsftpd

*Here is the configuration for a web hosting server. Remember, the rpm command are apr, httpd and httpd-devel for the verification of installation.

[root@server ~]# rpm -qa http*
httpd-manual-2.2.3.-6.e15
httpd-2.2.3-11.e15
httpd-2.2.3.-6.e15
httpd-manual-2.2.3.-11.e15
httpd-devel-2.2.3.-6.e15
[root@server ~]# rpm -qa apr*
apr-docs-1.2.7-11
apr-util-docs-1.2.7-6
apr-1.2.7-11
apr-util-devel-1.2.7-6
apr-devel-1.2.7-11
apr-util-1.2.7-6
[root@Server ~]#

*Using the IP address 192.168.0.254, configure the installation process and verify if it is already running.

[root@Server ~]# ifconfig eth0
eht0 Link enap:Ethernet HWaddr 00.0C:29:11:AD:E1
inet addr:192.168.0.254 Bcast:192.168.0.255
inet6 addr:fe80::20c:29ff:fell:ade1/64 Scope
UP BROADCAST RUNNING MULTICAST MTU:1500 Met
RX packets:0 errors:0 dropped:0 overruns:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:8466 (8.2 KiB)
Interrupt:67 Base address:0x2000

*Begin the httpd daemons, then check if the status is already running.

[root@Server ~]# chkconfig httpd on
[root@Server ~]# service httpd start
Starting httpd:
[root@Server ~]# service httpd status
httpd (pid 5465 5464 5462 5461 5460 5459 5458 5456) is running
[root@Server ~]# pgrep httpd
5456
5458
5459
5460
5461
5462
5463
5464
5465
[root@Server ~]#

How to Configure Virtual Host Based on IP Address

If you to want configure a virtual host using an IP address, then you have to take note that you need to have more than one IP addresses. Each IP address has its own virtualization server and domain. Follow these steps to set up and run a virtual host that is based on IP-based.

NameVirtualHost * – This is where you place the IP addresses
ServerAdmin user0@default-domain.com
DocumentRoot/home/user0/public_html

Do the same process if you have multiple IP addresses. But you need type a different set of codes for the IP address. For instance:
ServerAdmin user1@default-domain.com
DocumentRoot/home/user1/public_html

If you have noticed, the last two digits of the sample IP address has been replaced with 101, user0 with user1. Do the same thing for the rest of the IP addresses: 102 user2, 103 user3, so on and so forth.

Tags

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this