Blame SOURCES/README

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