Need help understanding php56w

Issues related to applications and software problems
Post Reply
rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Need help understanding php56w

Post by rtcary » 2018/03/26 17:19:20

I need to have php 5.6 in order to run Concrete5, so I

Code: Select all

yum install php56w php56w-opcache
on my Centos 7 server.

However I do not know how to make it the version that httpd uses. When I run my testphp.php, the old version is still running. Is php56w the same as the Centos 7 version -- 5.4.16?

Many thanks for any help...

Todd
Last edited by rtcary on 2018/03/26 20:36:06, edited 2 times in total.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help understanding php56w

Post by TrevorH » 2018/03/26 17:41:34

We do not recommend the use of the webtatic repo at all.

If you need an alternative php version then look at either IUS or one of the SCL packages. You will need to completely remove the old php before installing from IUS. The SCL packages install alongside the existing version and need special action to make them active.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Need help understanding php56w

Post by rtcary » 2018/03/26 20:01:14

Thank you. That is the kind of information I need.

\rtc

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Need help understanding php56w

Post by rtcary » 2018/03/26 20:32:14

Whooops! Forgot to ask how to install the IUS php56u package once I have removed php.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help understanding php56w

Post by TrevorH » 2018/03/26 22:33:56

First hit on a google for "ius repo" : https://ius.io/GettingStarted/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Need help understanding php56w

Post by rtcary » 2018/03/27 17:50:16

When I went to ithe ndicated site and executed the link for Centos 7, I got the following:

Code: Select all

https://centos7.iuscommunity.org/ius-release.rpm
bash: https://centos7.iuscommunity.org/ius-release.rpm: No such file or directory
Unfortunately, my knowledge about the use of libraries is limited. This is due in part by the fact that once I get my server up and running, I seldom need to do anything (why I like centos)...it just runs. This is comparison to those who's daily job is keeping Linux based servers running/maintained (greatly admire them).

Todd

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Need help understanding php56w

Post by rtcary » 2018/03/28 02:32:22

I came upon this sequence and would like to get the opinion of people more knowledgeable than me to get an opinion on whether it should work. I do not want to find myself in a situation where I may do harm to my my LAMP configuration. Of course, I'd remove the current php before installing 5.6.

Code: Select all

yum -y update
yum -y install epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://centos6.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*.rpm
yum -y update
yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath php56u-soap

jakepogo
Posts: 3
Joined: 2014/02/07 17:49:48

Re: Need help understanding php56w

Post by jakepogo » 2019/02/12 22:53:12

rtcary - First, please excuse me if I am being out of line but please don't do things like this until you FULLY understand what you are doing.

Okay First, adding the -y flag all over the place is asking for trouble. That "-y" automatically answers a question "Yes" that you should really be thinking about before answering, why would it ask you a question at all if the answer doesn't matter enough to answer?

Next, your yum install epel-release and the next line starting with "wget" are doing the same exact thing. Getting the repository linked using the Yellowdog (YUM) command would be my choice here, (of course without that -y).

The "rpm" line installs the repository using the rpm downloaded by the wget statement two lines up that I told you not to do. If you do choose to use the yum statement you won't need to do that (it does happen behind the scenes, but you dont need to run it)

Finally the "yum (-y) update" statement just checks all of your packages to see if new versions of them have been added to any of the repositories you are linked to, that being said theres really no reason you would want to run it twice in a short amount of time. I am on board with running yum update BEFORE you do something like this but not twice.

All these things being said here is what I personally recommend:

yum update all
yum install epel-release
wget https://centos6.iuscommunity.org/ius-release.rpm (Do you have Centos 6? This link would be different for Centos 7 which is what I thought we were talking about...)
yum install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath php56u-soap

Post Reply