From Fedora Project Wiki
(apache requirement)
Line 20: Line 20:
=== Apache requirement ===
=== Apache requirement ===


A PHP library must not requires php nor httpd as is could be used with other webserver / SAPI (php-cli, php-cgi, php-fpm, ...).
A PHP library must not require php or httpd as is could be used with any webserver or any SAPI (php-cli, php-cgi, php-fpm, ...).


Only a PHP web application, which provide httpd configuration, should requires php and httpd.
Only a PHP web application, which provide httpd configuration, should requires httpd and mod_php.
 
PHP extensions should require all the used extensions (php-date, php-gd, php-mbstring, ...) which are virtual provide of php sub-packages.
 
To specify a minimum PHP version, current practice is to require php-common (not available for EPEL-5 with php53)


[[Category:Packaging guidelines drafts]]
[[Category:Packaging guidelines drafts]]

Revision as of 16:20, 27 June 2012

[[TableOfContents(3)]

Proposed Changes to PHP Guidelines

Synopsis

This page describes items that need to be changed in the PHP Guidelines or other items that need to be reviewed or ratified by the Fedora Packaging Comittee and FESCo .


Actual Guidelines

Requires and Provides

nothing about apache requirement

Change proposal

Requires and Provides

Apache requirement

A PHP library must not require php or httpd as is could be used with any webserver or any SAPI (php-cli, php-cgi, php-fpm, ...).

Only a PHP web application, which provide httpd configuration, should requires httpd and mod_php.

PHP extensions should require all the used extensions (php-date, php-gd, php-mbstring, ...) which are virtual provide of php sub-packages.

To specify a minimum PHP version, current practice is to require php-common (not available for EPEL-5 with php53)