Set Up Apache Virtual Hosts on CentOS 8

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
shoq_jedi
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Apr 21, 2020 1:51 pm

Set Up Apache Virtual Hosts on CentOS 8

Post by shoq_jedi »

Hi, I am a long time gamer here and Linux enthusiast. I’ve played on NFO servers for years, and have also hosted my games on them a couple of times as well.

Currently, I am trying to transfer my business website to this server for security concerns. Also, because NFO servers seem to kick a$$ when it comes to speed I want to try them for load time purposes as well.

If it goes well, I would also like to use NFO servers for clients for speed and security purposes. I think I have it mostly done. I am just having trouble getting the document root setup.

I followed this tutorial here
But when I try  
root@xx.xx.xxx.xxx:~# apachectl configtest
I get this error
httpd: Syntax error on line 34 of /etc/httpd/conf/httpd.conf: ServerRoot must be a valid directory
So I wonder is 
ServerRoot wml"
in httpd.conf Is correct or could it be a typo? When I set it to be the same as my document root, I get a different error.
root@ xx.xx.xxx.xxx:~# apachectl configtest
httpd: Syntax error on line 59 of /etc/httpd/conf/httpd.conf: Could not open config directory /var/www/xxxxxxxx.com/wp/conf.modules.d: No such file or directory
I can't find anything on the net about 
ServerRoot wml"
So I am thinking this is a typo.Please help, I've been having security issues on my Rackspace hosting for years, I'd like to try NFO for my hosting instead. But at this point, I do not trust any inexpensive foreign contractors to help me, as weird things keep happening. I would prefer to be the only one who knows my root passwords and has top-level keys.
shoq_jedi
New to forums
New to forums
Posts: 2
Joined: Tue Apr 21, 2020 1:51 pm

Re: Set Up Apache Virtual Hosts on CentOS 8

Post by shoq_jedi »

Answered my own question. It should be
ServerRoot "/etc/httpd"
But, speaking of. Which stack does NFO recommend? LAM?

I tried to delete or edit that above. Does not appear that I can.
Post Reply