#Download apache web server raspberry pi how to#
A specific language (SQL), to grab the needed data precisely (from PHP for example) How to install web server components?Īt this point, you should understand what is each component (Apache, PHP and MySQL), and if you need it or not.A client, to connect the server locally or remotely.A server, to store data in files and answer requests.MySQL is a way to manage a database on your web server, to store any data you need to keep on your site.įor example, on RaspberryTips, there is a database with all the posts, all the images links, all the comments, etc … I’ll show you examples later in this post to better understand this part. Apache always display static HTML code, but this time PHP generated it before.PHP compiles the PHP code in your page (via an Apache module).
Here’s what happens when a visitor sees your page: HTML is a static page language you can supercharge with PHP code to make your page look different depending on external conditions (visitor language, visitor history, time of the day, etc …).
PHP is here to bring dynamic content to your web pages. HTML is a language served by Apache and readable by your web browser to display web pages. Typically, it’s an HTML page for your website or the app you’re using on the Raspberry Pi. It works because Apache is here to respond to your browser requests on ports 80 and 443.Īpache receives a request on and has to display something, depending on your Apache configuration. HTTP and HTTPS are the main protocols on the Internet for web surfing The main goal for the Apache service is to answer requests on HTTP and HTTPS ports of your Raspberry Pi.
#Download apache web server raspberry pi pdf#
Grab your free PDF file with all the commands you need to know on Raspberry Pi!īefore going deeper about the installation steps, I want to be sure that everyone understand what we are doing and how a web server works.