-- To Automate the provision and hosting of LAMP web application to Linux (ubuntu) using Vagrantfile --
Prerequisite:-
- Vagrant (For Automation of Vm's Provisions)
- Hypervisor (Ex. Oracle virtualbox)
- Terminal (Ex. Gitbash)
How to Run:- Step 1. Clone the Repository.
Step 2. Install all Prequisites.
Step 3. Open the Directory using GitBash.
Step 4. Type "vagrant up" and the Vm's will start booting up.
Step 5. After booting of vm, Type "vagrant ssh" which will login to the linux machine.
Step 6. Type "sudo -i" to switch to root user.
Step 7. Type "apt install phpmyadmin -y" to install phpmyadmin to setup connection between database and php scripts.
Step 8. Answer the prompt for phpmyadmin installation.
Step 9: Type "vim /etc/apache2/apache2.conf" and add "Include /etc/phpmyadmin/apache.conf" to last line and save the changes.
Step 10: Type "systemctl restart apache2" to restart apache2 services.
Step 10: Type "systemctl restart mysql" to restart mysql services.
Done!
Validate:- Open browser and search http://192.168.33.15/