The Raspberry Pi is, perhaps, best used for a headless web-server, but it’s very hard to set up. Not any more.
With this bash script on GitHub, it only takes three commands to have a fully functional LAMP web server. This includes Apache, PHP 5, and MySQL. Look past the break for full instructions, and more info…..
In the future, I plan to add phpMyAdmin support, but for now, it’s simple to install as it is.
Here are the commands (so you don’t have to go to GitHub):
git clone https://github.com/LikeABoss-001/Raspberry-Pi-LAMP-Install-Script.git
sudo chmod +x install.sh && ./install.sh
Feel free to star or fork my work on the GitHub Repo; and, as always, submit an issue ticket if you experience any problems.