i have a Centos 6.6 with php 5.6, i need upgrade to php 7
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!
After executing these 3 command lines it gave me this result curl ‘https://setup.ius.io/’ -o setup-ius.sh sudo bash setup-ius.sh sudo yum install mod_php70u php70u-cli
result,
sudo yum install mod_php70u php70u-cli Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile
CentOS 6 does not provide PHP 7, so you will need to use a third-party repository. Luckily, there are a number of community projects that provide more recent versions. In this case, we’ll use the packages from the IUS Project.
To add their repository, run:
- curl 'https://setup.ius.io/' -o setup-ius.sh
- sudo bash setup-ius.sh
Now, you can install the newer PHP packages with:
- sudo yum install mod_php70u php70u-cli
You can find more details in:
(That tutorial is targeted for at CentOS 7, but the information and caveats should still apply to CentOS 6 as well.)
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.