Installing LAMP (Linux, Apache, Mariadb, PHP) is quite easy with Salt. We will use my previous LAMP installing guide as reference.
Thats it for the installing! So easy. But we need to remove default html page for security reasons, attackers will always look for newely installed apache instances with it and it could point to weaknesses. So we make a new index.html file inside our salt master that we will use to replace the default one. It can be anything, I made it to say.
Its as easy as with Apache now we just add PHP to the mix.
This time assignment was left a bit unfinished do to playing too much around with the final courseproject. You can find it here.