The Perfect Server - CentOS 6.2 x86_64 With Apache2 [ISPConfig 3] - Page 2

Choose your time zone:

Give root a password:

Next we do the partitioning. Select Replace Existing Linux System(s). This will give you a small /boot partition and a large / partition which is fine for our purposes:

Select Write changes to disk:

The hard drive is being formatted:

Now we select the software we want to install. Select Basic Server, then check CentOS in the additional repositories field, choose Customize later and click on Next:

The installation begins. This will take a few minutes:

Finally, the installation is complete, and you can remove your DVD from the computer and reboot it:

After the reboot, log in as root.

I want to install ISPConfig at the end of this tutorial which comes with its own firewall. That's why I disable the default CentOS firewall now. Of course, you are free to leave it on and configure it to your needs (but then you shouldn't use any other firewall later on as it will most probably interfere with the CentOS firewall).

Run...

system-config-firewall-tui

... and disable the firewall. Hit OK afterwards:

Confirm your choice by selecting Yes:

If you did not configure your network card during the installation, you can do that now. Run...

system-config-network

... and go to Device configuration:

Select your network interface:

Then fill in your network details - disable DHCP and fill in a static IP address, a netmask, your gateway, and one or two nameservers, then hit Ok:

Next select Save:

You can also specify additional nameservers. Select DNS configuration:

Now you can fill in additional nameservers and hit Ok:

Hit Save&Quit afterwards:

You should run

ifconfig

now to check if the installer got your IP address right:

[[email protected] ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:1D:4F:46
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe1d:4f46/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10753 (10.5 KiB)  TX bytes:5087 (4.9 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2270 (2.2 KiB)  TX bytes:2270 (2.2 KiB)

[[email protected] ~]#

Check your /etc/resolv.conf if it lists all nameservers that you've previously configured:

cat /etc/resolv.conf

If nameservers are missing, run

system-config-network

and add the missing nameservers again.

Now, on to the configuration...

Share this page:

Suggested articles

2 Comment(s)

Add comment

Comments

By:

I am installing a fresh CentOS 6.3 instead of 6.2 following this guide.   The order of installation windows is a bit different for a 6.3 install than 6.2 but most of the information in the steps still apply.  Here is one big difference which gave me tons of frustration on my previous 6.3 install following this guide that I have discovered an easy solution during installation for:

Where the guide says:

"Next we do the partitioning. Select Replace Existing Linux System(s). This will give you a small /boot partition and a large / partition which is fine for our purposes:"

Problem: This isn't true in 6.3, instead, this will give you a large /home partition and a small / partition and a very small /boot partition.  The problem is that for a server we want a large / partition (technically a large /var partition but I just like to make the whole / partition large because its quick & easy)

Solution: Make sure you check the box on the bottom: "Review and modify partitioning layout" before clicking next.  On the next screen, simply swap the size on the / and the /home partitions and you're all set. Make sure to set the /home partition to the / partition size first to free up the resources.

Important: If you don't do this now then you will need to boot from the OS disk later in order to modify the / partition, so best to do it now and save yourself the hassle of running out of room in your /var/www folder later.

By:

If you're like me and completely missed the button to setup your network when setting your server host name during installation, then there are some additional steps to take that may save you some time that I learned the hard way.  I'm installing CentOS 6.3 by the way:

Problem: Even after using system-config-network, the eth0 card won't automatically connect nor will it be set to automatically connect on boot unless you've set these options during install.

Solution:  First use system-config-network as described in the guide to set both the Device Configuration and the DNS Configuration.  After that use the command:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

and update the following settings:

NM_CONTROLLED=yes
ONBOOT=yes
BOOTPROTO=static

Then do a:

reboot

Then run a:

ifconfig

and all should be well to continue with the guide!   Cheers to us button skippers!