Issue
I used CloudFormation to install WordPress on EC2 and RDS. I had to upgrade to PHP 7, but I needed to enable a SOAP client for WordPress. I tried to enable using:
php -i | grep -i soap
yum search php | grep -i soap
sudo yum install php-soap
but received the following errors:
error: php70w-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Is it because the old php-common
5.3.29 is still there? If so, how can I remove and install new php70
, or enable the SOAP client which is my goal?
I used php -v
to check my PHP version, and it is PHP 7.0.14.
Solution
The error is because the php-soap
package depends on php5, not php7. You need to find/use a package of php-soap that depends on the PHP7-based package you currently have installed (php70w
). Perhaps the following command will work instead:
sudo yum install php70w-soap
Answered By - wjordan Answer Checked By - David Goodson (WPSolving Volunteer)