My webserver
How to configure a LAMP server.
Linux - Apache - MySQL - PHP
dksignmt.com - a Spanish webhost
What to do if I don't want to install a LAMP Server
If we don't want to complicate our lives, but we would like to be able to work with those CMS, the easiest thing will always be to hire a hosting, where Apache 2, MySQL and PHP are already installed.
In fact, phpMyAdmin is also often installed, which allows us to upload and download files from a web interface much more easily.
On the one hand, you have shared hosting, in which you access a part of the server's hard drive for which you have permission via an FTP protocol, or through a web interface. On the other hand, if you want to have more customization options, there are external dedicated servers.
A dedicated server is a complete server, where you hire the hardware and software. If it's a web host, you'll come ready to work with PHP and MySQL databases.
You can access it by SSH from a client program and customize the configurations you want through commands, whether for UNIX or Windows systems. On the web you will find lists of commands for Ubuntu or Windows Server.
If we want to give precise instructions to our server, Apache has a list of all the directives on its website that will allow us to configure and manage the server.
LAMP - Linux Apache MySQL PHP
A LAMP server is a web server that is built on a Linux platform that runs Apache and incorporates a MySQL database and runs PHP, Perl or Python
If your really wanted to host your own website then you could run your own server on your Internet connection. However, this is a LOT of work!
To develop PHP Scripts/Webpages you need a server that supports PHP.
When I was living in Canada I setup and ran a LAMP server in my basement. This consisted of a dedicated computer that was connected to the Internet 24/7.
This computer was constructed from old parts and was relativly low-spec. The speed of the computer was not important as all it needed to do was to "serve" files in response to requests from the Internet. To make the computer visible to the outside world I needed to use a DNS service that pointed requests to my domain name to the computer in my basement. This is similar to what you are getting when you pay for hosting from a 3rd party.
Top
My webserver in Toronto
Configuration
This is a relatively complex proceedure. Linux has to be installed on the computer and the webserver software configured.
I had detals on how to do this along with a discussion on Achache and the directives for operation of the website.