I am new to VM’s and need to update the PHP version of my local development environment from php 5.4 to php 5.6.
I was told this can be done from the command line, I just am unfamiliar as to what commands I should be running to do this update.
I have scoured the internet looking for how to update my vagrant box to php 5.6 but have come up empty.
It is important to note that I did not set up the vagrant box or fill it with the necessary packages, our software engineer did this and has instructed me to: “Utilize the box itself (through the virtual machine’s command line) to update PHP yourself.”
Hi @glenn171, maybe if you tell us more about your operating system (Windows, OSX, Linux …) and your server technology (Apache, nginx, lighttpd, …) we will be able to offer some more valuable help as the answers might vary depending…
I’ve never updated php versions on a vm. I always just create a new box using puphpet.com. The nice things about VMs is you can easily throw them away and rebuild them. Not to mention in doing an upgrade from php 5.4 to 5.6 you probably want to have environments available for both while you work through bugs in the upgrade process. Having said that the upgrade process would be the same for your standard Linux machine. I’m surprised you’re having trouble finding articles for updating php, mysql, and apache for your flavor of Linux. I would argue though you should have a separate, new vm if for nothing else to compare and contrast during the process of working out bugs.
Thanks so much for the quick replies, one of the many reasons why I love this forum. As I said earlier I am new to VMs and what exactly they do, I was attempting to upgrade my virtual box from php 5.4 to php 5.6, as I stated, I would google “how to upgrade php version in vagrant box”, or updating php version on virtual machine" and would be sent to discussions about Ubuntu versions and what not. What I finally figured out, was exactly as you said Zookeeper, upgrading the box really is the same for a standard Linux machine. Once I discovered the virtual box for my dev. environment was Centos7.1 It was easy to just follow the various instructions for upgrading php on centos7.1
As of this writing I have successfully updated the virtual machine to php 5.6 by following the instructions here:
I am posting the link in case anyone else who is new to VM’s finds themselves in the same place I did.
Again thanks so much to the PHP community and especially Sitepoint Forums community for your willingness to help out, even those of us with dumb questions.