In this blog post we will discuss how to setup a simple LAMP stack or in other words a “web server” to host your website on a VPS (Virtual Private Server) or Dedicated Server.
A web server requires an operating system, which in this case will be Linux (Centos 7 64Bit) and three basic modules to function. These three basic modules are Apache, MYSQL and PHP. The modules will be broken down below:
Linux – The Operating System. In this tutorial we will use Centos 7 64Bit.
Apache – The module that delivers the HTTP aspect and the main webserver.
Mysql – The module that provides for databases and storage of information.
Php – The module that delivers the PHP aspect and programming language.
You will need a Virtual Private Server/Dedicated Server installed with Centos 7 64Bit.
Once you have your server let’s dive into the installation.
Installing LAMP (Linux, Apache, MYSQL, PHP) on Centos 7 64bit Server
When you get a new server or have just installed a server the first thing you want to do is make sure your system is up-to date. This can be done by the command below:
sudo yum update