If you're setting up a RedHat or Centos server from a VPS server without a control panel, setting up a LAMP (Linux, Apache, MySQL and PHP) can be a nuisance. Here is a basic setup guide for bringing your Linux server for LAMP development environment.
RedHat / Centos 8
Starting with RHEL & Centos 8, there is a new package management tool "dnf" which replaces "yum". You may still use "yum", but we'll use dnf to illustrate the LAMP setup. Centos 8 has SSL root certificate issue, so we'll reinstall the ca-certificates package.