2
I have a server with centos 6.8 I am trying to install
- php 5.5.
- mysql 5.5
- php-mbstring
But it shows error message as: Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
Please tell me step by step guide to install.
2
I have a server with centos 6.8 I am trying to install
But it shows error message as: Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
Please tell me step by step guide to install.
1
to remove the previous install
yum remove php-common-5.3.3-48.el6_8.x86_64
this was suggested on another forum:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
you can install php5.5 using
yum install php55w php55w-opcache
or upgrade your existing installation using
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
package name for mbstring is
php55w-mbstring
the package name for mysql is
php55w-mssql
information for centos was aquired from
https://webtatic.com/packages/php55/
information for linux debian/ubuntu based below
for if you do not have it, you can install the ondrej PPA
add-apt-repository ppa:ondrej/php5
or the general php ppa
add-apt-repository ppa:ondrej/php
if this gives an error for UTF 8 localization you can use
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php5
or
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
then uninstall the previous php installation
sudo apt purge php-common-5.3.3-48.el6_8.x86_64
and update your ppa lists with
sudo apt update
right after if this all went correctly you should be able to use
sudo apt-get install php(version of choice) mysql(version of choice) php-mbstring
sorry, i came to realize that centos doesn't use apt ill be looking for another answer! ill update this once i found the correct answer – Jesse – 2016-12-07T10:23:20.003
you're welcome, just let me know if it worked or not :) – Jesse – 2016-12-07T11:33:30.053
Chick this link for installing php-mbstring
– vembutech – 2016-12-07T10:33:07.000