[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ next ]


PHP Policy Draft
Chapter 5 - PHP modules


5.1 Packages and naming scheme


5.2 File and directory layout

Precompiled binary modules for PHP must be located in /usr/lib/phpPHPVERSION/PHP_API_VERSION. PHPVERSION is the numeric major version number (such as 3, 4, or 5), and PHP_API_VERSION is the version against which the module was compiled.

The directory can be easily obtained at run-time by running the command php-configPHPVERSION --extension-dir

     			php-config4 --extension-dir
     			/usr/lib/php4/20050606

5.3 Registering and unregistering a PHP module

Applications extending the abilities of php via add-on php modules should do so by placing symbolic links to any any relevant configuration files in the appropriate php.d directory (/etc/php4/apache/php.d, for example). Editing the contents of php.ini files directly is strongly discouraged and should only be done if it is not possible to make changes via the previously described method. In such cases, packages must not do so without first prompting the admin, and the default response for such a question should be "false".

Upon package removal, packages can de-register themselves by simply removing the symbolic link in the php.d directory (this makes seperating de-activation from configuration purging possible).


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ next ]


PHP Policy Draft

$Revision: 73 $

Alexis Sukrieh
Pascal Hakim
Neil McGovern
Sean Finney