The Raspberry Pi might look like a small, almost inconsequential computer, but don’t let looks deceive you. It is a fully functional Linux machine capable of performing a large variety of functions including acting as a local web server.
The most common setup for a Linux-based web server is a “LAMP” server, where LAMP stands for Linux, Apache, MySQL and PHP. The default operating system for the Pi is Linux, specifically Raspbian and it can also run Apache, as the web server; MySQL, as a database; and PHP, for server-side scripting.
Full article here:
How to Use a Raspberry Pi as a Local Web Server (Make Tech Easier)