I’m trying to install php7.0-xml, php7.0-mbstring etc. but there’s an error in my centos machine.
sudo yum install php7.0-xml Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
sudo yum install php7.0-mbstring Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
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!
On CentOS 7, PHP is still on version 5.4.16, though 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 packages with:
- sudo yum install php70u-xml php70u-mbstring
You can find more details in:
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.