# Installing Server

* Install the httpd daemon and restart

```
sudo yum install httpd -y
```

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2FPFDMCe50A0Y7mcpknYCm%2F13?alt=media)

```
sudo systemctl start httpd.service
```

**Check Status**​

```
sudo systemctl status httpd.service
```

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2FvZjK7sIBMS8yDvfPmUuX%2F14?alt=media)

```
sudo systemctl enable httpd.service
```

### **Configure Swappiness and Installing NTP** <a href="#id-47isxfo0c5or" id="id-47isxfo0c5or"></a>

**Configure VM Swappiness**​

```
sudo vi /etc/sysctl.conf
```

Add this line:&#x20;

```
vm.swappiness=0
```

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2FK969QPx3Ty3Om1RF128I%2F15?alt=media)

​Reboot the machine to make the changes effective

### Install the ntp package​

```
sudo yum install ntp -y
```

**Start the service and verify its status.**&#x200B;

```
sudo systemctl start ntpd.service 
sudo systemctl status ntpd.service
```

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2F8fbiEXj5mIKCmssJjFeK%2F16?alt=media)

​**Ensure that the service starts automatically on reboot.**&#x200B;

```
sudo systemctl enable ntpd.service
```
