I just deployed a new droplet. By default, it’s set up with PHP 5.5.9. I would like to upgrade that to v.5.6.
How do I do this?
Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
note that if you are using NGINX and not Apache, this needs to be changed to avoid apache being loaded as part of the install. According to the maintainer of the ppa, the correct approach is to replace
sudo apt-get install php5
with
sudo apt-get install php5 php5-fpm
in the provided sequence of commands
I have followed this guide but seem to have run into problems:
I did the following:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.6
Now what seems to have happened is when I check phpinfo.php it is using 5.5.9 but the cli is using 5.6.24
When I use composer install, It seems all my extensions (intl, mbstring, zip etc…) are not installed. I am a bit lost and would really appreciate any advice :-)
Thanks
Aaron
I followed your instructions but keep getting E: Couldn’t find any package by regex ‘php5.6’
How to fix this?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.