Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:centos_7_-_sclo_software_collections

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:centos_7_-_sclo_software_collections [2017/11/29 09:01] – [PHP 7.1: Konfiguration] klaustachtler:centos_7_-_sclo_software_collections [2017/11/29 15:15] (aktuell) – [/etc/opt/rh/rh-php71/php-fpm.d/www.conf] klaus
Zeile 131: Zeile 131:
 <code> <code>
 # yum install rh-php71 # yum install rh-php71
 +Loaded plugins: changelog, priorities
 +276 packages excluded due to repository priority protections
 +Resolving Dependencies
 +--> Running transaction check
 +---> Package rh-php71.x86_64 0:1-1.el7 will be installed
 +--> Processing Dependency: rh-php71-runtime(x86-64) = 1-1.el7 for package: rh-php71-1-1.el7.x86_64
 +--> Processing Dependency: rh-php71-runtime for package: rh-php71-1-1.el7.x86_64
 +--> Processing Dependency: rh-php71-php-pear for package: rh-php71-1-1.el7.x86_64
 +--> Processing Dependency: rh-php71-php-common(x86-64) for package: rh-php71-1-1.el7.x86_64
 +--> Processing Dependency: rh-php71-php-cli(x86-64) for package: rh-php71-1-1.el7.x86_64
 +--> Running transaction check
 +---> Package rh-php71-php-cli.x86_64 0:7.1.8-1.el7 will be installed
 +---> Package rh-php71-php-common.x86_64 0:7.1.8-1.el7 will be installed
 +--> Processing Dependency: rh-php71-php-zip(x86-64) = 7.1.8-1.el7 for package: rh-php71-php-common-7.1.8-1.el7.x86_64
 +--> Processing Dependency: rh-php71-php-json(x86-64) = 7.1.8-1.el7 for package: rh-php71-php-common-7.1.8-1.el7.x86_64
 +---> Package rh-php71-php-pear.noarch 1:1.10.4-1.el7 will be installed
 +--> Processing Dependency: rh-php71-php-xml for package: 1:rh-php71-php-pear-1.10.4-1.el7.noarch
 +--> Processing Dependency: rh-php71-php-posix for package: 1:rh-php71-php-pear-1.10.4-1.el7.noarch
 +---> Package rh-php71-runtime.x86_64 0:1-1.el7 will be installed
 +--> Processing Dependency: scl-utils for package: rh-php71-runtime-1-1.el7.x86_64
 +--> Processing Dependency: policycoreutils-python for package: rh-php71-runtime-1-1.el7.x86_64
 +--> Running transaction check
 +---> Package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be installed
 +--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libselinux-python for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
 +---> Package rh-php71-php-json.x86_64 0:7.1.8-1.el7 will be installed
 +---> Package rh-php71-php-process.x86_64 0:7.1.8-1.el7 will be installed
 +---> Package rh-php71-php-xml.x86_64 0:7.1.8-1.el7 will be installed
 +---> Package rh-php71-php-zip.x86_64 0:7.1.8-1.el7 will be installed
 +---> Package scl-utils.x86_64 0:20130529-18.el7_4 will be installed
 +--> Running transaction check
 +---> Package audit-libs-python.x86_64 0:2.7.6-3.el7 will be installed
 +---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
 +---> Package libcgroup.x86_64 0:0.41-13.el7 will be installed
 +---> Package libselinux-python.x86_64 0:2.5-11.el7 will be installed
 +---> Package libsemanage-python.x86_64 0:2.5-8.el7 will be installed
 +---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
 +---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
 +--> Finished Dependency Resolution
 +
 +Changes in packages about to be updated:
 +
 +
 +Dependencies Resolved
 +
 +================================================================================
 + Package                  Arch     Version               Repository        Size
 +================================================================================
 +Installing:
 + rh-php71                 x86_64   1-1.el7               centos-sclo-rh   4.1 k
 +Installing for dependencies:
 + audit-libs-python        x86_64   2.7.6-3.el7           base              73 k
 + checkpolicy              x86_64   2.5-4.el7             base             290 k
 + libcgroup                x86_64   0.41-13.el7           base              65 k
 + libselinux-python        x86_64   2.5-11.el7            base             234 k
 + libsemanage-python       x86_64   2.5-8.el7             base             104 k
 + policycoreutils-python   x86_64   2.5-17.1.el7          base             446 k
 + python-IPy               noarch   0.75-6.el7            base              32 k
 + rh-php71-php-cli         x86_64   7.1.8-1.el7           centos-sclo-rh   2.7 M
 + rh-php71-php-common      x86_64   7.1.8-1.el7           centos-sclo-rh   648 k
 + rh-php71-php-json        x86_64   7.1.8-1.el7           centos-sclo-rh    52 k
 + rh-php71-php-pear        noarch   1:1.10.4-1.el7        centos-sclo-rh   356 k
 + rh-php71-php-process     x86_64   7.1.8-1.el7           centos-sclo-rh    61 k
 + rh-php71-php-xml         x86_64   7.1.8-1.el7           centos-sclo-rh   159 k
 + rh-php71-php-zip         x86_64   7.1.8-1.el7           centos-sclo-rh    89 k
 + rh-php71-runtime         x86_64   1-1.el7               centos-sclo-rh   1.1 M
 + scl-utils                x86_64   20130529-18.el7_4     updates           24 k
 + setools-libs             x86_64   3.3.8-1.1.el7         base             612 k
 +
 +Transaction Summary
 +================================================================================
 +Install  1 Package (+17 Dependent packages)
 +
 +Total download size: 7.0 M
 +Installed size: 21 M
 +Is this ok [y/d/N]: y
 +Downloading packages:
 +(1/18): audit-libs-python-2.7.6-3.el7.x86_64.rpm            73 kB   00:00     
 +(2/18): checkpolicy-2.5-4.el7.x86_64.rpm                   | 290 kB   00:00     
 +(3/18): libcgroup-0.41-13.el7.x86_64.rpm                    65 kB   00:00     
 +(4/18): libselinux-python-2.5-11.el7.x86_64.rpm            | 234 kB   00:00     
 +(5/18): libsemanage-python-2.5-8.el7.x86_64.rpm            | 104 kB   00:00     
 +(6/18): policycoreutils-python-2.5-17.1.el7.x86_64.rpm     | 446 kB   00:00     
 +(7/18): python-IPy-0.75-6.el7.noarch.rpm                    32 kB   00:00     
 +warning: /var/cache/yum/x86_64/7/centos-sclo-rh/packages/rh-php71-1-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f2ee9d55: NOKEY
 +Public key for rh-php71-1-1.el7.x86_64.rpm is not installed
 +(8/18): rh-php71-1-1.el7.x86_64.rpm                        | 4.1 kB   00:00     
 +(9/18): rh-php71-php-cli-7.1.8-1.el7.x86_64.rpm            | 2.7 MB   00:00     
 +(10/18): rh-php71-php-common-7.1.8-1.el7.x86_64.rpm        | 648 kB   00:00     
 +(11/18): rh-php71-php-json-7.1.8-1.el7.x86_64.rpm          |  52 kB   00:00     
 +(12/18): rh-php71-php-pear-1.10.4-1.el7.noarch.rpm         | 356 kB   00:00     
 +(13/18): rh-php71-php-process-7.1.8-1.el7.x86_64.rpm        61 kB   00:00     
 +(14/18): rh-php71-php-zip-7.1.8-1.el7.x86_64.rpm            89 kB   00:00     
 +(15/18): rh-php71-runtime-1-1.el7.x86_64.rpm               | 1.1 MB   00:00     
 +(16/18): rh-php71-php-xml-7.1.8-1.el7.x86_64.rpm           | 159 kB   00:00     
 +(17/18): setools-libs-3.3.8-1.1.el7.x86_64.rpm             | 612 kB   00:00     
 +(18/18): scl-utils-20130529-18.el7_4.x86_64.rpm            |  24 kB   00:00     
 +--------------------------------------------------------------------------------
 +Total                                              7.7 MB/s | 7.0 MB  00:00     
 +Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 +Importing GPG key 0xF2EE9D55:
 + Userid     : "CentOS SoftwareCollections SIG (https://wiki.centos.org/SpecialInterestGroup/SCLo) <security@centos.org>"
 + Fingerprint: c4db d535 b1fb ba14 f8ba 64a8 4eb8 4e71 f2ee 9d55
 + Package    : centos-release-scl-rh-2-2.el7.centos.noarch (@extras)
 + From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 +Is this ok [y/N]: y
 +Running transaction check
 +Running transaction test
 +Transaction test succeeded
 +Running transaction
 +  Installing : setools-libs-3.3.8-1.1.el7.x86_64                           1/18 
 +  Installing : checkpolicy-2.5-4.el7.x86_64                                2/18 
 +  Installing : audit-libs-python-2.7.6-3.el7.x86_64                        3/18 
 +  Installing : libcgroup-0.41-13.el7.x86_64                                4/18 
 +  Installing : python-IPy-0.75-6.el7.noarch                                5/18 
 +  Installing : libselinux-python-2.5-11.el7.x86_64                         6/18 
 +  Installing : libsemanage-python-2.5-8.el7.x86_64                         7/18 
 +  Installing : policycoreutils-python-2.5-17.1.el7.x86_64                  8/18 
 +  Installing : scl-utils-20130529-18.el7_4.x86_64                          9/18 
 +  Installing : rh-php71-runtime-1-1.el7.x86_64                            10/18 
 +  Installing : rh-php71-php-zip-7.1.8-1.el7.x86_64                        11/18 
 +  Installing : rh-php71-php-json-7.1.8-1.el7.x86_64                       12/18 
 +  Installing : rh-php71-php-common-7.1.8-1.el7.x86_64                     13/18 
 +  Installing : rh-php71-php-cli-7.1.8-1.el7.x86_64                        14/18 
 +  Installing : rh-php71-php-process-7.1.8-1.el7.x86_64                    15/18 
 +  Installing : rh-php71-php-xml-7.1.8-1.el7.x86_64                        16/18 
 +  Installing : 1:rh-php71-php-pear-1.10.4-1.el7.noarch                    17/18 
 +  Installing : rh-php71-1-1.el7.x86_64                                    18/18 
 +  Verifying  : rh-php71-php-process-7.1.8-1.el7.x86_64                     1/18 
 +  Verifying  : scl-utils-20130529-18.el7_4.x86_64                          2/18 
 +  Verifying  : libsemanage-python-2.5-8.el7.x86_64                         3/18 
 +  Verifying  : rh-php71-1-1.el7.x86_64                                     4/18 
 +  Verifying  : rh-php71-runtime-1-1.el7.x86_64                             5/18 
 +  Verifying  : rh-php71-php-common-7.1.8-1.el7.x86_64                      6/18 
 +  Verifying  : libselinux-python-2.5-11.el7.x86_64                         7/18 
 +  Verifying  : rh-php71-php-cli-7.1.8-1.el7.x86_64                         8/18 
 +  Verifying  : rh-php71-php-zip-7.1.8-1.el7.x86_64                         9/18 
 +  Verifying  : python-IPy-0.75-6.el7.noarch                               10/18 
 +  Verifying  : rh-php71-php-json-7.1.8-1.el7.x86_64                       11/18 
 +  Verifying  : policycoreutils-python-2.5-17.1.el7.x86_64                 12/18 
 +  Verifying  : libcgroup-0.41-13.el7.x86_64                               13/18 
 +  Verifying  : audit-libs-python-2.7.6-3.el7.x86_64                       14/18 
 +  Verifying  : 1:rh-php71-php-pear-1.10.4-1.el7.noarch                    15/18 
 +  Verifying  : checkpolicy-2.5-4.el7.x86_64                               16/18 
 +  Verifying  : rh-php71-php-xml-7.1.8-1.el7.x86_64                        17/18 
 +  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                          18/18 
 +
 +Installed:
 +  rh-php71.x86_64 0:1-1.el7                                                     
 +
 +Dependency Installed:
 +  audit-libs-python.x86_64 0:2.7.6-3.el7                                        
 +  checkpolicy.x86_64 0:2.5-4.el7                                                
 +  libcgroup.x86_64 0:0.41-13.el7                                                
 +  libselinux-python.x86_64 0:2.5-11.el7                                         
 +  libsemanage-python.x86_64 0:2.5-8.el7                                         
 +  policycoreutils-python.x86_64 0:2.5-17.1.el7                                  
 +  python-IPy.noarch 0:0.75-6.el7                                                
 +  rh-php71-php-cli.x86_64 0:7.1.8-1.el7                                         
 +  rh-php71-php-common.x86_64 0:7.1.8-1.el7                                      
 +  rh-php71-php-json.x86_64 0:7.1.8-1.el7                                        
 +  rh-php71-php-pear.noarch 1:1.10.4-1.el7                                       
 +  rh-php71-php-process.x86_64 0:7.1.8-1.el7                                     
 +  rh-php71-php-xml.x86_64 0:7.1.8-1.el7                                         
 +  rh-php71-php-zip.x86_64 0:7.1.8-1.el7                                         
 +  rh-php71-runtime.x86_64 0:1-1.el7                                             
 +  scl-utils.x86_64 0:20130529-18.el7_4                                          
 +  setools-libs.x86_64 0:3.3.8-1.1.el7                                           
 +
 +Complete!
 </code> </code>
  
-Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''rh-php71''** installiert wurden.+Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''rh-php71''** installiert wurden (**oder auch nicht, da hier __NUR__ Abhängigkeiten aufgelöst werden**).
 <code> <code>
 # rpm -qil rh-php71 # rpm -qil rh-php71
 +Name        : rh-php71
 +Version     : 1
 +Release     : 1.el7
 +Architecture: x86_64
 +Install Date: Wed 29 Nov 2017 09:04:09 AM CET
 +Group       : Development/Languages
 +Size        : 0
 +License     : GPLv2+
 +Signature   : RSA/SHA1, Wed 23 Aug 2017 04:25:21 PM CEST, Key ID 4eb84e71f2ee9d55
 +Source RPM  : rh-php71-1-1.el7.src.rpm
 +Build Date  : Tue 08 Aug 2017 05:16:00 PM CEST
 +Build Host  : c1bk.rdu2.centos.org
 +Relocations : (not relocatable)
 +Packager    : CBS <cbs@centos.org>
 +Vendor      : CentOS
 +Summary     : Package that installs PHP 7.1
 +Description :
 +This is the main package for rh-php71 Software Collection,
 +that install PHP 7.1 language.
 +(contains no files)
 </code> </code>
  
Zeile 142: Zeile 342:
 Um vom **Standard** PHP 5.4.16 zu PHP 7.1**__manuell__** zu wechseln, kann nachfolgender Befehl angewendet werden: Um vom **Standard** PHP 5.4.16 zu PHP 7.1**__manuell__** zu wechseln, kann nachfolgender Befehl angewendet werden:
 <code> <code>
-# scl enable rh-php70 bash+# scl enable rh-php71 bash
 </code> </code>
  
Zeile 148: Zeile 348:
 <code> <code>
 # php -v # 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
 </code> </code>
 bzw. bzw.
 <code> <code>
-# which php +# which php 
 +/opt/rh/rh-php71/root/usr/bin/php
 </code> </code>
  
-:!: **ACHTUNG** - **Dies ist nach dem Neustart bzw. wechseln der ''shell'' nicht mehr verfügbar!**+:!: **ACHTUNG** - **Dies ist nach dem Neustart bzw. verlassen oder wechseln der ''shell'' nicht mehr verfügbar!**
  
 ==== /etc/profile.d/rh-php71.sh ==== ==== /etc/profile.d/rh-php71.sh ====
Zeile 168: Zeile 372:
 </code> </code>
  
 +===== PHP 7.1 php-fpm: Installation =====
 +
 +Die Installation erfolgt mit der Installation von [[tachtler:centos_7_-_sclo_software_collections#php_71installation|SCLO (Software Collections) - PHP 7.1: Installation]]
 +  * **''rh-php71''** - ist im ''sclo''-Repository von [[http://www.centos.org|CentOS]] enthalten
 +
 +Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''rh-php71-php-fpm''** installiert wurden:
 +<code>
 +# rpm -qil rh-php71-php-fpm
 +Name        : rh-php71-php-fpm
 +Version     : 7.1.8
 +Release     : 1.el7
 +Architecture: x86_64
 +Install Date: Wed 29 Nov 2017 09:34:07 AM CET
 +Group       : Development/Languages
 +Size        : 4521561
 +License     : PHP and Zend and BSD and MIT and ASL 1.0
 +Signature   : RSA/SHA1, Mon 30 Oct 2017 11:19:43 AM CET, Key ID 4eb84e71f2ee9d55
 +Source RPM  : rh-php71-php-7.1.8-1.el7.src.rpm
 +Build Date  : Wed 09 Aug 2017 03:31:51 PM CEST
 +Build Host  : c1bj.rdu2.centos.org
 +Relocations : (not relocatable)
 +Packager    : CBS <cbs@centos.org>
 +Vendor      : CentOS
 +URL         : http://www.php.net/
 +Summary     : PHP FastCGI Process Manager
 +Description :
 +PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
 +implementation with some additional features useful for sites of
 +any size, especially busier sites.
 +/etc/logrotate.d/rh-php71-php-fpm
 +/etc/opt/rh/rh-php71/php-fpm.conf
 +/etc/opt/rh/rh-php71/php-fpm.d
 +/etc/opt/rh/rh-php71/php-fpm.d/www.conf
 +/etc/opt/rh/rh-php71/sysconfig/php-fpm
 +/etc/systemd/system/rh-php71-php-fpm.service.d
 +/opt/rh/rh-php71/deregister.d/40-preun-fpm
 +/opt/rh/rh-php71/deregister.d/60-postun-fpm
 +/opt/rh/rh-php71/register.content/etc/logrotate.d
 +/opt/rh/rh-php71/register.content/etc/logrotate.d/rh-php71-php-fpm
 +/opt/rh/rh-php71/register.content/etc/opt/rh/rh-php71/php-fpm.conf
 +/opt/rh/rh-php71/register.content/etc/opt/rh/rh-php71/php-fpm.d
 +/opt/rh/rh-php71/register.content/etc/opt/rh/rh-php71/php-fpm.d/www.conf
 +/opt/rh/rh-php71/register.content/etc/opt/rh/rh-php71/sysconfig
 +/opt/rh/rh-php71/register.content/etc/opt/rh/rh-php71/sysconfig/php-fpm
 +/opt/rh/rh-php71/register.content/etc/systemd
 +/opt/rh/rh-php71/register.content/etc/systemd/system
 +/opt/rh/rh-php71/register.content/etc/systemd/system/rh-php71-php-fpm.service.d
 +/opt/rh/rh-php71/register.content/usr
 +/opt/rh/rh-php71/register.content/usr/lib
 +/opt/rh/rh-php71/register.content/usr/lib/systemd
 +/opt/rh/rh-php71/register.content/usr/lib/systemd/system
 +/opt/rh/rh-php71/register.content/usr/lib/systemd/system/rh-php71-php-fpm.service
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/lib/php/session
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/lib/php/wsdlcache
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/log
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/log/php-fpm
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/run
 +/opt/rh/rh-php71/register.content/var/opt/rh/rh-php71/run/php-fpm
 +/opt/rh/rh-php71/register.d/60-post-fpm
 +/opt/rh/rh-php71/root/usr/sbin/php-fpm
 +/opt/rh/rh-php71/root/usr/share/doc/rh-php71-php-fpm-7.1.8
 +/opt/rh/rh-php71/root/usr/share/doc/rh-php71-php-fpm-7.1.8/php-fpm.conf.default
 +/opt/rh/rh-php71/root/usr/share/doc/rh-php71-php-fpm-7.1.8/www.conf.default
 +/opt/rh/rh-php71/root/usr/share/fpm
 +/opt/rh/rh-php71/root/usr/share/fpm/status.html
 +/opt/rh/rh-php71/root/usr/share/licenses/rh-php71-php-fpm-7.1.8
 +/opt/rh/rh-php71/root/usr/share/licenses/rh-php71-php-fpm-7.1.8/fpm_LICENSE
 +/opt/rh/rh-php71/root/usr/share/man/man8/php-fpm.8.gz
 +/usr/lib/systemd/system/rh-php71-php-fpm.service
 +/var/opt/rh/rh-php71/lib/php/opcache
 +/var/opt/rh/rh-php71/lib/php/session
 +/var/opt/rh/rh-php71/lib/php/wsdlcache
 +/var/opt/rh/rh-php71/log/php-fpm
 +/var/opt/rh/rh-php71/run/php-fpm
 +</code>
  
 +===== PHP 7.1 php-fpm: Konfiguration =====
  
 +==== /etc/opt/rh/rh-php71/php-fpm.d/www.conf ====
  
 +Die Konfiguration findet im Gegensatz zum "normalen" PHP 5.4.16 **ab dem Verzeichnis**
 +  * ''/etc/opt/rh/rh-php71/''
 +statt.
  
 +:!: **HINWEIS** - **Die weitere Konfiguration, __bis auf die Pfade__ ist genau so wie in der PHP Version 5.4.16**
  
 +Siehe auch den nachfolgenden internen Link
 +  * [[tachtler:apache_http_server_centos_7_-_php-fpm_-_alternativer_php-interpreter|Apache HTTP Server CentOS 7 - php-fpm - Alternativer PHP-Interpreter]]
  
tachtler/centos_7_-_sclo_software_collections.1511942489.txt.gz · Zuletzt geändert: 2017/11/29 09:01 von klaus