A LAMP stack is Linux, Apache, MySQL/MariaDB, and PHP; LEMP swaps Apache for Nginx. Connect over SSH and install the packages for your OS.
LAMP on Ubuntu/Debian:
sudo apt updatesudo apt install apache2 mariadb-server php php-mysql libapache2-mod-php
LEMP on Ubuntu/Debian:
sudo apt install nginx mariadb-server php-fpm php-mysql
Then run sudo mysql_secure_installation to lock down the database, and enable the services with systemctl enable --now apache2 (or nginx and php-fpm). Test PHP with a simple info.php page, then delete it. On unmanaged VPS you handle the setup; managed customers can open a ticket for help.