Blame SOURCES/README

a6d9c8
Package %{scl_name} provides the PHP scripting language as a Software
a6d9c8
Collection.  For more information about Software Collections, see
a6d9c8
scl(1).  By installing the %{scl_name} collection, you will get a
a6d9c8
minimal set of packages to have a working PHP.
a6d9c8
a6d9c8
Usage: scl enable %{scl} 'php'
a6d9c8
a6d9c8
Software Collections allows use of applications which are not located
a6d9c8
in the filesystem root hierarchy but are present in an alternative
a6d9c8
location, which is %{_scl_root} in case of the %{scl_name}
a6d9c8
collection.
a6d9c8
a6d9c8
PHP is an HTML-embedded scripting language. PHP attempts to make it
a6d9c8
easy for developers to write dynamically generated web pages. PHP also
a6d9c8
offers built-in database integration for several commercial and
a6d9c8
non-commercial database management systems, so writing a
a6d9c8
database-enabled webpage with PHP is fairly simple. The most common
a6d9c8
use of PHP coding is probably as a replacement for CGI scripts.
a6d9c8
a6d9c8
The %{?scl_prefix}php package provides the module (often referred to as mod_php)
a6d9c8
which adds support for the PHP language to Apache HTTP server.
a6d9c8
a6d9c8
The %{?scl_prefix}php-fpm package provides the FastCGI process manager
a6d9c8
which adds support for the PHP language to FastCGI compatible servers.
a6d9c8
a6d9c8
FastCGI process manager (php-fpm) listens on local network soket
a6d9c8
(by default port 9000).
a6d9c8
a6d9c8
When working with %{scl_name} collection, use the "scl" utility (see
a6d9c8
scl(1) for usage) to enable the scl environment properly.
a6d9c8
a6d9c8
Configuration for the %{scl_name} software collection is located under %{_sysconfdir}.
a6d9c8
a6d9c8
Examples:
a6d9c8
scl enable %{scl_name} 'command --arg'
a6d9c8
  Run a specific command with argument --arg within %{scl_name} software collections
a6d9c8
  environment.
a6d9c8
a6d9c8
scl enable %{scl_name} 'php'
a6d9c8
  Run php from %{scl_name} software collection.
a6d9c8
a6d9c8
scl enable %{scl_name} bash
a6d9c8
  Run interactive shell where %{scl_name} software collection is enabled.
a6d9c8
a6d9c8
scl enable %{scl_name} 'man php'
a6d9c8
  Show man pages for php command, which is part of the %{scl_name} software
a6d9c8
  collection.
a6d9c8
a6d9c8
%if 0%{?rhel} >= 7
a6d9c8
systemctl start %{?scl_prefix}php-fpm
a6d9c8
%else
a6d9c8
service %{?scl_prefix}php-fpm start
a6d9c8
%endif
a6d9c8
  Starts the php-fpm server from %{scl_name} software collection.