![]() ![]() ![]() The downside to that decision is that we’ll be “stuck” at version 7.4 of PHP even though the most current version of PHP is 8.0. Setup Our VM To Use An Alternative Repositoryįor this setup, we’re using the Long Term Support (LTS) release of Ubuntu so we have 5 years of support. To get our installation working there are several things we need to do. ![]() Let’s take a step back and discuss what needs to happen to set up a LAMP stack using Ubuntu, Apache, MySQL, and PHP 8. We’ve found that as the complexity of the provisioning increases it’s best to move to a solution like Ansible, Puppet, or Chef.Ĭonfig.vm.network "private_network", ip: "192.168.33.10"Ĭonfig.vm.synced_folder ".", "/home/vagrant/our-awesome-project"Ĭonfig.vm.provision "shell" path: "setup.sh" There are several different provisioners supported by Vagrant but the shell mode is nice because it allows us to keep all of the provisioning steps inside the Vagrantfile and doesn’t require any additional software. To get started we’re going to use the “inline” mode of the “shell” provisioner. We define this set of commands using the config.vm.provision directive in our Vagrantfile. Vagrant will automatically run these commands when we vagrant up our environment the first time and it also provides the vagrant provision command to have it run the provisioning manually. One of the pieces of Vagrant we haven’t discussed yet is the ability for Vagrant to install and setup packages in our VMs using its provisioning system. We’ve spent a lot of time discussing how to use Vagrant to create our development environment so now it’s time to bring everything we’ve learned together so we can finally develop some code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |