2

I'm novice in linux world and I'm french, I don't have a good English. I want to create a data platform with a table in an intranet network!

So, How to setup localhost server with http protocol on apache? Exists a web directory in local on Linux? What packages should I install? How to allow other computers to connect to my localhost?

It is possible to make an intranet server? It is possible connect the localhost to the worldwide?

closed as too broad by Jeff Schaller, thrig, GAD3R, countermode, slm Feb 26 '17 at 0:56

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • once you install apache2 you can see or edit the dociment root (directory webserver ) in /etc/apache2/sites-available/000-default.conf by default is /var/www/html – Emilio Galarraga Feb 25 '17 at 14:12
2

How to setup localhost server with http protocol on apache?

Its depends upon the OS you are using. if you are using Ubuntu

sudo apt-get install apache2

if you are using CentOS/Redhat

sudo yum install httpd

and start service with

service httpd start (or) service apache2 start

and check with localhost:80

you can host your localwebsite at /var/www/html but you have to mention configuration like what content you would like to host and with what address(URL) you wish to access that content.

Exists a web directory in local on Linux? What packages should I install? How to allow other computers to connect to my localhost?

You can not allow other users access your http server via localhost. you can let them access it by with either IP Address and Hostname(DNS or Host entry needed) or URL(DNS or Host entry needed)

It is possible to make an intranet server? It is possible connect the localhost to the worldwide?

Intranet server is possible but making worldwide access with localhost, no not possible. you need to host it either on a static IP or contact some website hoster.

Hosting website with Ubuntu

Hosting website with CentOS

Not the answer you're looking for? Browse other questions tagged or ask your own question.