Blame SOURCES/README

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