Possible PHP 7.1 bug or crash on Centos 7??

Issues related to applications and software problems
grdt
Posts: 56
Joined: 2013/12/04 08:59:15

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby grdt » 2017/12/07 09:49:21

HowTo switch to the newer PHP versions permanent?

User avatar
remirepo
Posts: 256
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby remirepo » 2017/12/07 10:13:29

Have you read the links in my previous answer ?


BTW, SCL are not designed to replace system default version, but to exist beside it.

For CLI, various ways exist
- source the "enable" script in your profile script
- create a link from /opt/rh/rh-php71/root/usr/bin/php to /usr/bin/php
- etc

For other SAPI (web) just have to use the right mod_php version or fpm version (service) as explained in previous links (PHP Configuration tips).


Else, if you really want a Single version, and don't care of using only CentOS repository, perhaps SCL are not the best way for you.
Ex: using my repo: Configuration wizard
Remi's Repository - Forum - Blog

grdt
Posts: 56
Joined: 2013/12/04 08:59:15

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby grdt » 2017/12/07 20:53:24

How can I go back to my original/current setup after I've
done or using your repo: 'Configuration wizard' ... ?!

Operating system: CentOS 7
Wanted PHP version: 7.1.12
Type of installation: Single version

User avatar
remirepo
Posts: 256
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby remirepo » 2017/12/08 06:52:46

Please don't use private message, I will never reply to them

> * I can not login to my 'Squirrlemail' ?!

Of course, Squirrlemail seems to be a dead project, last news, from 2013, was about php 5.4 compatibility....
So probably not compatible with modern PHP version

> How can I go back to my original/current setup after I've

yum history undo ...


P..S: so, Sofware Collections are exactly designed for such use case.
- one PHP version for legacy application (so 5.4 for Squirrlemail)
- one PHP version for other application (e.g. 7.x)

As described, in previously poste link (PHP Configuration Tips)
Remi's Repository - Forum - Blog

grdt
Posts: 56
Joined: 2013/12/04 08:59:15

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby grdt » 2017/12/08 09:21:15

yea, I see ... and thanks for that!

do you by chance have any recomedation of a 'webmail' client?

User avatar
remirepo
Posts: 256
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby remirepo » 2017/12/08 15:05:53

> do you by chance have any recomedation of a 'webmail' client?

roundcubemail
Remi's Repository - Forum - Blog

bertalanimre
Posts: 134
Joined: 2015/06/02 13:04:03

Re: Possible PHP 7.1 bug or crash on Centos 7??

Postby bertalanimre » 2017/12/11 15:01:49

If I may share my workflow. I'm maintaining a few webservers where we are running laravel applications and OFC we need PHP as well. I'm using the REMI repository and it's 7.1 variant. Here is my command to initialize for installing PHP 7.1 on a webserver:

yum install php php-soap php-fpm php-devel php-mysql php-pear composer libnotify libpng12.x86_64 libpng12-devel.x86_64 pngquant unzip ImageMagick ImageMagick-devel

Also, we had once an old webserver that had to be upgraded from PHP 5.6 to 7.1. What I've done is basically the same, just uninstalled the old PHP packages first, then enabled remi repository, and then installed the required packages.

Please note, that we use PHP-FPM instead of standard php and we create different pools for every webapplication.

I hope it helps somebody.