Frequently Asked Question

Setting up a Basic Web Server.
Last Updated 6 years ago

1. Establish an SSH connection to your server
ssh root@

2. Install the web server

yum install httpd -y

3. Create a file called index.html in the /var/www/html directory

vim /var/www/html/index.html

4. Press the i key to go into insert mode

5. Type some text in your new file.

6. Press ESC to go back to command mode.

7. Type :wq to wright the changes and quit the text editor.

Congratulations! You now have a working web server with some basic text.

Please Wait!

Please wait... it will take a second!