A Vagrant project that provisions Oracle Linux LAMP solution automatically, using Vagrant, an Oracle Linux 7 box and a shell script.
Note: This Vagrant project is deprecated. However, the same functionality is available as an extension to the OracleLinux/7 project. For more information, see the LAMP stack section of the OracleLinux/7 README.md file.
Read the prerequisites in the top level README to set up Vagrant with either VirtualBox or KVM
- Clone this repository
git clone https://github.com/oracle/vagrant-projects
- cd vagrant-projects/LAMP
- Run
vagrant status
to check Vagrantfile status and possible plugin(s) required - Run
vagrant up
- The first time you run this it will provision everything and may take a while. Ensure you have a good internet connection!
- The Vagrant file allows for customization.
- SSH into the VM either by using
vagrant ssh
If required, by Vagrantfile you can also setup ssh port forwarding. - You can shut down the VM via the usual
vagrant halt
and the start it up again viavagrant up
. - Guest port "80" (Apache) is redirected to Host port "8080"
Once ready, you can test it by opening following URL on your Host OS:
http://localhost:8080/info.php
.
When installed, this Vagrantfile will make use of the following third party Vagrant plugins:
- vagrant-proxyconf: set proxies in the guest VMs if you need to access the Internet through proxy. See plugin documentation for the configuration.
- vagrant-reload: reload the VM during provisioning to activate the latest kernel.
To install Vagrant plugins run:
vagrant plugin install <name>...
- If you need to, you can connect to the machine via
vagrant ssh
. - On the guest OS, the directory
/vagrant
is a shared folder and maps to wherever you have this file checked out.