Installing a Web Server Stack on Your VPS
If you prefer managing your server via the command line instead of using a control panel, you can install a web server stack like LAMP or LEMP.
LAMP Stack Installation (Ubuntu/Debian)
sudo apt update
sudo apt install apache2 mariadb-server php libapache2-mod-php php-mysql -y
CopyLEMP Stack Installation (Ubuntu/Debian)
sudo apt update
sudo apt install nginx mariadb-server php-fpm php-mysql -y
CopyAfter installation, run sudo mysql_secure_installation
to secure your database.