How is a website published and hosted on the internet? [closed]

-4

My doubt is how a site made with PHP and MySQL is published on the internet? And how do you host it on an online server?

    
asked by anonymous 26.10.2017 / 00:36

1 answer

1

A Web server is roughly a machine with an operating system, a web server software (in the case of Apache or other php), a database server software and application software, the website, with its front-end (html, js) and back-end (php).

A fixed ip is assigned to this machine, a DNS server is responsible for translating the domain (www.example.com) to the corresponding ip ( 33.155.109.105 ).

From the moment that the ip is assigned to the server which in turn has a port configured to be full time waiting for requests, the site is in the air being accessed by ip ( http://33.155.109.105 ) or by the configured domain (% with%).

When a request is made ex: http://www.exemplo.com , the server will look in its root folder for the http://www.exemplo.com/uma_página.php file, which in turn will display the result of its processing as a response to the request.

Your question is wide, so it's not usually the case that there are generic answers like this, which are primarily intended to encourage you to research the minutiae of how this works here, there are very good answers.

    
26.10.2017 / 01:20