Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
vms:webdev:phpfarm [2015/06/23 01:24] admin [Configuration files] |
vms:webdev:phpfarm [2016/11/29 17:36] admin [Configuration files] |
||
---|---|---|---|
Line 38: | Line 38: | ||
As described in the README.rst file:\\ | As described in the README.rst file:\\ | ||
Default configuration options are in src/options.sh. You may create version-specific custom option | Default configuration options are in src/options.sh. You may create version-specific custom option | ||
+ | <code> | ||
src/custom/options.sh | src/custom/options.sh | ||
src/custom/options-<major>.sh | src/custom/options-<major>.sh | ||
Line 44: | Line 44: | ||
src/custom/options-<major>.<minor>.<patch>.sh | src/custom/options-<major>.<minor>.<patch>.sh | ||
src/custom/options-<major>.<minor>.<patch>-<flags>.sh | src/custom/options-<major>.<minor>.<patch>-<flags>.sh | ||
+ | </code> | ||
Where: | Where: | ||
- | <major> is the version's major number (eg. "5" for PHP 5.3.1). | + | <major> is the version's major number (eg. "5" for PHP 5.3.1).\\ |
- | <minor> is the version's minor number (eg. "3" for PHP 5.3.1). | + | <minor> is the version's minor number (eg. "3" for PHP 5.3.1).\\ |
- | <patch> is the version's patch number (eg. "1" for PHP 5.3.1). | + | <patch> is the version's patch number (eg. "1" for PHP 5.3.1).\\ |
<flag> matches the specific compilation/installation flags (if any) for that PHP version. | <flag> matches the specific compilation/installation flags (if any) for that PHP version. | ||
Line 58: | Line 59: | ||
<code> | <code> | ||
> sudo mkdir /opt/phpfarm/custom | > sudo mkdir /opt/phpfarm/custom | ||
- | > sudo mv /opt/phpfarm/src/default-custom-php.ini /opt/phpfarm/custom/ | + | > sudo cp /opt/phpfarm/src/default-custom-php.ini /opt/phpfarm/custom/ |
</code> | </code> | ||
The global compile options for the PHP versions you'll install can be set in:\\ | The global compile options for the PHP versions you'll install can be set in:\\ | ||
<color darkslateblue>**/opt/phpfarm/custom/options.sh**</color> | <color darkslateblue>**/opt/phpfarm/custom/options.sh**</color> | ||
+ | |||
+ | See below for a sample content of such file, it should obviously be adapted to your specific php compile options requierments. | ||
It is also possible to create per-version custom options file by specifying the version number in the file name:\\ | It is also possible to create per-version custom options file by specifying the version number in the file name:\\ | ||
Line 122: | Line 125: | ||
<code> | <code> | ||
date.timezone=Europe/Brussels | date.timezone=Europe/Brussels | ||
+ | extension_dir="$ext_dir" | ||
include_path=".:/opt/phpfarm/inst/php-$version/pear/php/" | include_path=".:/opt/phpfarm/inst/php-$version/pear/php/" | ||
</code> | </code> |