Possible PHP 7.1 bug or crash on Centos 7??

Issues related to applications and software problems
User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2017/12/05 16:05:06

It'll be the one that you pick. I see packages for php 7.0 and 7.1 and 5.6 5.5 and 5.4 in the centos-release-scl repos.
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

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

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

Post by grdt » 2017/12/05 16:18:12

thanks, 'TrevorH' for your quick & infomative response.

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

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

Post by grdt » 2017/12/05 18:56:19

* how do you then enable the 'SCL' Repos ?
I have now /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
and /etc/yum.repos.d/CentOS-SCLo-scl.repo

* and howto 'see' the package-version for ex. 'php'?

* and howto install 'php'-7.1 ?

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

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

Post by TrevorH » 2017/12/05 20:06:00

yum install centos-release-scl
yum list \*php71\* (e.g.)
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

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

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

Post by grdt » 2017/12/06 09:56:54

are there any recommendable howto for to install 'OwnCloud'?

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

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

Post by pjsr2 » 2017/12/06 10:13:08

For php5.5 and Nextcloud 11, it is described in the Nextcloud docs. See https://docs.nextcloud.com/server/11/ad ... ation.html. The same method applies for later php scl versions and for Nextcloud 12.

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

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

Post by grdt » 2017/12/06 12:26:03

i've now install rh-php71-php.x86_64 7.1.8-1.el7 @centos-sclo-rh AND 28 other rh-php71-xyz.x86_64 7.1.8-1.el7 @centos-sclo-rh

but still when I hit ...
php -v
PHP 5.4.16 (cli) (built: Nov 15 2017 16:33:54)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

So, what have I done wrong?

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

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

Post by remirepo » 2017/12/06 12:53:17

> So, what have I done wrong?

SCL are installed beside system version.

so:

Code: Select all

scl enable php71 'php -v '
You can read:
https://www.softwarecollections.org/en/docs/
https://access.redhat.com/documentation ... chap-rhscl
https://developers.redhat.com/blog/2017 ... tion-tips/
Remi's Repository - Forum - Blog

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

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

Post by pjsr2 » 2017/12/06 13:33:24

but still when I hit ...
php -v
This command gives you the version number of the php command line interpreter.

The php version that your web server uses, depends on the version of the .so file that is has loaded as the php module.
See the "LoadModule php_module ...." configuration line in your httpd configuration.
To check your php version in the web server, create a small file checkphp.php with the following contents:

Code: Select all

<?php
phpinfo();
?>
and add that to your site.

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

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

Post by grdt » 2017/12/06 14:26:29

ok, when I hit ...
php -v
PHP 5.4.16 (cli) (built: Nov 15 2017 16:33:54)

and then hit ...
scl enable rh-php71 bash

php -v
PHP 7.1.8 (cli) (built: Aug 9 2017 13:20:06) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.8, Copyright (c) 1999-2017, by Zend Technologies

... but it will not remain there!! when i just exit 'X' it will go right back to default php 5.4 ...

so, - howto make that permanent?

Post Reply