Here I have tried to deal with web server setups and securing it.
You have created a separate partition for you htdocs folder and mounted it on /path/to/documentroot. However, when you try to start Apache you get following error ‘DocumentRoot must be directory’.
This is due to SELinux to get Apache working you have 2 ways
- Crude way:- disable SELinux altogether
- Eligible way:- set SELinux context to that directory