Question

How to install a html5 website on the Linux server?

For example, what kind of working environment, frameworks, etc. Is there any general instruction or video I can watch?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You can use a webserver such as Apache to serve HTML files. Apache can be installed by using the commands below depending on your OS.

Ubuntu:

sudo apt-get update
sudo apt-get install apache2

CentOS:

sudo yum install httpd
sudo service httpd start

After you have installed apache like MDS says with that command, you can upload your HTML site inside

/var/www/html

If you want to configurate apache to handle domains, you need to create a VHOST. You can learn more about this in another tutorial

I installed a wordpress website before but everything is configured by Digital Ocean; what am I supposed to do for normal html site?