Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
New structure for new Ubuntu PPA and other fixes (#113) * Initial commit for new branch * Quick change to base test files * Updated map.jinja, added `php` dependency for all subformulas * Fixing mongo module and map.jinja needed OpenSSL dev libraries * Should be final changes needed for Mongo module * Updating Suhosin package since many distros don't have package in their repos anymore * Generalizing suhosin module, and updating pillar.example for new PPA * Adding addtional logic for RedHat based families to Suhosin * Initial commit of NG refactored map.jinja file * Deleting FFMpeg state file since the module is quite old, and has been replaced by using a Composer library. See https://github.com/PHP-FFMpeg/PHP-FFMpeg for details * Updating NG formulas for new definitions * Removing 'twig' as a state since it can be installed via Composer * Changes to installed.jinja to set correct PHP path based on version * NG Composer and NG Suhosin changes * Version bump and deleting README for deleted states * Finished refactor of NG map.jinja file * Adding trailing commas (forgot them earler) * Adding changes list, and modifying map file for missing definitions when using Ubuntu 16.04 and NOT using a PPA * Changes needed after performing testing on RHEL 7 * Changes needed for Ubuntu Trusty without using PPA * Removing testing files; keep on local * Map changes needed after testing Debian Jessie * Changed needed for Debian Wheezy * Adding more pkgs for Arch Linux support * More ArchLinux support * Stupid tabs * Removing extra line breaks, and using the general "use_external_repo" in the future if DotDeb (Debian) or Webtactic (RedHat) * Accoutning for Precise `phpenmod` and others
8 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {% set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
  4. {%- if pillar_php_version is iterable and pillar_php_version is not string %}
  5. {%- set php_version = pillar_php_version[0]|string %}
  6. {% else %}
  7. {%- set php_version = pillar_php_version|string %}
  8. {% endif %}
  9. {%- set freebsd_php_version = php_version.replace('.', '') %}
  10. {%- if salt['grains.get']('os') == "Ubuntu" %}
  11. {%- set use_external_repo = salt['pillar.get']('php:use_external_repo', False) %}
  12. {%- if use_external_repo %}
  13. {%- if salt['grains.get']('osrelease')|string >= '16.04' %}
  14. {%- set php = salt['pillar.get']('php', {
  15. 'lookup': salt['grains.filter_by']({
  16. 'Debian': {
  17. 'pkgs': {
  18. 'adodb': 'libphp-adodb',
  19. 'apache2': 'libapache2-mod-php' + php_version,
  20. 'apc': 'php-apcu',
  21. 'apcu': 'php-apcu-bc',
  22. 'bcmath': 'php' + php_version + '-bcmath',
  23. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  24. 'bz2': 'php' + php_version + '-bz2',
  25. 'cache-lite': 'php-cache-lite',
  26. 'cgi': 'php' + php_version + '-cgi',
  27. 'cli': 'php' + php_version + '-cli',
  28. 'composer_bin': 'composer',
  29. 'console-table': 'php-console-table',
  30. 'curl': 'php' + php_version + '-curl',
  31. 'dba': 'php' + php_version + '-dba',
  32. 'dev': 'php' + php_version + '-dev',
  33. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  34. 'fpm': 'php' + php_version + '-fpm',
  35. 'gd': 'php' + php_version + '-gd',
  36. 'gearman': 'php-gearman',
  37. 'geoip': 'php-geoip',
  38. 'geshi': 'php-geshi',
  39. 'gettext': 'php' + php_version,
  40. 'gmp': 'php' + php_version + '-gmp',
  41. 'hhvm': 'hhvm',
  42. 'imagick': 'php-imagick',
  43. 'imap': 'php' + php_version + '-imap',
  44. 'intl': 'php' + php_version + '-intl',
  45. 'json': 'php' + php_version + '-json',
  46. 'ldap': 'php' + php_version + '-ldap',
  47. 'local_bin': '/usr/local/bin',
  48. 'auth-sasl': 'php-auth-sasl',
  49. 'mail': 'php-mail',
  50. 'mbstring': 'php' + php_version + '-mbstring',
  51. 'mcrypt': 'php' + php_version + '-mcrypt',
  52. 'memcache': 'php-memcache',
  53. 'memcached': 'php-memcached',
  54. 'mongo': 'php-mongo',
  55. 'mongodb': 'php-mongodb',
  56. 'mysql': 'php' + php_version + '-mysql',
  57. 'mysqlnd': 'php' + php_version + '-mysql',
  58. 'net-smtp': 'php-net-smtp',
  59. 'net4': 'php-net-ipv4',
  60. 'net6': 'php-net-ipv6',
  61. 'oauth': 'php-oauth',
  62. 'opcache': 'php' + php_version + '-opcache',
  63. 'pear': 'php-pear',
  64. 'pgsql': 'php' + php_version + '-pgsql',
  65. 'php': 'php' + php_version,
  66. 'phpenmod_command': 'phpenmod -v' + php_version,
  67. 'pspell': 'php' + php_version + '-pspell',
  68. 'redis': 'php' + php_version + '-redis',
  69. 'seclib': ['php-phpseclib', 'php-seclib'],
  70. 'snmp': 'php' + php_version + '-snmp',
  71. 'soap': 'php' + php_version + '-soap',
  72. 'ssh2': 'php-ssh2',
  73. 'sqlite': 'php' + php_version + '-sqlite3',
  74. 'suhosin5_ext': 'suhosin.so',
  75. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  76. 'suhosin7_ext': 'suhosin7.so',
  77. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  78. 'sybase': 'php' + php_version + '-sybase',
  79. 'tcpdf': 'php-tcpdf',
  80. 'temp_dir': '/tmp',
  81. 'tidy': 'php' + php_version + '-tidy',
  82. 'xdebug': 'php' + php_version + '-xdebug',
  83. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  84. 'xsl': 'php' + php_version + '-xsl',
  85. 'zip': 'php' + php_version + '-zip',
  86. },
  87. 'fpm': {
  88. 'conf': '/etc/php/' + php_version + '/fpm/php-fpm.conf',
  89. 'ini': '/etc/php/' + php_version + '/fpm/php.ini',
  90. 'pools': '/etc/php/' + php_version + '/fpm/pool.d',
  91. 'service': 'php' + php_version + '-fpm',
  92. 'user': 'root',
  93. 'group': 'root',
  94. 'defaults': odict([
  95. ('global', odict([
  96. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  97. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  98. ])),
  99. ('include', '/etc/php/' + php_version + '/fpm/pool.d/*.conf'),
  100. ]),
  101. },
  102. 'hhvm': {
  103. 'conf': '/etc/hhvm/server.ini',
  104. 'ini': '/etc/hhvm/php.ini',
  105. 'service': 'hhvm',
  106. 'defaults': {},
  107. 'server': odict([
  108. ('pid', '/var/run/hhvm/pid'),
  109. ('hhvm.server.port', '9000'),
  110. ('hhvm.server.type', 'fastcgi'),
  111. ('hhvm.server.default_document', 'index.php'),
  112. ('hhvm.log.use_log_file', 'true'),
  113. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  114. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  115. ]),
  116. 'php': odict([
  117. ('session.save_handler', 'files'),
  118. ('session.save_path', '/var/lib/hhvm/sessions'),
  119. ('session.gc_maxlifetime', '1440'),
  120. ('hhvm.log.level', 'Warning'),
  121. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  122. ('hhvm.log.runtime_error_reporting_level', '8191'),
  123. ('hhvm.mysql.typed_results', 'false'),
  124. ]),
  125. },
  126. 'cli': {
  127. 'ini': '/etc/php/' + php_version + '/cli/php.ini',
  128. },
  129. 'apache2': {
  130. 'ini': '/etc/php/' + php_version + '/apache2/php.ini',
  131. },
  132. },
  133. }),
  134. 'fpm': {
  135. 'service': {
  136. 'enabled': True,
  137. 'opts': {},
  138. },
  139. 'config': {
  140. 'ini': {
  141. 'opts': {},
  142. 'settings': {},
  143. },
  144. 'conf': {
  145. 'opts': {},
  146. 'settings': {},
  147. },
  148. },
  149. 'pools': {},
  150. },
  151. 'hhvm': {
  152. 'service': {
  153. 'enabled': True,
  154. 'opts': {},
  155. },
  156. 'config': {
  157. 'server': {
  158. 'opts': {},
  159. 'settings': {},
  160. },
  161. 'php': {
  162. 'opts': {},
  163. 'settings': {},
  164. },
  165. },
  166. },
  167. 'cli': {
  168. 'ini': {
  169. 'opts': {},
  170. 'settings': {},
  171. }
  172. },
  173. 'apache2': {
  174. 'ini': {
  175. 'opts': {},
  176. 'settings': {},
  177. }
  178. },
  179. 'ini': {
  180. 'defaults': {
  181. 'PHP': {
  182. 'allow_url_fopen': 'On',
  183. 'allow_url_include': 'Off',
  184. 'asp_tags': 'Off',
  185. 'auto_globals_jit': 'On',
  186. 'default_mimetype': '"text/html"',
  187. 'default_socket_timeout': 60,
  188. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  189. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  190. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  191. 'display_errors': 'Off',
  192. 'display_startup_errors': 'Off',
  193. 'enable_dl': 'Off',
  194. 'engine': 'On',
  195. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  196. 'expose_php': 'On',
  197. 'file_uploads': 'On',
  198. 'html_errors': 'On',
  199. 'ignore_repeated_errors': 'Off',
  200. 'ignore_repeated_source': 'Off',
  201. 'implicit_flush': 'Off',
  202. 'log_errors': 'On',
  203. 'log_errors_max_len': 1024,
  204. 'max_execution_time': 30,
  205. 'max_file_uploads': 20,
  206. 'max_input_nesting_level': 64,
  207. 'max_input_time': 60,
  208. 'max_input_vars': 1000,
  209. 'memory_limit': '128M',
  210. 'output_buffering': 4096,
  211. 'post_max_size': '8M',
  212. 'precision': 14,
  213. 'register_argc_argv': 'Off',
  214. 'report_memleaks': 'On',
  215. 'request_order': 'GP',
  216. 'serialize_precision': 17,
  217. 'short_open_tag': 'Off',
  218. 'track_errors': 'Off',
  219. 'upload_max_filesize': '2M',
  220. 'variables_order': 'GPCS',
  221. 'zend.enable_gc': 'On',
  222. 'zlib.output_compression': 'Off',
  223. },
  224. 'CLI Server': {
  225. 'cli_server.color': 'On'
  226. },
  227. 'Date': {
  228. 'date.timezone': 'America/New_York'
  229. },
  230. 'Pdo_mysql': {
  231. 'pdo_mysql.cache_size': 2000
  232. },
  233. 'mail function': {
  234. 'SMTP': 'localhost',
  235. 'mail.add_x_header': 'On'
  236. },
  237. 'SQL': {
  238. 'sql.safe_mode': 'Off'
  239. },
  240. 'ODBC': {
  241. 'odbc.allow_persistent': 'On',
  242. 'odbc.check_persistent': 'On',
  243. 'odbc.max_persistent': '-1',
  244. 'odbc.max_links': '-1',
  245. 'odbc.defaultlrl': 4096,
  246. 'odbc.defaultbinmode': 1
  247. },
  248. 'Interbase': {
  249. 'ibase.allow_persistent': 1,
  250. 'ibase.max_persistent': -1,
  251. 'ibase.max_links': -1,
  252. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  253. 'ibase.dateformat': '"%Y-%m-%d"',
  254. 'ibase.timeformat': '"%H:%M:%S"'
  255. },
  256. 'MySQL': {
  257. 'mysql.allow_local_infile': 'On',
  258. 'mysql.allow_persistent': 'On',
  259. 'mysql.cache_size': '2000',
  260. 'mysql.max_persistent': -1,
  261. 'mysql.max_links': -1,
  262. 'mysql.connect_timeout': 60,
  263. 'mysql.trace_mode': 'Off'
  264. },
  265. 'MySQLi': {
  266. 'mysqli.max_persistent': -1,
  267. 'mysqli.allow_persistent': 'On',
  268. 'mysqli.max_links': -1,
  269. 'mysqli.cache_size': 2000,
  270. 'mysqli.default_port': 3306,
  271. 'mysqli.reconnect': 'Off'
  272. },
  273. 'mysqlnd': {
  274. 'mysqlnd.collect_statistics': 'On',
  275. 'mysqlnd.collect_memory_statistics': 'Off'
  276. },
  277. 'PostgreSQL': {
  278. 'pgsql.allow_persistent': 'On',
  279. 'pgsql.auto_reset_persistent': 'Off',
  280. 'pgsql.max_persistent': -1,
  281. 'pgsql.max_links': -1,
  282. 'pgsql.ignore_notice': 0,
  283. 'pgsql.log_notice': 0
  284. },
  285. 'Sybase-CT': {
  286. 'sybct.allow_persistent': 'On',
  287. 'sybct.max_persistent': -1,
  288. 'sybct.max_links': -1,
  289. 'sybct.min_server_severity': 10,
  290. 'sybct.min_client_severity': 10
  291. },
  292. 'bcmath': {
  293. 'bcmath.scale': 0
  294. },
  295. 'Session': {
  296. 'session.save_handler': 'files',
  297. 'session.use_strict_mode': 0,
  298. 'session.use_cookies': 1,
  299. 'session.use_only_cookies': 1,
  300. 'session.name': 'PHPSESSID',
  301. 'session.auto_start': 0,
  302. 'session.cookie_lifetime': 0,
  303. 'session.cookie_path': '/',
  304. 'session.serialize_handler': 'php',
  305. 'session.gc_probability': 0,
  306. 'session.gc_divisor': 1000,
  307. 'session.gc_maxlifetime': 1440,
  308. 'session.bug_compat_42': 'Off',
  309. 'session.bug_compat_warn': 'Off',
  310. 'session.cache_limiter': 'nocache',
  311. 'session.cache_expire': '180',
  312. 'session.use_trans_sid': 0,
  313. 'session.hash_function': 0,
  314. 'session.hash_bits_per_character': 5,
  315. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  316. },
  317. 'MSSQL': {
  318. 'mssql.allow_persistent': 'On',
  319. 'mssql.max_persistent': -1,
  320. 'mssql.max_links': -1,
  321. 'mssql.min_error_severity': 10,
  322. 'mssql.min_message_severity': 10,
  323. 'mssql.compatibility_mode': 'Off',
  324. 'mssql.secure_connection': 'Off'
  325. },
  326. 'Tidy': {
  327. 'tidy.clean_output': 'Off'
  328. },
  329. 'soap': {
  330. 'soap.wsdl_cache_enabled': 1,
  331. 'soap.wsdl_cache_dir': '"/tmp"',
  332. 'soap.wsdl_cache_ttl': 86400,
  333. 'soap.wsdl_cache_limit': 5
  334. },
  335. 'ldap': {
  336. 'ldap.max_links': -1
  337. },
  338. },
  339. },
  340. }, merge=True) %}
  341. {%- else %}
  342. {%- set php = salt['pillar.get']('php', {
  343. 'lookup': salt['grains.filter_by']({
  344. 'Debian': {
  345. 'pkgs': {
  346. 'adodb': 'libphp-adodb',
  347. 'apache2': 'libapache2-mod-php' + php_version,
  348. 'apc': 'php-apcu',
  349. 'apcu': 'php-apcu-bc',
  350. 'bcmath': 'php' + php_version + '-bcmath',
  351. 'bz2': 'php' + php_version + '-bz2',
  352. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  353. 'cache-lite': 'php-cache-lite',
  354. 'cgi': 'php' + php_version + '-cgi',
  355. 'cli': 'php' + php_version + '-cli',
  356. 'composer_bin': 'composer',
  357. 'console-table': 'php-console-table',
  358. 'curl': 'php' + php_version + '-curl',
  359. 'dba': 'php' + php_version + '-dba',
  360. 'dev': 'php' + php_version + '-dev',
  361. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  362. 'fpm': 'php' + php_version + '-fpm',
  363. 'gd': 'php' + php_version + '-gd',
  364. 'gearman': 'php-gearman',
  365. 'geoip': 'php-geoip',
  366. 'geshi': 'php-geshi',
  367. 'gettext': 'php' + php_version,
  368. 'gmp': 'php' + php_version + '-gmp',
  369. 'hhvm': 'hhvm',
  370. 'imagick': 'php-imagick',
  371. 'imap': 'php' + php_version + '-imap',
  372. 'intl': 'php' + php_version + '-intl',
  373. 'json': 'php' + php_version + '-json',
  374. 'ldap': 'php' + php_version + '-ldap',
  375. 'local_bin': '/usr/local/bin',
  376. 'auth-sasl': 'php-auth-sasl',
  377. 'mail': 'php-mail',
  378. 'mbstring': 'php' + php_version + '-mbstring',
  379. 'mcrypt': 'php' + php_version + '-mcrypt',
  380. 'memcache': 'php-memcache',
  381. 'memcached': 'php-memcached',
  382. 'mongo': 'php-mongo',
  383. 'mongodb': 'php-mongodb',
  384. 'mysql': 'php' + php_version + '-mysql',
  385. 'mysqlnd': 'php' + php_version + '-mysql',
  386. 'net-smtp': 'php-net-smtp',
  387. 'net4': 'php-net-ipv4',
  388. 'net6': 'php-net-ipv6',
  389. 'oauth': 'php-oauth',
  390. 'opcache': 'php' + php_version + '-opcache',
  391. 'pear': 'php-pear',
  392. 'pgsql': 'php' + php_version + '-pgsql',
  393. 'php': 'php' + php_version,
  394. 'phpenmod_command': 'phpenmod -v' + php_version,
  395. 'pspell': 'php' + php_version + '-pspell',
  396. 'readline': 'php' + php_version + '-readline',
  397. 'redis': 'php' + php_version + '-redis',
  398. 'seclib': 'php-seclib',
  399. 'snmp': 'php' + php_version + '-snmp',
  400. 'soap': 'php' + php_version + '-soap',
  401. 'ssh2': 'php-ssh2',
  402. 'sqlite': 'php' + php_version + '-sqlite3',
  403. 'suhosin5_ext': 'suhosin.so',
  404. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  405. 'suhosin7_ext': 'suhosin7.so',
  406. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  407. 'sybase': 'php' + php_version + '-sybase',
  408. 'tcpdf': 'php-tcpdf',
  409. 'temp_dir': '/tmp',
  410. 'tidy': 'php' + php_version + '-tidy',
  411. 'xdebug': 'php' + php_version + '-xdebug',
  412. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  413. 'xsl': 'php' + php_version + '-xsl',
  414. 'zip': 'php' + php_version + '-zip',
  415. },
  416. 'fpm': {
  417. 'conf': '/etc/php/' + php_version + '/fpm/php-fpm.conf',
  418. 'ini': '/etc/php/' + php_version + '/fpm/php.ini',
  419. 'pools': '/etc/php/' + php_version + '/fpm/pool.d',
  420. 'service': 'php' + php_version + '-fpm',
  421. 'user': 'root',
  422. 'group': 'root',
  423. 'defaults': odict([
  424. ('global', odict([
  425. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  426. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  427. ])),
  428. ('include', '/etc/php/' + php_version + '/fpm/pool.d/*.conf'),
  429. ]),
  430. },
  431. 'hhvm': {
  432. 'conf': '/etc/hhvm/server.ini',
  433. 'ini': '/etc/hhvm/php.ini',
  434. 'service': 'hhvm',
  435. 'defaults': {},
  436. 'server': odict([
  437. ('pid', '/var/run/hhvm/pid'),
  438. ('hhvm.server.port', '9000'),
  439. ('hhvm.server.type', 'fastcgi'),
  440. ('hhvm.server.default_document', 'index.php'),
  441. ('hhvm.log.use_log_file', 'true'),
  442. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  443. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  444. ]),
  445. 'php': odict([
  446. ('session.save_handler', 'files'),
  447. ('session.save_path', '/var/lib/hhvm/sessions'),
  448. ('session.gc_maxlifetime', '1440'),
  449. ('hhvm.log.level', 'Warning'),
  450. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  451. ('hhvm.log.runtime_error_reporting_level', '8191'),
  452. ('hhvm.mysql.typed_results', 'false'),
  453. ]),
  454. },
  455. 'cli': {
  456. 'ini': '/etc/php/' + php_version + '/cli/php.ini',
  457. },
  458. 'apache2': {
  459. 'ini': '/etc/php/' + php_version + '/apache2/php.ini',
  460. },
  461. },
  462. }),
  463. 'fpm': {
  464. 'service': {
  465. 'enabled': True,
  466. 'opts': {},
  467. },
  468. 'config': {
  469. 'ini': {
  470. 'opts': {},
  471. 'settings': {},
  472. },
  473. 'conf': {
  474. 'opts': {},
  475. 'settings': {},
  476. },
  477. },
  478. 'pools': {},
  479. },
  480. 'hhvm': {
  481. 'service': {
  482. 'enabled': True,
  483. 'opts': {},
  484. },
  485. 'config': {
  486. 'server': {
  487. 'opts': {},
  488. 'settings': {},
  489. },
  490. 'php': {
  491. 'opts': {},
  492. 'settings': {},
  493. },
  494. },
  495. },
  496. 'cli': {
  497. 'ini': {
  498. 'opts': {},
  499. 'settings': {},
  500. }
  501. },
  502. 'apache2': {
  503. 'ini': {
  504. 'opts': {},
  505. 'settings': {},
  506. }
  507. },
  508. 'ini': {
  509. 'defaults': {
  510. 'PHP': {
  511. 'allow_url_fopen': 'On',
  512. 'allow_url_include': 'Off',
  513. 'asp_tags': 'Off',
  514. 'auto_globals_jit': 'On',
  515. 'default_mimetype': '"text/html"',
  516. 'default_socket_timeout': 60,
  517. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  518. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  519. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  520. 'display_errors': 'Off',
  521. 'display_startup_errors': 'Off',
  522. 'enable_dl': 'Off',
  523. 'engine': 'On',
  524. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  525. 'expose_php': 'On',
  526. 'file_uploads': 'On',
  527. 'html_errors': 'On',
  528. 'ignore_repeated_errors': 'Off',
  529. 'ignore_repeated_source': 'Off',
  530. 'implicit_flush': 'Off',
  531. 'log_errors': 'On',
  532. 'log_errors_max_len': 1024,
  533. 'max_execution_time': 30,
  534. 'max_file_uploads': 20,
  535. 'max_input_nesting_level': 64,
  536. 'max_input_time': 60,
  537. 'max_input_vars': 1000,
  538. 'memory_limit': '128M',
  539. 'output_buffering': 4096,
  540. 'post_max_size': '8M',
  541. 'precision': 14,
  542. 'register_argc_argv': 'Off',
  543. 'report_memleaks': 'On',
  544. 'request_order': 'GP',
  545. 'serialize_precision': 17,
  546. 'short_open_tag': 'Off',
  547. 'track_errors': 'Off',
  548. 'upload_max_filesize': '2M',
  549. 'variables_order': 'GPCS',
  550. 'zend.enable_gc': 'On',
  551. 'zlib.output_compression': 'Off',
  552. },
  553. 'CLI Server': {
  554. 'cli_server.color': 'On'
  555. },
  556. 'Date': {
  557. 'date.timezone': 'America/New_York'
  558. },
  559. 'Pdo_mysql': {
  560. 'pdo_mysql.cache_size': 2000
  561. },
  562. 'mail function': {
  563. 'SMTP': 'localhost',
  564. 'mail.add_x_header': 'On'
  565. },
  566. 'SQL': {
  567. 'sql.safe_mode': 'Off'
  568. },
  569. 'ODBC': {
  570. 'odbc.allow_persistent': 'On',
  571. 'odbc.check_persistent': 'On',
  572. 'odbc.max_persistent': '-1',
  573. 'odbc.max_links': '-1',
  574. 'odbc.defaultlrl': 4096,
  575. 'odbc.defaultbinmode': 1
  576. },
  577. 'Interbase': {
  578. 'ibase.allow_persistent': 1,
  579. 'ibase.max_persistent': -1,
  580. 'ibase.max_links': -1,
  581. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  582. 'ibase.dateformat': '"%Y-%m-%d"',
  583. 'ibase.timeformat': '"%H:%M:%S"'
  584. },
  585. 'MySQL': {
  586. 'mysql.allow_local_infile': 'On',
  587. 'mysql.allow_persistent': 'On',
  588. 'mysql.cache_size': '2000',
  589. 'mysql.max_persistent': -1,
  590. 'mysql.max_links': -1,
  591. 'mysql.connect_timeout': 60,
  592. 'mysql.trace_mode': 'Off'
  593. },
  594. 'MySQLi': {
  595. 'mysqli.max_persistent': -1,
  596. 'mysqli.allow_persistent': 'On',
  597. 'mysqli.max_links': -1,
  598. 'mysqli.cache_size': 2000,
  599. 'mysqli.default_port': 3306,
  600. 'mysqli.reconnect': 'Off'
  601. },
  602. 'mysqlnd': {
  603. 'mysqlnd.collect_statistics': 'On',
  604. 'mysqlnd.collect_memory_statistics': 'Off'
  605. },
  606. 'PostgreSQL': {
  607. 'pgsql.allow_persistent': 'On',
  608. 'pgsql.auto_reset_persistent': 'Off',
  609. 'pgsql.max_persistent': -1,
  610. 'pgsql.max_links': -1,
  611. 'pgsql.ignore_notice': 0,
  612. 'pgsql.log_notice': 0
  613. },
  614. 'Sybase-CT': {
  615. 'sybct.allow_persistent': 'On',
  616. 'sybct.max_persistent': -1,
  617. 'sybct.max_links': -1,
  618. 'sybct.min_server_severity': 10,
  619. 'sybct.min_client_severity': 10
  620. },
  621. 'bcmath': {
  622. 'bcmath.scale': 0
  623. },
  624. 'Session': {
  625. 'session.save_handler': 'files',
  626. 'session.use_strict_mode': 0,
  627. 'session.use_cookies': 1,
  628. 'session.use_only_cookies': 1,
  629. 'session.name': 'PHPSESSID',
  630. 'session.auto_start': 0,
  631. 'session.cookie_lifetime': 0,
  632. 'session.cookie_path': '/',
  633. 'session.serialize_handler': 'php',
  634. 'session.gc_probability': 0,
  635. 'session.gc_divisor': 1000,
  636. 'session.gc_maxlifetime': 1440,
  637. 'session.bug_compat_42': 'Off',
  638. 'session.bug_compat_warn': 'Off',
  639. 'session.cache_limiter': 'nocache',
  640. 'session.cache_expire': '180',
  641. 'session.use_trans_sid': 0,
  642. 'session.hash_function': 0,
  643. 'session.hash_bits_per_character': 5,
  644. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  645. },
  646. 'MSSQL': {
  647. 'mssql.allow_persistent': 'On',
  648. 'mssql.max_persistent': -1,
  649. 'mssql.max_links': -1,
  650. 'mssql.min_error_severity': 10,
  651. 'mssql.min_message_severity': 10,
  652. 'mssql.compatibility_mode': 'Off',
  653. 'mssql.secure_connection': 'Off'
  654. },
  655. 'Tidy': {
  656. 'tidy.clean_output': 'Off'
  657. },
  658. 'soap': {
  659. 'soap.wsdl_cache_enabled': 1,
  660. 'soap.wsdl_cache_dir': '"/tmp"',
  661. 'soap.wsdl_cache_ttl': 86400,
  662. 'soap.wsdl_cache_limit': 5
  663. },
  664. 'ldap': {
  665. 'ldap.max_links': -1
  666. },
  667. },
  668. },
  669. }, merge=True) %}
  670. {%- endif %}
  671. {%- else %}
  672. {%- if salt['grains.get']('osrelease')|string >= '18.04' %}
  673. {%- set php = salt['pillar.get']('php', {
  674. 'lookup': salt['grains.filter_by']({
  675. 'Ubuntu': {
  676. 'pkgs': {
  677. 'adodb': 'libphp-adodb',
  678. 'apache2': 'libapache2-mod-php',
  679. 'apc': 'php',
  680. 'apcu': 'php-apcu',
  681. 'bcmath': 'php7.2-bcmath',
  682. 'bz2': 'php7.2-bz2',
  683. 'cache-lite': 'php-cache-lite',
  684. 'cgi': 'php-cgi',
  685. 'cli': 'php-cli',
  686. 'console-table': 'php-console-table',
  687. 'composer_bin': 'composer',
  688. 'curl': 'php-curl',
  689. 'dev': 'php7.2-dev',
  690. 'dba': 'php7.2-dba',
  691. 'fpm': 'php-fpm',
  692. 'gd': 'php-gd',
  693. 'geoip': 'php-geoip',
  694. 'geshi': 'php-geshi',
  695. 'gmp': 'php-gmp',
  696. 'hhvm': 'hhvm',
  697. 'imagick': 'php-imagick',
  698. 'imap': 'php-imap',
  699. 'intl': 'php-intl',
  700. 'json': 'php-json',
  701. 'ldap': 'php-ldap',
  702. 'local_bin': '/usr/local/bin',
  703. 'auth-sasl': 'php-auth-sasl',
  704. 'mail': 'php-mail',
  705. 'mbstring': 'php-mbstring',
  706. 'mcrypt': 'php-mcrypt',
  707. 'memcache': 'php-memcache',
  708. 'memcached': 'php-memcached',
  709. 'mongodb': 'php-mongodb',
  710. 'mysql': 'php-mysql',
  711. 'mysqlnd': 'php',
  712. 'net-smtp': 'php-net-smtp',
  713. 'net4': 'php-net-ipv4',
  714. 'net6': 'php-net-ipv6',
  715. 'oauth': 'php-oauth',
  716. 'opcache': 'php7.2-opcache',
  717. 'pear': 'php-pear',
  718. 'pgsql': 'php-pgsql',
  719. 'php': 'php',
  720. 'phpenmod_command': 'phpenmod',
  721. 'pspell': 'php-pspell',
  722. 'redis': 'php-redis',
  723. 'seclib': ['php-phpseclib', 'php-seclib'],
  724. 'snmp': 'php-snmp',
  725. 'soap': 'php-soap',
  726. 'sqlite': 'php-sqlite3',
  727. 'ssh2': 'php-ssh2',
  728. 'suhosin': 'php',
  729. 'sybase': 'php-sybase',
  730. 'tcpdf': 'php-tcpdf',
  731. 'temp_dir': '/tmp',
  732. 'tidy': 'php7.2-tidy',
  733. 'xcache': 'php',
  734. 'xdebug': 'php-xdebug',
  735. 'xml': ['php-xml', 'php-xmlrpc'],
  736. 'xsl': 'php7.2-xsl',
  737. 'zip': 'php-zip',
  738. },
  739. 'fpm': {
  740. 'conf': '/etc/php/7.2/fpm/php-fpm.conf',
  741. 'ini': '/etc/php/7.2/fpm/php.ini',
  742. 'pools': '/etc/php/7.2/fpm/pool.d',
  743. 'service': 'php7.2-fpm',
  744. 'user': 'root',
  745. 'group': 'root',
  746. 'defaults': odict([
  747. ('global', odict([
  748. ('pid', '/var/run/php7.2-fpm.pid'),
  749. ('error_log', '/var/log/php7.2-fpm.log'),
  750. ])),
  751. ('include', '/etc/php/7.2/fpm/pool.d/*.conf'),
  752. ]),
  753. },
  754. 'hhvm': {
  755. 'conf': '/etc/hhvm/server.ini',
  756. 'ini': '/etc/hhvm/php.ini',
  757. 'service': 'hhvm',
  758. 'defaults': {},
  759. 'server': odict([
  760. ('pid', '/var/run/hhvm/pid'),
  761. ('hhvm.server.port', '9000'),
  762. ('hhvm.server.type', 'fastcgi'),
  763. ('hhvm.server.default_document', 'index.php'),
  764. ('hhvm.log.use_log_file', 'true'),
  765. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  766. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  767. ]),
  768. 'php': odict([
  769. ('session.save_handler', 'files'),
  770. ('session.save_path', '/var/lib/hhvm/sessions'),
  771. ('session.gc_maxlifetime', '1440'),
  772. ('hhvm.log.level', 'Warning'),
  773. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  774. ('hhvm.log.runtime_error_reporting_level', '8191'),
  775. ('hhvm.mysql.typed_results', 'false'),
  776. ]),
  777. },
  778. 'cli': {
  779. 'ini': '/etc/php/7.2/cli/php.ini',
  780. },
  781. 'apache2': {
  782. 'ini': '/etc/php/7.2/apache2/php.ini',
  783. },
  784. 'xcache': {
  785. 'ini': '/etc/php/7.2/mods-available/xcache.ini',
  786. 'defaults': {},
  787. },
  788. },
  789. }, grain="os"),
  790. 'fpm': {
  791. 'service': {
  792. 'enabled': True,
  793. 'opts': {},
  794. },
  795. 'config': {
  796. 'ini': {
  797. 'opts': {},
  798. 'settings': {},
  799. },
  800. 'conf': {
  801. 'opts': {},
  802. 'settings': {},
  803. },
  804. },
  805. 'pools': {
  806. 'default.conf': {
  807. 'enabled': False,
  808. 'opts': {},
  809. },
  810. },
  811. },
  812. 'hhvm': {
  813. 'service': {
  814. 'enabled': True,
  815. 'opts': {},
  816. },
  817. 'config': {
  818. 'server': {
  819. 'opts': {},
  820. 'settings': {},
  821. },
  822. 'php': {
  823. 'opts': {},
  824. 'settings': {},
  825. },
  826. },
  827. },
  828. 'cli': {
  829. 'ini': {
  830. 'opts': {},
  831. 'settings': {},
  832. }
  833. },
  834. 'apache2': {
  835. 'ini': {
  836. 'opts': {},
  837. 'settings': {},
  838. }
  839. },
  840. 'xcache': {
  841. 'ini': {
  842. 'defaults': {
  843. 'xcache-common': {
  844. 'extension': 'xcache.so',
  845. },
  846. 'xcache.admin': {
  847. 'xcache.admin.enable_auth': 'On',
  848. },
  849. 'xcache': {
  850. 'xcache.shm_scheme': '"mmap"',
  851. 'xcache.size': '60M',
  852. 'xcache.count': '1',
  853. 'xcache.slots': '8K',
  854. 'xcache.ttl': '0',
  855. 'xcache.gc_interval': '0',
  856. 'xcache.var_size': '4M',
  857. 'xcache.var_count': '1',
  858. 'xcache.var_slots': '8K',
  859. 'xcache.var_ttl': '0',
  860. 'xcache.var_maxttl': '0',
  861. 'xcache.var_gc_interval': '300',
  862. 'xcache.var_namespace_mode': '0',
  863. 'xcache.var_namespace': '""',
  864. 'xcache.readonly_protection': 'Off',
  865. 'xcache.mmap_path': '"/dev/zero"',
  866. 'xcache.coredump_directory': '""',
  867. 'xcache.coredump_type': '0',
  868. 'xcache.disable_on_crash': 'Off',
  869. 'xcache.experimental': 'Off',
  870. 'xcache.cacher': 'On',
  871. 'xcache.stat': 'On',
  872. 'xcache.optimizer': 'Off',
  873. },
  874. 'xcache.coverager': {
  875. 'xcache.coverager': 'Off',
  876. 'xcache.coverager_autostart': 'On',
  877. 'xcache.coveragedump_directory': '""',
  878. },
  879. },
  880. 'opts': {},
  881. 'settings': {},
  882. }
  883. },
  884. 'ini': {
  885. 'defaults': {
  886. 'PHP': {
  887. 'allow_url_fopen': 'On',
  888. 'allow_url_include': 'Off',
  889. 'asp_tags': 'Off',
  890. 'auto_globals_jit': 'On',
  891. 'default_mimetype': '"text/html"',
  892. 'default_socket_timeout': 60,
  893. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  894. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  895. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  896. 'display_errors': 'Off',
  897. 'display_startup_errors': 'Off',
  898. 'enable_dl': 'Off',
  899. 'engine': 'On',
  900. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  901. 'expose_php': 'On',
  902. 'file_uploads': 'On',
  903. 'html_errors': 'On',
  904. 'ignore_repeated_errors': 'Off',
  905. 'ignore_repeated_source': 'Off',
  906. 'implicit_flush': 'Off',
  907. 'log_errors': 'On',
  908. 'log_errors_max_len': 1024,
  909. 'max_execution_time': 30,
  910. 'max_file_uploads': 20,
  911. 'max_input_nesting_level': 64,
  912. 'max_input_time': 60,
  913. 'max_input_vars': 1000,
  914. 'memory_limit': '128M',
  915. 'output_buffering': 4096,
  916. 'post_max_size': '8M',
  917. 'precision': 14,
  918. 'register_argc_argv': 'Off',
  919. 'report_memleaks': 'On',
  920. 'request_order': 'GP',
  921. 'serialize_precision': 17,
  922. 'short_open_tag': 'Off',
  923. 'track_errors': 'Off',
  924. 'upload_max_filesize': '2M',
  925. 'variables_order': 'GPCS',
  926. 'zend.enable_gc': 'On',
  927. 'zlib.output_compression': 'Off',
  928. },
  929. 'CLI Server': {
  930. 'cli_server.color': 'On'
  931. },
  932. 'Date': {
  933. 'date.timezone': 'America/New_York'
  934. },
  935. 'Pdo_mysql': {
  936. 'pdo_mysql.cache_size': 2000
  937. },
  938. 'mail function': {
  939. 'SMTP': 'localhost',
  940. 'mail.add_x_header': 'On'
  941. },
  942. 'SQL': {
  943. 'sql.safe_mode': 'Off'
  944. },
  945. 'ODBC': {
  946. 'odbc.allow_persistent': 'On',
  947. 'odbc.check_persistent': 'On',
  948. 'odbc.max_persistent': '-1',
  949. 'odbc.max_links': '-1',
  950. 'odbc.defaultlrl': 4096,
  951. 'odbc.defaultbinmode': 1
  952. },
  953. 'Interbase': {
  954. 'ibase.allow_persistent': 1,
  955. 'ibase.max_persistent': -1,
  956. 'ibase.max_links': -1,
  957. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  958. 'ibase.dateformat': '"%Y-%m-%d"',
  959. 'ibase.timeformat': '"%H:%M:%S"'
  960. },
  961. 'MySQL': {
  962. 'mysql.allow_local_infile': 'On',
  963. 'mysql.allow_persistent': 'On',
  964. 'mysql.cache_size': '2000',
  965. 'mysql.max_persistent': -1,
  966. 'mysql.max_links': -1,
  967. 'mysql.connect_timeout': 60,
  968. 'mysql.trace_mode': 'Off'
  969. },
  970. 'MySQLi': {
  971. 'mysqli.max_persistent': -1,
  972. 'mysqli.allow_persistent': 'On',
  973. 'mysqli.max_links': -1,
  974. 'mysqli.cache_size': 2000,
  975. 'mysqli.default_port': 3306,
  976. 'mysqli.reconnect': 'Off'
  977. },
  978. 'mysqlnd': {
  979. 'mysqlnd.collect_statistics': 'On',
  980. 'mysqlnd.collect_memory_statistics': 'Off'
  981. },
  982. 'PostgreSQL': {
  983. 'pgsql.allow_persistent': 'On',
  984. 'pgsql.auto_reset_persistent': 'Off',
  985. 'pgsql.max_persistent': -1,
  986. 'pgsql.max_links': -1,
  987. 'pgsql.ignore_notice': 0,
  988. 'pgsql.log_notice': 0
  989. },
  990. 'Sybase-CT': {
  991. 'sybct.allow_persistent': 'On',
  992. 'sybct.max_persistent': -1,
  993. 'sybct.max_links': -1,
  994. 'sybct.min_server_severity': 10,
  995. 'sybct.min_client_severity': 10
  996. },
  997. 'bcmath': {
  998. 'bcmath.scale': 0
  999. },
  1000. 'Session': {
  1001. 'session.save_handler': 'files',
  1002. 'session.use_strict_mode': 0,
  1003. 'session.use_cookies': 1,
  1004. 'session.use_only_cookies': 1,
  1005. 'session.name': 'PHPSESSID',
  1006. 'session.auto_start': 0,
  1007. 'session.cookie_lifetime': 0,
  1008. 'session.cookie_path': '/',
  1009. 'session.serialize_handler': 'php',
  1010. 'session.gc_probability': 0,
  1011. 'session.gc_divisor': 1000,
  1012. 'session.gc_maxlifetime': 1440,
  1013. 'session.bug_compat_42': 'Off',
  1014. 'session.bug_compat_warn': 'Off',
  1015. 'session.cache_limiter': 'nocache',
  1016. 'session.cache_expire': '180',
  1017. 'session.use_trans_sid': 0,
  1018. 'session.hash_function': 0,
  1019. 'session.hash_bits_per_character': 5,
  1020. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1021. },
  1022. 'MSSQL': {
  1023. 'mssql.allow_persistent': 'On',
  1024. 'mssql.max_persistent': -1,
  1025. 'mssql.max_links': -1,
  1026. 'mssql.min_error_severity': 10,
  1027. 'mssql.min_message_severity': 10,
  1028. 'mssql.compatibility_mode': 'Off',
  1029. 'mssql.secure_connection': 'Off'
  1030. },
  1031. 'Tidy': {
  1032. 'tidy.clean_output': 'Off'
  1033. },
  1034. 'soap': {
  1035. 'soap.wsdl_cache_enabled': 1,
  1036. 'soap.wsdl_cache_dir': '"/tmp"',
  1037. 'soap.wsdl_cache_ttl': 86400,
  1038. 'soap.wsdl_cache_limit': 5
  1039. },
  1040. 'ldap': {
  1041. 'ldap.max_links': -1
  1042. },
  1043. },
  1044. },
  1045. }, merge=True) %}
  1046. {%- elif salt['grains.get']('osrelease')|string >= '17.10' %}
  1047. {%- set php = salt['pillar.get']('php', {
  1048. 'lookup': salt['grains.filter_by']({
  1049. 'Ubuntu': {
  1050. 'pkgs': {
  1051. 'adodb': 'libphp-adodb',
  1052. 'apache2': 'libapache2-mod-php',
  1053. 'apc': 'php',
  1054. 'apcu': 'php-apcu',
  1055. 'bcmath': 'php7.1-bcmath',
  1056. 'bz2': 'php7.1-bz2',
  1057. 'cache-lite': 'php-cache-lite',
  1058. 'cgi': 'php-cgi',
  1059. 'cli': 'php-cli',
  1060. 'console-table': 'php-console-table',
  1061. 'composer_bin': 'composer',
  1062. 'curl': 'php-curl',
  1063. 'dba': 'php7.1-dba',
  1064. 'dev': 'php7.1-dev',
  1065. 'fpm': 'php-fpm',
  1066. 'gd': 'php-gd',
  1067. 'geoip': 'php-geoip',
  1068. 'geshi': 'php-geshi',
  1069. 'gmp': 'php-gmp',
  1070. 'hhvm': 'hhvm',
  1071. 'imagick': 'php-imagick',
  1072. 'imap': 'php-imap',
  1073. 'intl': 'php-intl',
  1074. 'json': 'php-json',
  1075. 'ldap': 'php-ldap',
  1076. 'local_bin': '/usr/local/bin',
  1077. 'auth-sasl': 'php-auth-sasl',
  1078. 'mail': 'php-mail',
  1079. 'mbstring': 'php-mbstring',
  1080. 'mcrypt': 'php-mcrypt',
  1081. 'memcache': 'php-memcache',
  1082. 'memcached': 'php-memcached',
  1083. 'mongodb': 'php-mongodb',
  1084. 'mysql': 'php-mysql',
  1085. 'mysqlnd': 'php',
  1086. 'net-smtp': 'php-net-smtp',
  1087. 'net4': 'php-net-ipv4',
  1088. 'net6': 'php-net-ipv6',
  1089. 'oauth': 'php-oauth',
  1090. 'opcache': 'php7.1-opcache',
  1091. 'pear': 'php-pear',
  1092. 'pgsql': 'php-pgsql',
  1093. 'php': 'php',
  1094. 'phpenmod_command': 'phpenmod',
  1095. 'pspell': 'php-pspell',
  1096. 'redis': 'php-redis',
  1097. 'seclib': ['php-phpseclib', 'php-seclib'],
  1098. 'snmp': 'php-snmp',
  1099. 'soap': 'php-soap',
  1100. 'sqlite': 'php-sqlite3',
  1101. 'ssh2': 'php-ssh2',
  1102. 'suhosin': 'php',
  1103. 'sybase': 'php-sybase',
  1104. 'tcpdf': 'php-tcpdf',
  1105. 'temp_dir': '/tmp',
  1106. 'tidy': 'php7.1-tidy',
  1107. 'xcache': 'php',
  1108. 'xdebug': 'php-xdebug',
  1109. 'xml': ['php-xml', 'php-xmlrpc'],
  1110. 'xsl': 'php7.1-xsl',
  1111. 'zip': 'php-zip',
  1112. },
  1113. 'fpm': {
  1114. 'conf': '/etc/php/7.1/fpm/php-fpm.conf',
  1115. 'ini': '/etc/php/7.1/fpm/php.ini',
  1116. 'pools': '/etc/php/7.1/fpm/pool.d',
  1117. 'service': 'php7.1-fpm',
  1118. 'user': 'root',
  1119. 'group': 'root',
  1120. 'defaults': odict([
  1121. ('global', odict([
  1122. ('pid', '/var/run/php7.1-fpm.pid'),
  1123. ('error_log', '/var/log/php7.1-fpm.log'),
  1124. ])),
  1125. ('include', '/etc/php/7.1/fpm/pool.d/*.conf'),
  1126. ]),
  1127. },
  1128. 'hhvm': {
  1129. 'conf': '/etc/hhvm/server.ini',
  1130. 'ini': '/etc/hhvm/php.ini',
  1131. 'service': 'hhvm',
  1132. 'defaults': {},
  1133. 'server': odict([
  1134. ('pid', '/var/run/hhvm/pid'),
  1135. ('hhvm.server.port', '9000'),
  1136. ('hhvm.server.type', 'fastcgi'),
  1137. ('hhvm.server.default_document', 'index.php'),
  1138. ('hhvm.log.use_log_file', 'true'),
  1139. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1140. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1141. ]),
  1142. 'php': odict([
  1143. ('session.save_handler', 'files'),
  1144. ('session.save_path', '/var/lib/hhvm/sessions'),
  1145. ('session.gc_maxlifetime', '1440'),
  1146. ('hhvm.log.level', 'Warning'),
  1147. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1148. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1149. ('hhvm.mysql.typed_results', 'false'),
  1150. ]),
  1151. },
  1152. 'cli': {
  1153. 'ini': '/etc/php/7.1/cli/php.ini',
  1154. },
  1155. 'apache2': {
  1156. 'ini': '/etc/php/7.1/apache2/php.ini',
  1157. },
  1158. 'xcache': {
  1159. 'ini': '/etc/php/7.1/mods-available/xcache.ini',
  1160. 'defaults': {},
  1161. },
  1162. },
  1163. }, grain="os"),
  1164. 'fpm': {
  1165. 'service': {
  1166. 'enabled': True,
  1167. 'opts': {},
  1168. },
  1169. 'config': {
  1170. 'ini': {
  1171. 'opts': {},
  1172. 'settings': {},
  1173. },
  1174. 'conf': {
  1175. 'opts': {},
  1176. 'settings': {},
  1177. },
  1178. },
  1179. 'pools': {
  1180. 'default.conf': {
  1181. 'enabled': False,
  1182. 'opts': {},
  1183. },
  1184. },
  1185. },
  1186. 'hhvm': {
  1187. 'service': {
  1188. 'enabled': True,
  1189. 'opts': {},
  1190. },
  1191. 'config': {
  1192. 'server': {
  1193. 'opts': {},
  1194. 'settings': {},
  1195. },
  1196. 'php': {
  1197. 'opts': {},
  1198. 'settings': {},
  1199. },
  1200. },
  1201. },
  1202. 'cli': {
  1203. 'ini': {
  1204. 'opts': {},
  1205. 'settings': {},
  1206. }
  1207. },
  1208. 'apache2': {
  1209. 'ini': {
  1210. 'opts': {},
  1211. 'settings': {},
  1212. }
  1213. },
  1214. 'xcache': {
  1215. 'ini': {
  1216. 'defaults': {
  1217. 'xcache-common': {
  1218. 'extension': 'xcache.so',
  1219. },
  1220. 'xcache.admin': {
  1221. 'xcache.admin.enable_auth': 'On',
  1222. },
  1223. 'xcache': {
  1224. 'xcache.shm_scheme': '"mmap"',
  1225. 'xcache.size': '60M',
  1226. 'xcache.count': '1',
  1227. 'xcache.slots': '8K',
  1228. 'xcache.ttl': '0',
  1229. 'xcache.gc_interval': '0',
  1230. 'xcache.var_size': '4M',
  1231. 'xcache.var_count': '1',
  1232. 'xcache.var_slots': '8K',
  1233. 'xcache.var_ttl': '0',
  1234. 'xcache.var_maxttl': '0',
  1235. 'xcache.var_gc_interval': '300',
  1236. 'xcache.var_namespace_mode': '0',
  1237. 'xcache.var_namespace': '""',
  1238. 'xcache.readonly_protection': 'Off',
  1239. 'xcache.mmap_path': '"/dev/zero"',
  1240. 'xcache.coredump_directory': '""',
  1241. 'xcache.coredump_type': '0',
  1242. 'xcache.disable_on_crash': 'Off',
  1243. 'xcache.experimental': 'Off',
  1244. 'xcache.cacher': 'On',
  1245. 'xcache.stat': 'On',
  1246. 'xcache.optimizer': 'Off',
  1247. },
  1248. 'xcache.coverager': {
  1249. 'xcache.coverager': 'Off',
  1250. 'xcache.coverager_autostart': 'On',
  1251. 'xcache.coveragedump_directory': '""',
  1252. },
  1253. },
  1254. 'opts': {},
  1255. 'settings': {},
  1256. }
  1257. },
  1258. 'ini': {
  1259. 'defaults': {
  1260. 'PHP': {
  1261. 'allow_url_fopen': 'On',
  1262. 'allow_url_include': 'Off',
  1263. 'asp_tags': 'Off',
  1264. 'auto_globals_jit': 'On',
  1265. 'default_mimetype': '"text/html"',
  1266. 'default_socket_timeout': 60,
  1267. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  1268. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  1269. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  1270. 'display_errors': 'Off',
  1271. 'display_startup_errors': 'Off',
  1272. 'enable_dl': 'Off',
  1273. 'engine': 'On',
  1274. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1275. 'expose_php': 'On',
  1276. 'file_uploads': 'On',
  1277. 'html_errors': 'On',
  1278. 'ignore_repeated_errors': 'Off',
  1279. 'ignore_repeated_source': 'Off',
  1280. 'implicit_flush': 'Off',
  1281. 'log_errors': 'On',
  1282. 'log_errors_max_len': 1024,
  1283. 'max_execution_time': 30,
  1284. 'max_file_uploads': 20,
  1285. 'max_input_nesting_level': 64,
  1286. 'max_input_time': 60,
  1287. 'max_input_vars': 1000,
  1288. 'memory_limit': '128M',
  1289. 'output_buffering': 4096,
  1290. 'post_max_size': '8M',
  1291. 'precision': 14,
  1292. 'register_argc_argv': 'Off',
  1293. 'report_memleaks': 'On',
  1294. 'request_order': 'GP',
  1295. 'serialize_precision': 17,
  1296. 'short_open_tag': 'Off',
  1297. 'track_errors': 'Off',
  1298. 'upload_max_filesize': '2M',
  1299. 'variables_order': 'GPCS',
  1300. 'zend.enable_gc': 'On',
  1301. 'zlib.output_compression': 'Off',
  1302. },
  1303. 'CLI Server': {
  1304. 'cli_server.color': 'On'
  1305. },
  1306. 'Date': {
  1307. 'date.timezone': 'America/New_York'
  1308. },
  1309. 'Pdo_mysql': {
  1310. 'pdo_mysql.cache_size': 2000
  1311. },
  1312. 'mail function': {
  1313. 'SMTP': 'localhost',
  1314. 'mail.add_x_header': 'On'
  1315. },
  1316. 'SQL': {
  1317. 'sql.safe_mode': 'Off'
  1318. },
  1319. 'ODBC': {
  1320. 'odbc.allow_persistent': 'On',
  1321. 'odbc.check_persistent': 'On',
  1322. 'odbc.max_persistent': '-1',
  1323. 'odbc.max_links': '-1',
  1324. 'odbc.defaultlrl': 4096,
  1325. 'odbc.defaultbinmode': 1
  1326. },
  1327. 'Interbase': {
  1328. 'ibase.allow_persistent': 1,
  1329. 'ibase.max_persistent': -1,
  1330. 'ibase.max_links': -1,
  1331. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1332. 'ibase.dateformat': '"%Y-%m-%d"',
  1333. 'ibase.timeformat': '"%H:%M:%S"'
  1334. },
  1335. 'MySQL': {
  1336. 'mysql.allow_local_infile': 'On',
  1337. 'mysql.allow_persistent': 'On',
  1338. 'mysql.cache_size': '2000',
  1339. 'mysql.max_persistent': -1,
  1340. 'mysql.max_links': -1,
  1341. 'mysql.connect_timeout': 60,
  1342. 'mysql.trace_mode': 'Off'
  1343. },
  1344. 'MySQLi': {
  1345. 'mysqli.max_persistent': -1,
  1346. 'mysqli.allow_persistent': 'On',
  1347. 'mysqli.max_links': -1,
  1348. 'mysqli.cache_size': 2000,
  1349. 'mysqli.default_port': 3306,
  1350. 'mysqli.reconnect': 'Off'
  1351. },
  1352. 'mysqlnd': {
  1353. 'mysqlnd.collect_statistics': 'On',
  1354. 'mysqlnd.collect_memory_statistics': 'Off'
  1355. },
  1356. 'PostgreSQL': {
  1357. 'pgsql.allow_persistent': 'On',
  1358. 'pgsql.auto_reset_persistent': 'Off',
  1359. 'pgsql.max_persistent': -1,
  1360. 'pgsql.max_links': -1,
  1361. 'pgsql.ignore_notice': 0,
  1362. 'pgsql.log_notice': 0
  1363. },
  1364. 'Sybase-CT': {
  1365. 'sybct.allow_persistent': 'On',
  1366. 'sybct.max_persistent': -1,
  1367. 'sybct.max_links': -1,
  1368. 'sybct.min_server_severity': 10,
  1369. 'sybct.min_client_severity': 10
  1370. },
  1371. 'bcmath': {
  1372. 'bcmath.scale': 0
  1373. },
  1374. 'Session': {
  1375. 'session.save_handler': 'files',
  1376. 'session.use_strict_mode': 0,
  1377. 'session.use_cookies': 1,
  1378. 'session.use_only_cookies': 1,
  1379. 'session.name': 'PHPSESSID',
  1380. 'session.auto_start': 0,
  1381. 'session.cookie_lifetime': 0,
  1382. 'session.cookie_path': '/',
  1383. 'session.serialize_handler': 'php',
  1384. 'session.gc_probability': 0,
  1385. 'session.gc_divisor': 1000,
  1386. 'session.gc_maxlifetime': 1440,
  1387. 'session.bug_compat_42': 'Off',
  1388. 'session.bug_compat_warn': 'Off',
  1389. 'session.cache_limiter': 'nocache',
  1390. 'session.cache_expire': '180',
  1391. 'session.use_trans_sid': 0,
  1392. 'session.hash_function': 0,
  1393. 'session.hash_bits_per_character': 5,
  1394. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1395. },
  1396. 'MSSQL': {
  1397. 'mssql.allow_persistent': 'On',
  1398. 'mssql.max_persistent': -1,
  1399. 'mssql.max_links': -1,
  1400. 'mssql.min_error_severity': 10,
  1401. 'mssql.min_message_severity': 10,
  1402. 'mssql.compatibility_mode': 'Off',
  1403. 'mssql.secure_connection': 'Off'
  1404. },
  1405. 'Tidy': {
  1406. 'tidy.clean_output': 'Off'
  1407. },
  1408. 'soap': {
  1409. 'soap.wsdl_cache_enabled': 1,
  1410. 'soap.wsdl_cache_dir': '"/tmp"',
  1411. 'soap.wsdl_cache_ttl': 86400,
  1412. 'soap.wsdl_cache_limit': 5
  1413. },
  1414. 'ldap': {
  1415. 'ldap.max_links': -1
  1416. },
  1417. },
  1418. },
  1419. }, merge=True) %}
  1420. {%- elif salt['grains.get']('osrelease')|string >= '16.04' %}
  1421. {%- set php = salt['pillar.get']('php', {
  1422. 'lookup': salt['grains.filter_by']({
  1423. 'Ubuntu': {
  1424. 'pkgs': {
  1425. 'adodb': 'libphp-adodb',
  1426. 'apache2': 'libapache2-mod-php',
  1427. 'apc': 'php',
  1428. 'apcu': 'php-apcu',
  1429. 'bcmath': 'php7.0-bcmath',
  1430. 'bz2': 'php7.0-bz2',
  1431. 'cache-lite': 'php-cache-lite',
  1432. 'cgi': 'php-cgi',
  1433. 'cli': 'php-cli',
  1434. 'console-table': 'php-console-table',
  1435. 'composer_bin': 'composer',
  1436. 'curl': 'php-curl',
  1437. 'dba': 'php7.0-dba',
  1438. 'dev': 'php7.0-dev',
  1439. 'fpm': 'php-fpm',
  1440. 'gd': 'php-gd',
  1441. 'geoip': 'php-geoip',
  1442. 'geshi': 'php-geshi',
  1443. 'gmp': 'php-gmp',
  1444. 'hhvm': 'hhvm',
  1445. 'imagick': 'php-imagick',
  1446. 'imap': 'php-imap',
  1447. 'intl': 'php-intl',
  1448. 'json': 'php-json',
  1449. 'ldap': 'php-ldap',
  1450. 'local_bin': '/usr/local/bin',
  1451. 'auth-sasl': 'php-auth-sasl',
  1452. 'mail': 'php-mail',
  1453. 'mbstring': 'php-mbstring',
  1454. 'mcrypt': 'php-mcrypt',
  1455. 'memcache': 'php-memcache',
  1456. 'memcached': 'php-memcached',
  1457. 'mongodb': 'php-mongodb',
  1458. 'mysql': 'php-mysql',
  1459. 'mysqlnd': 'php',
  1460. 'net-smtp': 'php-net-smtp',
  1461. 'net4': 'php-net-ipv4',
  1462. 'net6': 'php-net-ipv6',
  1463. 'oauth': 'php-oauth',
  1464. 'opcache': 'php7.0-opcache',
  1465. 'pear': 'php-pear',
  1466. 'pgsql': 'php-pgsql',
  1467. 'php': 'php',
  1468. 'phpenmod_command': 'phpenmod',
  1469. 'pspell': 'php-pspell',
  1470. 'redis': 'php-redis',
  1471. 'seclib': ['php-phpseclib', 'php-seclib'],
  1472. 'snmp': 'php-snmp',
  1473. 'soap': 'php-soap',
  1474. 'sqlite': 'php-sqlite3',
  1475. 'ssh2': 'php-ssh2',
  1476. 'suhosin': 'php',
  1477. 'sybase': 'php-sybase',
  1478. 'tcpdf': 'php-tcpdf',
  1479. 'temp_dir': '/tmp',
  1480. 'tidy': 'php7.0-tidy',
  1481. 'xcache': 'php',
  1482. 'xdebug': 'php-xdebug',
  1483. 'xml': ['php-xml', 'php-xmlrpc'],
  1484. 'xsl': 'php7.0-xsl',
  1485. 'zip': 'php-zip',
  1486. },
  1487. 'fpm': {
  1488. 'conf': '/etc/php/7.0/fpm/php-fpm.conf',
  1489. 'ini': '/etc/php/7.0/fpm/php.ini',
  1490. 'pools': '/etc/php/7.0/fpm/pool.d',
  1491. 'service': 'php7.0-fpm',
  1492. 'user': 'root',
  1493. 'group': 'root',
  1494. 'defaults': odict([
  1495. ('global', odict([
  1496. ('pid', '/var/run/php7.0-fpm.pid'),
  1497. ('error_log', '/var/log/php7.0-fpm.log'),
  1498. ])),
  1499. ('include', '/etc/php/7.0/fpm/pool.d/*.conf'),
  1500. ]),
  1501. },
  1502. 'hhvm': {
  1503. 'conf': '/etc/hhvm/server.ini',
  1504. 'ini': '/etc/hhvm/php.ini',
  1505. 'service': 'hhvm',
  1506. 'defaults': {},
  1507. 'server': odict([
  1508. ('pid', '/var/run/hhvm/pid'),
  1509. ('hhvm.server.port', '9000'),
  1510. ('hhvm.server.type', 'fastcgi'),
  1511. ('hhvm.server.default_document', 'index.php'),
  1512. ('hhvm.log.use_log_file', 'true'),
  1513. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1514. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1515. ]),
  1516. 'php': odict([
  1517. ('session.save_handler', 'files'),
  1518. ('session.save_path', '/var/lib/hhvm/sessions'),
  1519. ('session.gc_maxlifetime', '1440'),
  1520. ('hhvm.log.level', 'Warning'),
  1521. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1522. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1523. ('hhvm.mysql.typed_results', 'false'),
  1524. ]),
  1525. },
  1526. 'cli': {
  1527. 'ini': '/etc/php/7.0/cli/php.ini',
  1528. },
  1529. 'apache2': {
  1530. 'ini': '/etc/php/7.0/apache2/php.ini',
  1531. },
  1532. 'xcache': {
  1533. 'ini': '/etc/php/7.0/mods-available/xcache.ini',
  1534. 'defaults': {},
  1535. },
  1536. },
  1537. }, grain="os"),
  1538. 'fpm': {
  1539. 'service': {
  1540. 'enabled': True,
  1541. 'opts': {},
  1542. },
  1543. 'config': {
  1544. 'ini': {
  1545. 'opts': {},
  1546. 'settings': {},
  1547. },
  1548. 'conf': {
  1549. 'opts': {},
  1550. 'settings': {},
  1551. },
  1552. },
  1553. 'pools': {
  1554. 'default.conf': {
  1555. 'enabled': False,
  1556. 'opts': {},
  1557. },
  1558. },
  1559. },
  1560. 'hhvm': {
  1561. 'service': {
  1562. 'enabled': True,
  1563. 'opts': {},
  1564. },
  1565. 'config': {
  1566. 'server': {
  1567. 'opts': {},
  1568. 'settings': {},
  1569. },
  1570. 'php': {
  1571. 'opts': {},
  1572. 'settings': {},
  1573. },
  1574. },
  1575. },
  1576. 'cli': {
  1577. 'ini': {
  1578. 'opts': {},
  1579. 'settings': {},
  1580. }
  1581. },
  1582. 'apache2': {
  1583. 'ini': {
  1584. 'opts': {},
  1585. 'settings': {},
  1586. }
  1587. },
  1588. 'xcache': {
  1589. 'ini': {
  1590. 'defaults': {
  1591. 'xcache-common': {
  1592. 'extension': 'xcache.so',
  1593. },
  1594. 'xcache.admin': {
  1595. 'xcache.admin.enable_auth': 'On',
  1596. },
  1597. 'xcache': {
  1598. 'xcache.shm_scheme': '"mmap"',
  1599. 'xcache.size': '60M',
  1600. 'xcache.count': '1',
  1601. 'xcache.slots': '8K',
  1602. 'xcache.ttl': '0',
  1603. 'xcache.gc_interval': '0',
  1604. 'xcache.var_size': '4M',
  1605. 'xcache.var_count': '1',
  1606. 'xcache.var_slots': '8K',
  1607. 'xcache.var_ttl': '0',
  1608. 'xcache.var_maxttl': '0',
  1609. 'xcache.var_gc_interval': '300',
  1610. 'xcache.var_namespace_mode': '0',
  1611. 'xcache.var_namespace': '""',
  1612. 'xcache.readonly_protection': 'Off',
  1613. 'xcache.mmap_path': '"/dev/zero"',
  1614. 'xcache.coredump_directory': '""',
  1615. 'xcache.coredump_type': '0',
  1616. 'xcache.disable_on_crash': 'Off',
  1617. 'xcache.experimental': 'Off',
  1618. 'xcache.cacher': 'On',
  1619. 'xcache.stat': 'On',
  1620. 'xcache.optimizer': 'Off',
  1621. },
  1622. 'xcache.coverager': {
  1623. 'xcache.coverager': 'Off',
  1624. 'xcache.coverager_autostart': 'On',
  1625. 'xcache.coveragedump_directory': '""',
  1626. },
  1627. },
  1628. 'opts': {},
  1629. 'settings': {},
  1630. }
  1631. },
  1632. 'ini': {
  1633. 'defaults': {
  1634. 'PHP': {
  1635. 'allow_url_fopen': 'On',
  1636. 'allow_url_include': 'Off',
  1637. 'asp_tags': 'Off',
  1638. 'auto_globals_jit': 'On',
  1639. 'default_mimetype': '"text/html"',
  1640. 'default_socket_timeout': 60,
  1641. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  1642. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  1643. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  1644. 'display_errors': 'Off',
  1645. 'display_startup_errors': 'Off',
  1646. 'enable_dl': 'Off',
  1647. 'engine': 'On',
  1648. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  1649. 'expose_php': 'On',
  1650. 'file_uploads': 'On',
  1651. 'html_errors': 'On',
  1652. 'ignore_repeated_errors': 'Off',
  1653. 'ignore_repeated_source': 'Off',
  1654. 'implicit_flush': 'Off',
  1655. 'log_errors': 'On',
  1656. 'log_errors_max_len': 1024,
  1657. 'max_execution_time': 30,
  1658. 'max_file_uploads': 20,
  1659. 'max_input_nesting_level': 64,
  1660. 'max_input_time': 60,
  1661. 'max_input_vars': 1000,
  1662. 'memory_limit': '128M',
  1663. 'output_buffering': 4096,
  1664. 'post_max_size': '8M',
  1665. 'precision': 14,
  1666. 'register_argc_argv': 'Off',
  1667. 'report_memleaks': 'On',
  1668. 'request_order': 'GP',
  1669. 'serialize_precision': 17,
  1670. 'short_open_tag': 'Off',
  1671. 'track_errors': 'Off',
  1672. 'upload_max_filesize': '2M',
  1673. 'variables_order': 'GPCS',
  1674. 'zend.enable_gc': 'On',
  1675. 'zlib.output_compression': 'Off',
  1676. },
  1677. 'CLI Server': {
  1678. 'cli_server.color': 'On'
  1679. },
  1680. 'Date': {
  1681. 'date.timezone': 'America/New_York'
  1682. },
  1683. 'Pdo_mysql': {
  1684. 'pdo_mysql.cache_size': 2000
  1685. },
  1686. 'mail function': {
  1687. 'SMTP': 'localhost',
  1688. 'mail.add_x_header': 'On'
  1689. },
  1690. 'SQL': {
  1691. 'sql.safe_mode': 'Off'
  1692. },
  1693. 'ODBC': {
  1694. 'odbc.allow_persistent': 'On',
  1695. 'odbc.check_persistent': 'On',
  1696. 'odbc.max_persistent': '-1',
  1697. 'odbc.max_links': '-1',
  1698. 'odbc.defaultlrl': 4096,
  1699. 'odbc.defaultbinmode': 1
  1700. },
  1701. 'Interbase': {
  1702. 'ibase.allow_persistent': 1,
  1703. 'ibase.max_persistent': -1,
  1704. 'ibase.max_links': -1,
  1705. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  1706. 'ibase.dateformat': '"%Y-%m-%d"',
  1707. 'ibase.timeformat': '"%H:%M:%S"'
  1708. },
  1709. 'MySQL': {
  1710. 'mysql.allow_local_infile': 'On',
  1711. 'mysql.allow_persistent': 'On',
  1712. 'mysql.cache_size': '2000',
  1713. 'mysql.max_persistent': -1,
  1714. 'mysql.max_links': -1,
  1715. 'mysql.connect_timeout': 60,
  1716. 'mysql.trace_mode': 'Off'
  1717. },
  1718. 'MySQLi': {
  1719. 'mysqli.max_persistent': -1,
  1720. 'mysqli.allow_persistent': 'On',
  1721. 'mysqli.max_links': -1,
  1722. 'mysqli.cache_size': 2000,
  1723. 'mysqli.default_port': 3306,
  1724. 'mysqli.reconnect': 'Off'
  1725. },
  1726. 'mysqlnd': {
  1727. 'mysqlnd.collect_statistics': 'On',
  1728. 'mysqlnd.collect_memory_statistics': 'Off'
  1729. },
  1730. 'PostgreSQL': {
  1731. 'pgsql.allow_persistent': 'On',
  1732. 'pgsql.auto_reset_persistent': 'Off',
  1733. 'pgsql.max_persistent': -1,
  1734. 'pgsql.max_links': -1,
  1735. 'pgsql.ignore_notice': 0,
  1736. 'pgsql.log_notice': 0
  1737. },
  1738. 'Sybase-CT': {
  1739. 'sybct.allow_persistent': 'On',
  1740. 'sybct.max_persistent': -1,
  1741. 'sybct.max_links': -1,
  1742. 'sybct.min_server_severity': 10,
  1743. 'sybct.min_client_severity': 10
  1744. },
  1745. 'bcmath': {
  1746. 'bcmath.scale': 0
  1747. },
  1748. 'Session': {
  1749. 'session.save_handler': 'files',
  1750. 'session.use_strict_mode': 0,
  1751. 'session.use_cookies': 1,
  1752. 'session.use_only_cookies': 1,
  1753. 'session.name': 'PHPSESSID',
  1754. 'session.auto_start': 0,
  1755. 'session.cookie_lifetime': 0,
  1756. 'session.cookie_path': '/',
  1757. 'session.serialize_handler': 'php',
  1758. 'session.gc_probability': 0,
  1759. 'session.gc_divisor': 1000,
  1760. 'session.gc_maxlifetime': 1440,
  1761. 'session.bug_compat_42': 'Off',
  1762. 'session.bug_compat_warn': 'Off',
  1763. 'session.cache_limiter': 'nocache',
  1764. 'session.cache_expire': '180',
  1765. 'session.use_trans_sid': 0,
  1766. 'session.hash_function': 0,
  1767. 'session.hash_bits_per_character': 5,
  1768. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  1769. },
  1770. 'MSSQL': {
  1771. 'mssql.allow_persistent': 'On',
  1772. 'mssql.max_persistent': -1,
  1773. 'mssql.max_links': -1,
  1774. 'mssql.min_error_severity': 10,
  1775. 'mssql.min_message_severity': 10,
  1776. 'mssql.compatibility_mode': 'Off',
  1777. 'mssql.secure_connection': 'Off'
  1778. },
  1779. 'Tidy': {
  1780. 'tidy.clean_output': 'Off'
  1781. },
  1782. 'soap': {
  1783. 'soap.wsdl_cache_enabled': 1,
  1784. 'soap.wsdl_cache_dir': '"/tmp"',
  1785. 'soap.wsdl_cache_ttl': 86400,
  1786. 'soap.wsdl_cache_limit': 5
  1787. },
  1788. 'ldap': {
  1789. 'ldap.max_links': -1
  1790. },
  1791. },
  1792. },
  1793. }, merge=True) %}
  1794. {%- else %}
  1795. {%- set php = salt['pillar.get']('php', {
  1796. 'lookup': salt['grains.filter_by']({
  1797. 'Ubuntu': {
  1798. 'pkgs': {
  1799. 'adodb': 'php5-adodb',
  1800. 'apache2': 'libapache2-mod-php5',
  1801. 'apc': 'php-apc',
  1802. 'apcu': 'php5-apcu',
  1803. 'bcmath': 'php5',
  1804. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  1805. 'cache-lite': 'php-cache-lite',
  1806. 'cgi': 'php5-cgi',
  1807. 'cli': 'php5-cli',
  1808. 'composer_bin': 'composer',
  1809. 'console-table': 'php-console-table',
  1810. 'curl': 'php5-curl',
  1811. 'dev': ['php5-dev','build-essential'],
  1812. 'ext_conf_path': salt['grains.filter_by']({
  1813. 'precise': '/etc/php5/conf.d',
  1814. 'default': '/etc/php5/mods-available',
  1815. }, grain='oscodename'),
  1816. 'fpm': 'php5-fpm',
  1817. 'gd': 'php5-gd',
  1818. 'gearman': 'php5-gearman',
  1819. 'geoip': 'php5-geoip',
  1820. 'geshi': 'php-geshi',
  1821. 'gettext': 'php-gettext',
  1822. 'gmp': 'php5-gmp',
  1823. 'hhvm': 'hhvm',
  1824. 'imagick': 'php5-imagick',
  1825. 'imap': 'php5-imap',
  1826. 'intl': 'php5-intl',
  1827. 'json': 'php5-json',
  1828. 'ldap': 'php5-ldap',
  1829. 'local_bin': '/usr/local/bin',
  1830. 'auth-sasl': 'php-auth-sasl',
  1831. 'mail': 'php-mail',
  1832. 'mbstring': 'php5',
  1833. 'mcrypt': 'php5-mcrypt',
  1834. 'mdb2': 'php-mdb2',
  1835. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  1836. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  1837. 'memcache': 'php5-memcache',
  1838. 'memcached': 'php5-memcached',
  1839. 'mongodb': salt['grains.filter_by']({
  1840. 'trusty': 'php5-mongo',
  1841. 'default': '',
  1842. }, grain='oscodename'),
  1843. 'mysql': 'php5-mysql',
  1844. 'mysqlnd': 'php5-mysqlnd',
  1845. 'net-smtp': 'php-net-smtp',
  1846. 'net4': 'php-net-ipv4',
  1847. 'net6': 'php-net-ipv6',
  1848. 'oauth': 'php5-oauth',
  1849. 'opcache': 'php5',
  1850. 'pear': 'php-pear',
  1851. 'pgsql': 'php5-pgsql',
  1852. 'php': 'php5',
  1853. 'phpenmod_command': salt['grains.filter_by']({
  1854. 'precise': 'true',
  1855. 'default': 'php5enmod',
  1856. }, grain='oscodename'),
  1857. 'pspell': 'php5-pspell',
  1858. 'redis': 'php5-redis',
  1859. 'seclib': 'php-seclib',
  1860. 'snmp': 'php5-snmp',
  1861. 'soap': 'php-soap',
  1862. 'sqlite': 'php5-sqlite',
  1863. 'ssh2': 'libssh2-php',
  1864. 'suhosin5_ext': 'suhosin.so',
  1865. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  1866. 'suhosin7_ext': 'suhosin7.so',
  1867. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  1868. 'svn': 'php5-svn',
  1869. 'tcpdf': 'php-tcpdf',
  1870. 'tidy': 'php5-tidy',
  1871. 'temp_dir': '/tmp',
  1872. 'xcache': 'php5-xcache',
  1873. 'xdebug': 'php5-xdebug',
  1874. 'xml': 'php5',
  1875. 'xsl': 'php5-xsl',
  1876. 'zip': 'php5',
  1877. },
  1878. 'fpm': {
  1879. 'conf': '/etc/php5/fpm/php-fpm.conf',
  1880. 'ini': '/etc/php5/fpm/php.ini',
  1881. 'pools': '/etc/php5/fpm/pool.d',
  1882. 'service': 'php5-fpm',
  1883. 'user': 'root',
  1884. 'group': 'root',
  1885. 'defaults': odict([
  1886. ('global', odict([
  1887. ('pid', '/var/run/php5-fpm.pid'),
  1888. ('error_log', '/var/log/php5-fpm.log'),
  1889. ])),
  1890. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  1891. ]),
  1892. },
  1893. 'hhvm': {
  1894. 'conf': '/etc/hhvm/server.ini',
  1895. 'ini': '/etc/hhvm/php.ini',
  1896. 'service': 'hhvm',
  1897. 'defaults': {},
  1898. 'server': odict([
  1899. ('pid', '/var/run/hhvm/pid'),
  1900. ('hhvm.server.port', '9000'),
  1901. ('hhvm.server.type', 'fastcgi'),
  1902. ('hhvm.server.default_document', 'index.php'),
  1903. ('hhvm.log.use_log_file', 'true'),
  1904. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  1905. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  1906. ]),
  1907. 'php': odict([
  1908. ('session.save_handler', 'files'),
  1909. ('session.save_path', '/var/lib/hhvm/sessions'),
  1910. ('session.gc_maxlifetime', '1440'),
  1911. ('hhvm.log.level', 'Warning'),
  1912. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  1913. ('hhvm.log.runtime_error_reporting_level', '8191'),
  1914. ('hhvm.mysql.typed_results', 'false'),
  1915. ]),
  1916. },
  1917. 'cli': {
  1918. 'ini': '/etc/php5/cli/php.ini',
  1919. },
  1920. 'apache2': {
  1921. 'ini': '/etc/php5/apache2/php.ini',
  1922. },
  1923. 'xcache': {
  1924. 'ini': '/etc/php5/mods-available/xcache.ini',
  1925. 'defaults': {},
  1926. },
  1927. },
  1928. }, grain="os"),
  1929. 'fpm': {
  1930. 'service': {
  1931. 'enabled': True,
  1932. 'opts': {},
  1933. },
  1934. 'config': {
  1935. 'ini': {
  1936. 'opts': {},
  1937. 'settings': {},
  1938. },
  1939. 'conf': {
  1940. 'opts': {},
  1941. 'settings': {},
  1942. },
  1943. },
  1944. 'pools': {
  1945. 'default.conf': {
  1946. 'enabled': False,
  1947. 'opts': {},
  1948. },
  1949. },
  1950. },
  1951. 'hhvm': {
  1952. 'service': {
  1953. 'enabled': True,
  1954. 'opts': {},
  1955. },
  1956. 'config': {
  1957. 'server': {
  1958. 'opts': {},
  1959. 'settings': {},
  1960. },
  1961. 'php': {
  1962. 'opts': {},
  1963. 'settings': {},
  1964. },
  1965. },
  1966. },
  1967. 'cli': {
  1968. 'ini': {
  1969. 'opts': {},
  1970. 'settings': {},
  1971. }
  1972. },
  1973. 'apache2': {
  1974. 'ini': {
  1975. 'opts': {},
  1976. 'settings': {},
  1977. }
  1978. },
  1979. 'xcache': {
  1980. 'ini': {
  1981. 'defaults': {
  1982. 'xcache-common': {
  1983. 'extension': 'xcache.so',
  1984. },
  1985. 'xcache.admin': {
  1986. 'xcache.admin.enable_auth': 'On',
  1987. },
  1988. 'xcache': {
  1989. 'xcache.shm_scheme': '"mmap"',
  1990. 'xcache.size': '60M',
  1991. 'xcache.count': '1',
  1992. 'xcache.slots': '8K',
  1993. 'xcache.ttl': '0',
  1994. 'xcache.gc_interval': '0',
  1995. 'xcache.var_size': '4M',
  1996. 'xcache.var_count': '1',
  1997. 'xcache.var_slots': '8K',
  1998. 'xcache.var_ttl': '0',
  1999. 'xcache.var_maxttl': '0',
  2000. 'xcache.var_gc_interval': '300',
  2001. 'xcache.var_namespace_mode': '0',
  2002. 'xcache.var_namespace': '""',
  2003. 'xcache.readonly_protection': 'Off',
  2004. 'xcache.mmap_path': '"/dev/zero"',
  2005. 'xcache.coredump_directory': '""',
  2006. 'xcache.coredump_type': '0',
  2007. 'xcache.disable_on_crash': 'Off',
  2008. 'xcache.experimental': 'Off',
  2009. 'xcache.cacher': 'On',
  2010. 'xcache.stat': 'On',
  2011. 'xcache.optimizer': 'Off',
  2012. },
  2013. 'xcache.coverager': {
  2014. 'xcache.coverager': 'Off',
  2015. 'xcache.coverager_autostart': 'On',
  2016. 'xcache.coveragedump_directory': '""',
  2017. },
  2018. },
  2019. 'opts': {},
  2020. 'settings': {},
  2021. }
  2022. },
  2023. 'ini': {
  2024. 'defaults': {
  2025. 'PHP': {
  2026. 'allow_url_fopen': 'On',
  2027. 'allow_url_include': 'Off',
  2028. 'asp_tags': 'Off',
  2029. 'auto_globals_jit': 'On',
  2030. 'default_mimetype': '"text/html"',
  2031. 'default_socket_timeout': 60,
  2032. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  2033. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  2034. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  2035. 'display_errors': 'Off',
  2036. 'display_startup_errors': 'Off',
  2037. 'enable_dl': 'Off',
  2038. 'engine': 'On',
  2039. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  2040. 'expose_php': 'On',
  2041. 'file_uploads': 'On',
  2042. 'html_errors': 'On',
  2043. 'ignore_repeated_errors': 'Off',
  2044. 'ignore_repeated_source': 'Off',
  2045. 'implicit_flush': 'Off',
  2046. 'log_errors': 'On',
  2047. 'log_errors_max_len': 1024,
  2048. 'max_execution_time': 30,
  2049. 'max_file_uploads': 20,
  2050. 'max_input_nesting_level': 64,
  2051. 'max_input_time': 60,
  2052. 'max_input_vars': 1000,
  2053. 'memory_limit': '128M',
  2054. 'output_buffering': 4096,
  2055. 'post_max_size': '8M',
  2056. 'precision': 14,
  2057. 'register_argc_argv': 'Off',
  2058. 'report_memleaks': 'On',
  2059. 'request_order': 'GP',
  2060. 'serialize_precision': 17,
  2061. 'short_open_tag': 'Off',
  2062. 'track_errors': 'Off',
  2063. 'upload_max_filesize': '2M',
  2064. 'variables_order': 'GPCS',
  2065. 'zend.enable_gc': 'On',
  2066. 'zlib.output_compression': 'Off',
  2067. },
  2068. 'CLI Server': {
  2069. 'cli_server.color': 'On'
  2070. },
  2071. 'Date': {
  2072. 'date.timezone': 'America/New_York'
  2073. },
  2074. 'Pdo_mysql': {
  2075. 'pdo_mysql.cache_size': 2000
  2076. },
  2077. 'mail function': {
  2078. 'SMTP': 'localhost',
  2079. 'mail.add_x_header': 'On'
  2080. },
  2081. 'SQL': {
  2082. 'sql.safe_mode': 'Off'
  2083. },
  2084. 'ODBC': {
  2085. 'odbc.allow_persistent': 'On',
  2086. 'odbc.check_persistent': 'On',
  2087. 'odbc.max_persistent': '-1',
  2088. 'odbc.max_links': '-1',
  2089. 'odbc.defaultlrl': 4096,
  2090. 'odbc.defaultbinmode': 1
  2091. },
  2092. 'Interbase': {
  2093. 'ibase.allow_persistent': 1,
  2094. 'ibase.max_persistent': -1,
  2095. 'ibase.max_links': -1,
  2096. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  2097. 'ibase.dateformat': '"%Y-%m-%d"',
  2098. 'ibase.timeformat': '"%H:%M:%S"'
  2099. },
  2100. 'MySQL': {
  2101. 'mysql.allow_local_infile': 'On',
  2102. 'mysql.allow_persistent': 'On',
  2103. 'mysql.cache_size': '2000',
  2104. 'mysql.max_persistent': -1,
  2105. 'mysql.max_links': -1,
  2106. 'mysql.connect_timeout': 60,
  2107. 'mysql.trace_mode': 'Off'
  2108. },
  2109. 'MySQLi': {
  2110. 'mysqli.max_persistent': -1,
  2111. 'mysqli.allow_persistent': 'On',
  2112. 'mysqli.max_links': -1,
  2113. 'mysqli.cache_size': 2000,
  2114. 'mysqli.default_port': 3306,
  2115. 'mysqli.reconnect': 'Off'
  2116. },
  2117. 'mysqlnd': {
  2118. 'mysqlnd.collect_statistics': 'On',
  2119. 'mysqlnd.collect_memory_statistics': 'Off'
  2120. },
  2121. 'PostgreSQL': {
  2122. 'pgsql.allow_persistent': 'On',
  2123. 'pgsql.auto_reset_persistent': 'Off',
  2124. 'pgsql.max_persistent': -1,
  2125. 'pgsql.max_links': -1,
  2126. 'pgsql.ignore_notice': 0,
  2127. 'pgsql.log_notice': 0
  2128. },
  2129. 'Sybase-CT': {
  2130. 'sybct.allow_persistent': 'On',
  2131. 'sybct.max_persistent': -1,
  2132. 'sybct.max_links': -1,
  2133. 'sybct.min_server_severity': 10,
  2134. 'sybct.min_client_severity': 10
  2135. },
  2136. 'bcmath': {
  2137. 'bcmath.scale': 0
  2138. },
  2139. 'Session': {
  2140. 'session.save_handler': 'files',
  2141. 'session.use_strict_mode': 0,
  2142. 'session.use_cookies': 1,
  2143. 'session.use_only_cookies': 1,
  2144. 'session.name': 'PHPSESSID',
  2145. 'session.auto_start': 0,
  2146. 'session.cookie_lifetime': 0,
  2147. 'session.cookie_path': '/',
  2148. 'session.serialize_handler': 'php',
  2149. 'session.gc_probability': 0,
  2150. 'session.gc_divisor': 1000,
  2151. 'session.gc_maxlifetime': 1440,
  2152. 'session.bug_compat_42': 'Off',
  2153. 'session.bug_compat_warn': 'Off',
  2154. 'session.cache_limiter': 'nocache',
  2155. 'session.cache_expire': '180',
  2156. 'session.use_trans_sid': 0,
  2157. 'session.hash_function': 0,
  2158. 'session.hash_bits_per_character': 5,
  2159. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  2160. },
  2161. 'MSSQL': {
  2162. 'mssql.allow_persistent': 'On',
  2163. 'mssql.max_persistent': -1,
  2164. 'mssql.max_links': -1,
  2165. 'mssql.min_error_severity': 10,
  2166. 'mssql.min_message_severity': 10,
  2167. 'mssql.compatibility_mode': 'Off',
  2168. 'mssql.secure_connection': 'Off'
  2169. },
  2170. 'Tidy': {
  2171. 'tidy.clean_output': 'Off'
  2172. },
  2173. 'soap': {
  2174. 'soap.wsdl_cache_enabled': 1,
  2175. 'soap.wsdl_cache_dir': '"/tmp"',
  2176. 'soap.wsdl_cache_ttl': 86400,
  2177. 'soap.wsdl_cache_limit': 5
  2178. },
  2179. 'ldap': {
  2180. 'ldap.max_links': -1
  2181. },
  2182. },
  2183. },
  2184. }, merge=True) %}
  2185. {%- endif %}
  2186. {%- endif %}
  2187. {%- elif salt['grains.get']('os') == "Debian" %}
  2188. {%- if php_version|string == '5' %}
  2189. {%- set confdir = '/etc/php5' %}
  2190. {%- else %}
  2191. {%- set confdir = '/etc/php/' + php_version %}
  2192. {%- endif %}
  2193. {%- set php = salt['pillar.get']('php', {
  2194. 'lookup': salt['grains.filter_by']({
  2195. 'Debian': {
  2196. 'pkgs': {
  2197. 'adodb': 'libphp-adodb',
  2198. 'apache2': 'libapache2-mod-php' + php_version,
  2199. 'apc': 'php-apcu',
  2200. 'apcu': 'php-apcu-bc',
  2201. 'bcmath': 'php' + php_version + '-bcmath',
  2202. 'bz2': 'php' + php_version + '-bz2',
  2203. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],
  2204. 'cache-lite': 'php-cache-lite',
  2205. 'cgi': 'php' + php_version + '-cgi',
  2206. 'cli': 'php' + php_version + '-cli',
  2207. 'composer_bin': 'composer',
  2208. 'console-table': 'php-console-table',
  2209. 'curl': 'php' + php_version + '-curl',
  2210. 'dba': 'php' + php_version + '-dba',
  2211. 'dev': 'php' + php_version + '-dev',
  2212. 'ext_conf_path': '/etc/php/' + php_version + '/mods-available',
  2213. 'fpm': 'php' + php_version + '-fpm',
  2214. 'gd': 'php' + php_version + '-gd',
  2215. 'gearman': 'php-gearman',
  2216. 'geoip': 'php-geoip',
  2217. 'geshi': 'php-geshi',
  2218. 'gettext': 'php' + php_version,
  2219. 'gmp': 'php' + php_version + '-gmp',
  2220. 'hhvm': 'hhvm',
  2221. 'igbinary': 'php-igbinary',
  2222. 'imagick': 'php-imagick',
  2223. 'imap': 'php' + php_version + '-imap',
  2224. 'intl': 'php' + php_version + '-intl',
  2225. 'json': 'php' + php_version + '-json',
  2226. 'ldap': 'php' + php_version + '-ldap',
  2227. 'local_bin': '/usr/local/bin',
  2228. 'auth-sasl': 'php-auth-sasl',
  2229. 'mail': 'php-mail',
  2230. 'mbstring': 'php' + php_version + '-mbstring',
  2231. 'mcrypt': 'php' + php_version + '-mcrypt',
  2232. 'memcache': 'php-memcache',
  2233. 'memcached': 'php-memcached',
  2234. 'mongo': 'php-mongo',
  2235. 'mongodb': 'php-mongodb',
  2236. 'msgpack': 'php-msgpack',
  2237. 'mysql': 'php' + php_version + '-mysql',
  2238. 'mysqlnd': 'php' + php_version + '-mysql',
  2239. 'net-smtp': 'php-net-smtp',
  2240. 'net4': 'php-net-ipv4',
  2241. 'net6': 'php-net-ipv6',
  2242. 'oauth': 'php-oauth',
  2243. 'opcache': 'php' + php_version + '-opcache',
  2244. 'pear': 'php-pear',
  2245. 'pgsql': 'php' + php_version + '-pgsql',
  2246. 'php': 'php' + php_version,
  2247. 'phpenmod_command': 'phpenmod -v' + php_version,
  2248. 'pspell': 'php' + php_version + '-pspell',
  2249. 'readline': 'php' + php_version + '-readline',
  2250. 'redis': 'php-redis',
  2251. 'seclib': ['php-phpseclib', 'php-seclib'],
  2252. 'snmp': 'php' + php_version + '-snmp',
  2253. 'soap': 'php' + php_version + '-soap',
  2254. 'ssh2': 'php-ssh2',
  2255. 'sqlite': 'php' + php_version + '-sqlite3',
  2256. 'suhosin5_ext': 'suhosin.so',
  2257. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2258. 'suhosin7_ext': 'suhosin7.so',
  2259. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2260. 'sybase': 'php' + php_version + '-sybase',
  2261. 'tcpdf': 'php-tcpdf',
  2262. 'temp_dir': '/tmp',
  2263. 'tidy': 'php' + php_version + '-tidy',
  2264. 'xdebug': 'php' + php_version + '-xdebug',
  2265. 'xml': ['php' + php_version + '-xml', 'php' + php_version + '-xmlrpc'],
  2266. 'xsl': 'php' + php_version + '-xsl',
  2267. 'zip': 'php' + php_version + '-zip',
  2268. },
  2269. 'fpm': {
  2270. 'conf': confdir + '/fpm/php-fpm.conf',
  2271. 'ini': confdir + '/fpm/php.ini',
  2272. 'pools': confdir + '/fpm/pool.d',
  2273. 'user': 'root',
  2274. 'group': 'root',
  2275. 'service': 'php' + php_version + '-fpm',
  2276. 'user': 'root',
  2277. 'group': 'root',
  2278. 'defaults': odict([
  2279. ('global', odict([
  2280. ('pid', '/var/run/php' + php_version + '-fpm.pid'),
  2281. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  2282. ])),
  2283. ('include', confdir + '/fpm/pool.d/*.conf'),
  2284. ]),
  2285. },
  2286. 'hhvm': {
  2287. 'conf': '/etc/hhvm/server.ini',
  2288. 'ini': '/etc/hhvm/php.ini',
  2289. 'service': 'hhvm',
  2290. 'defaults': {},
  2291. 'server': odict([
  2292. ('pid', '/var/run/hhvm/pid'),
  2293. ('hhvm.server.port', '9000'),
  2294. ('hhvm.server.type', 'fastcgi'),
  2295. ('hhvm.server.default_document', 'index.php'),
  2296. ('hhvm.log.use_log_file', 'true'),
  2297. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  2298. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  2299. ]),
  2300. 'php': odict([
  2301. ('session.save_handler', 'files'),
  2302. ('session.save_path', '/var/lib/hhvm/sessions'),
  2303. ('session.gc_maxlifetime', '1440'),
  2304. ('hhvm.log.level', 'Warning'),
  2305. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  2306. ('hhvm.log.runtime_error_reporting_level', '8191'),
  2307. ('hhvm.mysql.typed_results', 'false'),
  2308. ]),
  2309. },
  2310. 'cli': {
  2311. 'ini': confdir + '/cli/php.ini',
  2312. },
  2313. 'apache2': {
  2314. 'ini': confdir + '/apache2/php.ini',
  2315. },
  2316. },
  2317. }),
  2318. 'fpm': {
  2319. 'service': {
  2320. 'enabled': True,
  2321. 'opts': {},
  2322. },
  2323. 'config': {
  2324. 'ini': {
  2325. 'opts': {},
  2326. 'settings': {},
  2327. },
  2328. 'conf': {
  2329. 'opts': {},
  2330. 'settings': {},
  2331. },
  2332. },
  2333. 'pools': {},
  2334. },
  2335. 'hhvm': {
  2336. 'service': {
  2337. 'enabled': True,
  2338. 'opts': {},
  2339. },
  2340. 'config': {
  2341. 'server': {
  2342. 'opts': {},
  2343. 'settings': {},
  2344. },
  2345. 'php': {
  2346. 'opts': {},
  2347. 'settings': {},
  2348. },
  2349. },
  2350. },
  2351. 'cli': {
  2352. 'ini': {
  2353. 'opts': {},
  2354. 'settings': {},
  2355. }
  2356. },
  2357. 'apache2': {
  2358. 'ini': {
  2359. 'opts': {},
  2360. 'settings': {},
  2361. }
  2362. },
  2363. 'ini': {
  2364. 'defaults': {
  2365. 'PHP': {
  2366. 'allow_url_fopen': 'On',
  2367. 'allow_url_include': 'Off',
  2368. 'asp_tags': 'Off',
  2369. 'auto_globals_jit': 'On',
  2370. 'default_mimetype': '"text/html"',
  2371. 'default_socket_timeout': 60,
  2372. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  2373. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  2374. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  2375. 'display_errors': 'Off',
  2376. 'display_startup_errors': 'Off',
  2377. 'enable_dl': 'Off',
  2378. 'engine': 'On',
  2379. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  2380. 'expose_php': 'On',
  2381. 'file_uploads': 'On',
  2382. 'html_errors': 'On',
  2383. 'ignore_repeated_errors': 'Off',
  2384. 'ignore_repeated_source': 'Off',
  2385. 'implicit_flush': 'Off',
  2386. 'log_errors': 'On',
  2387. 'log_errors_max_len': 1024,
  2388. 'max_execution_time': 30,
  2389. 'max_file_uploads': 20,
  2390. 'max_input_nesting_level': 64,
  2391. 'max_input_time': 60,
  2392. 'max_input_vars': 1000,
  2393. 'memory_limit': '128M',
  2394. 'output_buffering': 4096,
  2395. 'post_max_size': '8M',
  2396. 'precision': 14,
  2397. 'register_argc_argv': 'Off',
  2398. 'report_memleaks': 'On',
  2399. 'request_order': 'GP',
  2400. 'serialize_precision': 17,
  2401. 'short_open_tag': 'Off',
  2402. 'track_errors': 'Off',
  2403. 'upload_max_filesize': '2M',
  2404. 'variables_order': 'GPCS',
  2405. 'zend.enable_gc': 'On',
  2406. 'zlib.output_compression': 'Off',
  2407. },
  2408. 'CLI Server': {
  2409. 'cli_server.color': 'On'
  2410. },
  2411. 'Date': {
  2412. 'date.timezone': 'America/New_York'
  2413. },
  2414. 'Pdo_mysql': {
  2415. 'pdo_mysql.cache_size': 2000
  2416. },
  2417. 'mail function': {
  2418. 'SMTP': 'localhost',
  2419. 'mail.add_x_header': 'On'
  2420. },
  2421. 'SQL': {
  2422. 'sql.safe_mode': 'Off'
  2423. },
  2424. 'ODBC': {
  2425. 'odbc.allow_persistent': 'On',
  2426. 'odbc.check_persistent': 'On',
  2427. 'odbc.max_persistent': '-1',
  2428. 'odbc.max_links': '-1',
  2429. 'odbc.defaultlrl': 4096,
  2430. 'odbc.defaultbinmode': 1
  2431. },
  2432. 'Interbase': {
  2433. 'ibase.allow_persistent': 1,
  2434. 'ibase.max_persistent': -1,
  2435. 'ibase.max_links': -1,
  2436. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  2437. 'ibase.dateformat': '"%Y-%m-%d"',
  2438. 'ibase.timeformat': '"%H:%M:%S"'
  2439. },
  2440. 'MySQL': {
  2441. 'mysql.allow_local_infile': 'On',
  2442. 'mysql.allow_persistent': 'On',
  2443. 'mysql.cache_size': '2000',
  2444. 'mysql.max_persistent': -1,
  2445. 'mysql.max_links': -1,
  2446. 'mysql.connect_timeout': 60,
  2447. 'mysql.trace_mode': 'Off'
  2448. },
  2449. 'MySQLi': {
  2450. 'mysqli.max_persistent': -1,
  2451. 'mysqli.allow_persistent': 'On',
  2452. 'mysqli.max_links': -1,
  2453. 'mysqli.cache_size': 2000,
  2454. 'mysqli.default_port': 3306,
  2455. 'mysqli.reconnect': 'Off'
  2456. },
  2457. 'mysqlnd': {
  2458. 'mysqlnd.collect_statistics': 'On',
  2459. 'mysqlnd.collect_memory_statistics': 'Off'
  2460. },
  2461. 'PostgreSQL': {
  2462. 'pgsql.allow_persistent': 'On',
  2463. 'pgsql.auto_reset_persistent': 'Off',
  2464. 'pgsql.max_persistent': -1,
  2465. 'pgsql.max_links': -1,
  2466. 'pgsql.ignore_notice': 0,
  2467. 'pgsql.log_notice': 0
  2468. },
  2469. 'Sybase-CT': {
  2470. 'sybct.allow_persistent': 'On',
  2471. 'sybct.max_persistent': -1,
  2472. 'sybct.max_links': -1,
  2473. 'sybct.min_server_severity': 10,
  2474. 'sybct.min_client_severity': 10
  2475. },
  2476. 'bcmath': {
  2477. 'bcmath.scale': 0
  2478. },
  2479. 'Session': {
  2480. 'session.save_handler': 'files',
  2481. 'session.use_strict_mode': 0,
  2482. 'session.use_cookies': 1,
  2483. 'session.use_only_cookies': 1,
  2484. 'session.name': 'PHPSESSID',
  2485. 'session.auto_start': 0,
  2486. 'session.cookie_lifetime': 0,
  2487. 'session.cookie_path': '/',
  2488. 'session.serialize_handler': 'php',
  2489. 'session.gc_probability': 0,
  2490. 'session.gc_divisor': 1000,
  2491. 'session.gc_maxlifetime': 1440,
  2492. 'session.bug_compat_42': 'Off',
  2493. 'session.bug_compat_warn': 'Off',
  2494. 'session.cache_limiter': 'nocache',
  2495. 'session.cache_expire': '180',
  2496. 'session.use_trans_sid': 0,
  2497. 'session.hash_function': 0,
  2498. 'session.hash_bits_per_character': 5,
  2499. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  2500. },
  2501. 'MSSQL': {
  2502. 'mssql.allow_persistent': 'On',
  2503. 'mssql.max_persistent': -1,
  2504. 'mssql.max_links': -1,
  2505. 'mssql.min_error_severity': 10,
  2506. 'mssql.min_message_severity': 10,
  2507. 'mssql.compatibility_mode': 'Off',
  2508. 'mssql.secure_connection': 'Off'
  2509. },
  2510. 'Tidy': {
  2511. 'tidy.clean_output': 'Off'
  2512. },
  2513. 'soap': {
  2514. 'soap.wsdl_cache_enabled': 1,
  2515. 'soap.wsdl_cache_dir': '"/tmp"',
  2516. 'soap.wsdl_cache_ttl': 86400,
  2517. 'soap.wsdl_cache_limit': 5
  2518. },
  2519. 'ldap': {
  2520. 'ldap.max_links': -1
  2521. },
  2522. },
  2523. },
  2524. }, merge=True) %}
  2525. {%- else %}
  2526. {%- set useversion = php_version | replace(".", "-") -%}
  2527. {#- Red Hat Softwarecollection prefix lookup belongs to the Red Hat part
  2528. further down but has to go here due to Jinja parsing rules. -#}
  2529. {%- if salt['pillar.get']('php:use_scl_repo', False) -%}
  2530. {%- set rh_prefix = 'rh-php{}-'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2531. {%- set sclo_prefix = 'sclo-php{}-'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2532. {%- set path_suffix = 'opt/rh/rh-php{}/'.format(salt['pillar.get']('php:scl_php_version', '')) -%}
  2533. {%- else -%}
  2534. {%- set rh_prefix = '' -%}
  2535. {%- set sclo_prefix = '' -%}
  2536. {%- set path_suffix = '' -%}
  2537. {%- endif -%}
  2538. {%- set php = salt['pillar.get']('php', {
  2539. 'lookup': salt['grains.filter_by']({
  2540. 'Debian': {
  2541. 'pkgs': {
  2542. 'adodb': 'php5-adodb',
  2543. 'apache2': 'libapache2-mod-php5',
  2544. 'apc': 'php-apc',
  2545. 'apcu': 'php5-apcu',
  2546. 'bcmath': 'php5',
  2547. 'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev'],
  2548. 'bz2': 'php5-bz2',
  2549. 'cache-lite': 'php-cache-lite',
  2550. 'cgi': 'php5-cgi',
  2551. 'cli': 'php5-cli',
  2552. 'console-table': 'php-console-table',
  2553. 'composer_bin': 'composer',
  2554. 'curl': 'php5-curl',
  2555. 'dba': 'php5-dba',
  2556. 'dev': ['php5-dev','build-essential'],
  2557. 'ext_conf_path': '/etc/php5/mods-available',
  2558. 'fpm': 'php5-fpm',
  2559. 'gd': 'php5-gd',
  2560. 'gearman': 'php5-gearman',
  2561. 'geoip': 'php5-geoip',
  2562. 'geshi': 'php-geshi',
  2563. 'gettext': 'php-gettext',
  2564. 'gmp': 'php5-gmp',
  2565. 'hhvm': 'hhvm',
  2566. 'imagick': 'php5-imagick',
  2567. 'imap': 'php5-imap',
  2568. 'intl': 'php5-intl',
  2569. 'json': 'php5-json',
  2570. 'ldap': 'php5-ldap',
  2571. 'local_bin': '/usr/local/bin',
  2572. 'auth-sasl': 'php-auth-sasl',
  2573. 'mail': 'php-mail',
  2574. 'mbstring': 'php5',
  2575. 'mcrypt': 'php5-mcrypt',
  2576. 'mdb2': 'php-mdb2',
  2577. 'mdb2-driver-mysql': 'php-mdb2-driver-mysql',
  2578. 'mdb2-driver-pgsql': 'php-mdb2-driver-pgsql',
  2579. 'memcache': 'php5-memcache',
  2580. 'memcached': 'php5-memcached',
  2581. 'mysql': 'php5-mysql',
  2582. 'mysqlnd': 'php5-mysqlnd',
  2583. 'net-smtp': 'php-net-smtp',
  2584. 'net4': 'php-net-ipv4',
  2585. 'net6': 'php-net-ipv6',
  2586. 'oauth': 'php5-oauth',
  2587. 'opcache': 'php5',
  2588. 'pear': 'php-pear',
  2589. 'pgsql': 'php5-pgsql',
  2590. 'php': 'php5',
  2591. 'phpenmod_command': 'php5enmod',
  2592. 'pspell': 'php5-pspell',
  2593. 'redis': 'php5-redis',
  2594. 'seclib': 'php-seclib',
  2595. 'snmp': 'php5-snmp',
  2596. 'soap': 'php-soap',
  2597. 'sqlite': 'php5-sqlite',
  2598. 'ssh2': 'php5-ssh2',
  2599. 'suhosin5_ext': 'suhosin.so',
  2600. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2601. 'suhosin7_ext': 'suhosin7.so',
  2602. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2603. 'svn': 'php5-svn',
  2604. 'sybase': 'php5-sybase',
  2605. 'tcpdf': 'php-tcpdf',
  2606. 'temp_dir': '/tmp',
  2607. 'tidy': 'php5-tidy',
  2608. 'uuid': 'php-uuid',
  2609. 'xcache': 'php5-xcache',
  2610. 'xdebug': 'php5-xdebug',
  2611. 'xml': 'php5',
  2612. 'xsl': 'php5-xsl',
  2613. 'zip': 'php5',
  2614. },
  2615. 'fpm': {
  2616. 'conf': '/etc/php5/fpm/php-fpm.conf',
  2617. 'ini': '/etc/php5/fpm/php.ini',
  2618. 'pools': '/etc/php5/fpm/pool.d',
  2619. 'service': 'php5-fpm',
  2620. 'user': 'root',
  2621. 'group': 'root',
  2622. 'defaults': odict([
  2623. ('global', odict([
  2624. ('pid', '/var/run/php5-fpm.pid'),
  2625. ('error_log', '/var/log/php5-fpm.log'),
  2626. ])),
  2627. ('include', '/etc/php5/fpm/pool.d/*.conf'),
  2628. ]),
  2629. },
  2630. 'hhvm': {
  2631. 'conf': '/etc/hhvm/server.ini',
  2632. 'ini': '/etc/hhvm/php.ini',
  2633. 'service': 'hhvm',
  2634. 'defaults': {},
  2635. 'server': odict([
  2636. ('pid', '/var/run/hhvm/pid'),
  2637. ('hhvm.server.port', '9000'),
  2638. ('hhvm.server.type', 'fastcgi'),
  2639. ('hhvm.server.default_document', 'index.php'),
  2640. ('hhvm.log.use_log_file', 'true'),
  2641. ('hhvm.log.file', '/var/log/hhvm/error.log'),
  2642. ('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'),
  2643. ]),
  2644. 'php': odict([
  2645. ('session.save_handler', 'files'),
  2646. ('session.save_path', '/var/lib/hhvm/sessions'),
  2647. ('session.gc_maxlifetime', '1440'),
  2648. ('hhvm.log.level', 'Warning'),
  2649. ('hhvm.log.always_log_unhandled_exceptions', 'true'),
  2650. ('hhvm.log.runtime_error_reporting_level', '8191'),
  2651. ('hhvm.mysql.typed_results', 'false'),
  2652. ]),
  2653. },
  2654. 'cli': {
  2655. 'ini': '/etc/php5/cli/php.ini',
  2656. },
  2657. 'apache2': {
  2658. 'ini': '/etc/php5/apache2/php.ini',
  2659. },
  2660. 'xcache': {
  2661. 'ini': '/etc/php5/mods-available/xcache.ini',
  2662. 'defaults': {},
  2663. },
  2664. },
  2665. 'Gentoo' : {
  2666. 'pkgs': {
  2667. 'apache2': [{'name': 'dev-lang/php','version': ':' + php_version + '[apache2]'}],
  2668. 'apc': [{'name': 'dev-php/pecl-apcu_bc','version': '[php_targets_php' + useversion + ']'}],
  2669. 'apcu': [{'name': 'dev-php/pecl-apcu','version': '[php_targets_php' + useversion + ']'}],
  2670. 'bcmath': [{'name': 'dev-lang/php','version': ':' + php_version + '[bcmath]'}],
  2671. 'bz2': [{'name': 'dev-lang/php','version': ':' + php_version + '[bzip2]'}],
  2672. 'cache-lite': 'dev-php/PEAR-Cache_Lite',
  2673. 'cgi': [{'name': 'dev-lang/php','version': ':' + php_version + '[cgi]'}],
  2674. 'cli': [{'name': 'dev-lang/php','version': ':' + php_version + '[cli]'}],
  2675. 'composer_bin': 'composer',
  2676. 'console-table': 'dev-php/PEAR-Console_Table',
  2677. 'curl': [{'name': 'dev-lang/php','version': ':' + php_version + '[curl]'}],
  2678. 'ext_conf_path': '/etc/php/fpm-php' + php_version + '/ext',
  2679. 'fpm': [{'name': 'dev-lang/php','version': ':' + php_version + '[fpm]'}],
  2680. 'gd': [{'name': 'dev-lang/php','version': ':' + php_version + '[gd]'}],
  2681. 'geoip': [{'name': 'dev-php/pecl-geoip','version': '[php_targets_php' + useversion + ']'}],
  2682. 'gettext': 'dev-php/PEAR-File_Gettext',
  2683. 'gmp': [{'name': 'dev-lang/php','version': ':' + php_version + '[gmp]'}],
  2684. 'imagick': [{'name': 'dev-php/pecl-imagick','version': '[php_targets_php' + useversion + ']'}],
  2685. 'imap': [{'name': 'dev-lang/php','version': ':' + php_version + '[imap]'}],
  2686. 'intl': [{'name': 'dev-lang/php','version': ':' + php_version + '[intl]'}],
  2687. 'json': [{'name': 'dev-lang/php','version': ':' + php_version + '[json]'}],
  2688. 'ldap': [{'name': 'dev-lang/php','version': ':' + php_version + '[ldap]'}],
  2689. 'local_bin': '/usr/local/bin',
  2690. 'auth-sasl': 'dev-php/PEAR-Auth_SASL',
  2691. 'mail': 'dev-php/PHPMailer',
  2692. 'memcache': [{'name': 'dev-php/pecl-memcache','version': '[php_targets_php' + useversion + ']'}],
  2693. 'memcached': [{'name': 'dev-php/pecl-memcached','version': '[php_targets_php' + useversion + ']'}],
  2694. 'mongo': [{'name': 'dev-php/pecl-mongo','version': '[php_targets_php' + useversion + ']'}],
  2695. 'mongodb': [{'name': 'dev-php/pecl-mongodb','version': '[php_targets_php' + useversion + ']'}],
  2696. 'mysqlnd': [{'name': 'dev-lang/php','version': ':' + php_version + '[mysql]'}],
  2697. 'mysql': [{'name': 'dev-lang/php','version': ':' + php_version + '[mysqli]'}],
  2698. 'net-smtp': 'dev-php/PEAR-Net_SMTP',
  2699. 'net4': 'dev-php/PEAR-Net_IPv4',
  2700. 'net6': 'dev-php/PEAR-Net_IPv6',
  2701. 'oauth': [{'name': 'dev-php/pecl-oauth','version': '[php_targets_php' + useversion + ']'}],
  2702. 'opcache': [{'name': 'dev-lang/php','version': ':' + php_version + '[opcache]'}],
  2703. 'pear': 'dev-php/pear',
  2704. 'pgsql': [{'name': 'dev-lang/php','version': ':' + php_version + '[postgres]'}],
  2705. 'php': [{'name': 'dev-lang/php','version': ':' + php_version}],
  2706. 'pspell': [{'name': 'dev-lang/php','version': ':' + php_version + '[spell]'}],
  2707. 'redis': [{'name': 'dev-php/pecl-redis','version': '[php_targets_php' + useversion + ']'}],
  2708. 'snmp': [{'name': 'dev-lang/php','version': ':' + php_version + '[snmp]'}],
  2709. 'soap': [{'name': 'dev-lang/php','version': ':' + php_version + '[soap]'}],
  2710. 'ssh2': [{'name': 'dev-php/pecl-ssh2','version': '[php_targets_php' + useversion + ']'}],
  2711. 'sqlite': [{'name': 'dev-lang/php','version': ':' + php_version + '[sqlite]'}],
  2712. 'sybase': [{'name': 'dev-lang/php','version': ':' + php_version + '[sybase-ct]'}],
  2713. 'tcpdf': 'dev-php/tcpdf',
  2714. 'temp_dir': '/tmp',
  2715. 'tidy': [{'name': 'dev-lang/php','version': ':' + php_version + '[tidy]'}],
  2716. 'xdebug': [{'name': 'dev-lang/php','version': ':' + php_version + '[debug]'}],
  2717. 'xml': [{'name': 'dev-lang/php','version': ':' + php_version + '[xml]'}],
  2718. 'xsl': [{'name': 'dev-lang/php','version': ':' + php_version + '[xslt]'}],
  2719. 'zip': [{'name': 'dev-lang/php','version': ':' + php_version + '[zip]'}],
  2720. },
  2721. 'fpm': {
  2722. 'conf': '/etc/php/fpm-php' + php_version + '/php-fpm.conf',
  2723. 'ini': '/etc/php/fpm-php' + php_version + '/php.ini',
  2724. 'pools': '/etc/php/fpm-php' + php_version + '/fpm.d',
  2725. 'service': 'php-fpm',
  2726. 'user': 'root',
  2727. 'group': 'root',
  2728. 'defaults': odict([
  2729. ('global', odict([
  2730. ('pid', '/var/run/php-fpm-php' + php_version + '.pid'),
  2731. ('error_log', '/var/log/php' + php_version + '-fpm.log'),
  2732. ])),
  2733. ('include', '/etc/php/fpm-php' + php_version + '/fpm.d/*.conf'),
  2734. ]),
  2735. },
  2736. 'cli': {
  2737. 'ini': '/etc/php/cli-php' + php_version + '/php.ini',
  2738. },
  2739. 'apache2': {
  2740. 'ini': '/etc/php/apache2-php' + php_version + '/php.ini',
  2741. },
  2742. },
  2743. 'RedHat': {
  2744. 'pkgs': {
  2745. 'adodb': 'php-adodb',
  2746. 'apc': 'php-pecl-apc',
  2747. 'apcu': rh_prefix + 'php-pecl-apcu',
  2748. 'bcmath': rh_prefix + 'php-bcmath',
  2749. 'build_pkgs': ['openssl-devel', 'gcc'],
  2750. 'cache-lite': 'php-pear-Cache-Lite',
  2751. 'cgi': rh_prefix + 'php-cgi',
  2752. 'cli': rh_prefix + 'php-cli',
  2753. 'composer': 'composer',
  2754. 'composer_bin': 'composer',
  2755. 'console-table': 'php-pear-Console-Table',
  2756. 'curl': [rh_prefix + 'php-common', 'curl'],
  2757. 'dba': [rh_prefix + 'php-dba', 'dba'],
  2758. 'dev': rh_prefix + 'php-devel',
  2759. 'ext_conf_path': '/etc/' + path_suffix + 'php.d',
  2760. 'fpm': rh_prefix + 'php-fpm',
  2761. 'gd': rh_prefix + 'php-gd',
  2762. 'geoip': sclo_prefix + 'php-pecl-geoip',
  2763. 'geshi': 'php-geshi',
  2764. 'gettext': 'php-php-gettext',
  2765. 'http': sclo_prefix + 'php-pecl-http',
  2766. 'imagick': sclo_prefix + 'php-pecl-imagick',
  2767. 'imap': sclo_prefix + 'php-imap',
  2768. 'intl': rh_prefix + 'php-intl',
  2769. 'json': rh_prefix + 'php-common',
  2770. 'ldap': rh_prefix + 'php-ldap',
  2771. 'local_bin': '/usr/local/bin',
  2772. 'auth-sasl': 'php-pear-Auth-SASL',
  2773. 'mail': 'php-pear-Mail',
  2774. 'mbstring': rh_prefix + 'php-mbstring',
  2775. 'mcrypt': sclo_prefix + 'php-mcrypt',
  2776. 'memcache': 'php-pecl-memcache',
  2777. 'memcached': sclo_prefix + 'php-pecl-memcached',
  2778. 'mysql': 'php-mysql',
  2779. 'mysqlnd': rh_prefix + 'php-mysqlnd',
  2780. 'net-smtp': 'php-pear-Net-SMTP',
  2781. 'net4': 'php-pear-Net-IPv4',
  2782. 'oauth': 'php-pecl-oauth',
  2783. 'opcache': rh_prefix + 'php-opcache' if salt['pillar.get']('php:use_scl_repo', False) else 'php-pecl-zendopcache',
  2784. 'pear': rh_prefix + 'php-pear',
  2785. 'pgsql': rh_prefix + 'php-pgsql',
  2786. 'php': rh_prefix + 'php',
  2787. 'pspell': rh_prefix + 'php-pspell',
  2788. 'redis': sclo_prefix + 'php-pecl-redis',
  2789. 'seclib': 'php-phpseclib',
  2790. 'snmp': rh_prefix + 'php-snmp',
  2791. 'soap': rh_prefix + 'php-soap',
  2792. 'sqlite': rh_prefix + 'php-pdo',
  2793. 'ssh2': sclo_prefix + 'php-pecl-ssh2',
  2794. 'suhosin5_ext': 'suhosin.so',
  2795. 'suhosin5_repo': 'https://github.com/sektioneins/suhosin',
  2796. 'suhosin7_ext': 'suhosin7.so',
  2797. 'suhosin7_repo': 'https://github.com/sektioneins/suhosin7',
  2798. 'tcpdf': 'php-tcpdf',
  2799. 'temp_dir': '/tmp',
  2800. 'tidy': sclo_prefix + 'php-tidy',
  2801. 'uuid': sclo_prefix + 'php-pecl-uuid',
  2802. 'xcache': 'php-xcache',
  2803. 'xdebug': sclo_prefix + 'php-pecl-xdebug',
  2804. 'xml': [rh_prefix + 'php-xml', rh_prefix + 'php-xmlrpc'],
  2805. 'xsl': rh_prefix + 'php-xml',
  2806. 'zip': rh_prefix + 'php',
  2807. },
  2808. 'fpm': {
  2809. 'conf': '/etc/' + path_suffix + 'php-fpm.conf',
  2810. 'ini': '/etc/' + path_suffix + 'php.ini',
  2811. 'pools': '/etc/' + path_suffix + 'php-fpm.d',
  2812. 'service': rh_prefix + 'php-fpm',
  2813. 'user': 'root',
  2814. 'group': 'root',
  2815. 'defaults': {
  2816. 'global': {
  2817. 'pid': '/var/' + path_suffix + 'run/php-fpm/php-fpm.pid',
  2818. 'error_log': '/var/' + path_suffix + 'log/php-fpm/error.log',
  2819. },
  2820. 'include': '/etc/' + path_suffix + 'php-fpm.d/*.conf',
  2821. },
  2822. },
  2823. 'cli': {
  2824. 'ini': '/etc/' + path_suffix + 'php.ini',
  2825. },
  2826. 'xcache': {
  2827. 'ini': '/etc/' + path_suffix + 'php.d/xcache.ini',
  2828. },
  2829. },
  2830. 'Suse': {
  2831. 'pkgs': {
  2832. 'adodb': 'php5-dba',
  2833. 'apache2': 'apache2-mod_php5',
  2834. 'cli': 'php5',
  2835. 'curl': 'php5-curl',
  2836. 'fpm': 'php5-fpm',
  2837. 'gd': 'php5-gd',
  2838. 'imap': 'php5-imap',
  2839. 'intl': 'php5-intl',
  2840. 'json': 'php5-json',
  2841. 'ldap': 'php5-ldap',
  2842. 'mbstring': 'php5-mbstring',
  2843. 'mcrypt': 'php5-mcrypt',
  2844. 'mysql': 'php5-mysql',
  2845. 'oauth': 'php5-oauth',
  2846. 'pear': 'php5-pear',
  2847. 'pgsql': 'php5-pgsql',
  2848. 'php': 'php5',
  2849. 'snmp': 'php5-snmp',
  2850. 'soap': 'php5-soap',
  2851. 'sqlite': 'php5-sqlite',
  2852. 'suhosin': 'php5-suhosin',
  2853. 'xml': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
  2854. 'zip': 'php5-zip',
  2855. },
  2856. 'fpm': {
  2857. 'conf': '/etc/php-fpm.conf',
  2858. 'ini': '/etc/php.ini',
  2859. 'pools': '/etc/php-fpm.d',
  2860. 'service': 'php-fpm',
  2861. 'user': 'root',
  2862. 'group': 'root',
  2863. 'defaults': {
  2864. 'global': {
  2865. 'pid': '/var/run/php-fpm/php-fpm.pid',
  2866. 'error_log': '/var/log/php-fpm/error.log',
  2867. },
  2868. 'include': '/etc/php-fpm.d/*.conf',
  2869. },
  2870. },
  2871. 'cli': {
  2872. 'ini': '/etc/php.ini',
  2873. },
  2874. },
  2875. 'Arch': {
  2876. 'pkgs': {
  2877. 'apc': 'php-apcu',
  2878. 'apcu': 'php-apcu-bc',
  2879. 'cgi': 'php-cgi',
  2880. 'cli': 'php',
  2881. 'composer_bin': 'composer',
  2882. 'curl': 'curl',
  2883. 'fpm': 'php-fpm',
  2884. 'gd': 'php-gd',
  2885. 'geoip': 'php-geoip',
  2886. 'imap': 'php-imap',
  2887. 'intl': 'php-intl',
  2888. 'local_bin': '/usr/local/bin',
  2889. 'mcrypt': 'php-mcrypt',
  2890. 'memcache': 'php-memcache',
  2891. 'memcached': 'php-memcached',
  2892. 'pgsql': 'php-pgsql',
  2893. 'php': 'php',
  2894. 'pspell': 'php-pspell',
  2895. 'snmp': 'php-snmp',
  2896. 'sqlite': 'php-sqlite',
  2897. 'temp_dir': '/tmp',
  2898. 'tidy': 'php-tidy',
  2899. 'xcache': 'php-xcache',
  2900. 'xdebug': 'xdebug',
  2901. 'xsl': 'php-xsl',
  2902. },
  2903. 'fpm': {
  2904. 'conf': '/etc/php/php-fpm.conf',
  2905. 'ini': '/etc/php/php.ini',
  2906. 'pools': '/etc/php/fpm.d',
  2907. 'service': 'php-fpm',
  2908. 'user': 'root',
  2909. 'group': 'root',
  2910. 'defaults': {
  2911. 'global': {
  2912. 'pid': '/run/php-fpm/php-fpm.pid',
  2913. 'error_log': 'log/php-fpm.log',
  2914. },
  2915. 'include': '/etc/php/fpm.d/*.conf',
  2916. },
  2917. },
  2918. 'cli': {
  2919. 'ini': '/etc/php/php-cli.ini',
  2920. },
  2921. 'xcache': {
  2922. 'ini': '/etc/php/conf.d/xcache.ini',
  2923. },
  2924. },
  2925. 'FreeBSD': {
  2926. 'apache2': {
  2927. 'ini': '/usr/local/etc/php.ini',
  2928. 'module_config': '/usr/local/etc/apache24/modules.d/050_mod_php.conf',
  2929. 'name': 'apache24',
  2930. },
  2931. 'cli': {
  2932. 'ini': '/usr/local/etc/php.ini'
  2933. },
  2934. 'pkgs': {
  2935. 'apache2': 'mod_php' + freebsd_php_version,
  2936. 'composer_bin': 'composer',
  2937. 'cli': 'php' + freebsd_php_version,
  2938. 'ctype': 'php' + freebsd_php_version + '-ctype',
  2939. 'curl': 'php' + freebsd_php_version + '-curl',
  2940. 'dom': 'php' + freebsd_php_version + '-dom',
  2941. 'filter': 'php' + freebsd_php_version + '-filter',
  2942. 'fileinfo': 'php' + freebsd_php_version + '-fileinfo',
  2943. 'fpm': 'php' + freebsd_php_version,
  2944. 'gd': 'php' + freebsd_php_version + '-gd',
  2945. 'hash': 'php' + freebsd_php_version + '-hash',
  2946. 'iconv': 'php' + freebsd_php_version + '-iconv',
  2947. 'intl': 'php' + freebsd_php_version + '-intl',
  2948. 'json': 'php' + freebsd_php_version + '-json',
  2949. 'local_bin': '/usr/local/bin',
  2950. 'memcached': 'php' + freebsd_php_version + '-pecl-memcached',
  2951. 'mbstring': 'php' + freebsd_php_version + '-mbstring',
  2952. 'mcrypt': 'php' + freebsd_php_version + '-mcrypt',
  2953. 'mysql': 'php' + freebsd_php_version + '-mysqli',
  2954. 'opcache': 'php' + freebsd_php_version + '-opcache',
  2955. 'openssl': 'php' + freebsd_php_version + '-openssl',
  2956. 'pdo': 'php' + freebsd_php_version + '-pdo',
  2957. 'pdo_mysql': 'php' + freebsd_php_version + '-pdo_mysql',
  2958. 'pear': 'php' + freebsd_php_version + '-pear',
  2959. 'php': 'php' + freebsd_php_version,
  2960. 'phar': 'php' + freebsd_php_version + '-phar',
  2961. 'posix': 'php' + freebsd_php_version + '-posix',
  2962. 'session': 'php' + freebsd_php_version + '-session',
  2963. 'simplexml': 'php' + freebsd_php_version + '-simplexml',
  2964. 'snmp': 'php' + freebsd_php_version + '-snmp',
  2965. 'temp_dir': '/tmp',
  2966. 'tokenizer': 'php' + freebsd_php_version + '-tokenizer',
  2967. 'xdebug': 'php' + freebsd_php_version + '-pecl-xdebug',
  2968. 'xml': 'php' + freebsd_php_version + '-xml',
  2969. 'xmlwriter': 'php' + freebsd_php_version + '-xmlwriter',
  2970. 'zip': 'php' + freebsd_php_version + '-zip',
  2971. },
  2972. 'fpm': {
  2973. 'conf': '/usr/local/etc/php-fpm.conf',
  2974. 'ini': '/usr/local/etc/php.ini',
  2975. 'pools': '/usr/local/etc/php-fpm.d',
  2976. 'service': 'php-fpm',
  2977. 'user': 'root',
  2978. 'group': 'wheel',
  2979. 'defaults': {
  2980. 'global': {
  2981. 'pid': 'run/php-fpm.pid',
  2982. 'error_log': 'log/php-fpm.log',
  2983. },
  2984. 'include': '/usr/local/etc/php-fpm.d/*.conf',
  2985. },
  2986. },
  2987. },
  2988. }),
  2989. 'fpm': {
  2990. 'service': {
  2991. 'enabled': True,
  2992. 'opts': {},
  2993. },
  2994. 'config': {
  2995. 'ini': {
  2996. 'opts': {},
  2997. 'settings': {},
  2998. },
  2999. 'conf': {
  3000. 'opts': {},
  3001. 'settings': {},
  3002. },
  3003. },
  3004. 'pools': {
  3005. 'default.conf': {
  3006. 'enabled': False,
  3007. 'opts': {},
  3008. },
  3009. },
  3010. },
  3011. 'hhvm': {
  3012. 'service': {
  3013. 'enabled': True,
  3014. 'opts': {},
  3015. },
  3016. 'config': {
  3017. 'server': {
  3018. 'opts': {},
  3019. 'settings': {},
  3020. },
  3021. 'php': {
  3022. 'opts': {},
  3023. 'settings': {},
  3024. },
  3025. },
  3026. },
  3027. 'cli': {
  3028. 'ini': {
  3029. 'opts': {},
  3030. 'settings': {},
  3031. }
  3032. },
  3033. 'apache2': {
  3034. 'ini': {
  3035. 'opts': {},
  3036. 'settings': {},
  3037. }
  3038. },
  3039. 'xcache': {
  3040. 'ini': {
  3041. 'defaults': {
  3042. 'xcache-common': {
  3043. 'extension': 'xcache.so',
  3044. },
  3045. 'xcache.admin': {
  3046. 'xcache.admin.enable_auth': 'On',
  3047. },
  3048. 'xcache': {
  3049. 'xcache.shm_scheme': '"mmap"',
  3050. 'xcache.size': '60M',
  3051. 'xcache.count': '1',
  3052. 'xcache.slots': '8K',
  3053. 'xcache.ttl': '0',
  3054. 'xcache.gc_interval': '0',
  3055. 'xcache.var_size': '4M',
  3056. 'xcache.var_count': '1',
  3057. 'xcache.var_slots': '8K',
  3058. 'xcache.var_ttl': '0',
  3059. 'xcache.var_maxttl': '0',
  3060. 'xcache.var_gc_interval': '300',
  3061. 'xcache.var_namespace_mode': '0',
  3062. 'xcache.var_namespace': '""',
  3063. 'xcache.readonly_protection': 'Off',
  3064. 'xcache.mmap_path': '"/dev/zero"',
  3065. 'xcache.coredump_directory': '""',
  3066. 'xcache.coredump_type': '0',
  3067. 'xcache.disable_on_crash': 'Off',
  3068. 'xcache.experimental': 'Off',
  3069. 'xcache.cacher': 'On',
  3070. 'xcache.stat': 'On',
  3071. 'xcache.optimizer': 'Off',
  3072. },
  3073. 'xcache.coverager': {
  3074. 'xcache.coverager': 'Off',
  3075. 'xcache.coverager_autostart': 'On',
  3076. 'xcache.coveragedump_directory': '""',
  3077. },
  3078. },
  3079. 'opts': {},
  3080. 'settings': {},
  3081. }
  3082. },
  3083. 'ini': {
  3084. 'defaults': {
  3085. 'PHP': {
  3086. 'engine': 'On',
  3087. 'allow_url_fopen': 'On',
  3088. 'allow_url_include': 'Off',
  3089. 'asp_tags': 'Off',
  3090. 'auto_globals_jit': 'On',
  3091. 'default_mimetype': '"text/html"',
  3092. 'default_socket_timeout': 60,
  3093. 'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',
  3094. 'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
  3095. 'pcntl_sigprocmask','pcntl_sigwaitinfo','pcntl_sigtimedwait','pcntl_exec','pcntl_getpriority','pcntl_setpriority'],
  3096. 'display_errors': 'Off',
  3097. 'display_startup_errors': 'Off',
  3098. 'enable_dl': 'Off',
  3099. 'error_reporting': ['E_ALL', '~E_DEPRECATED', '~E_STRICT'],
  3100. 'expose_php': 'On',
  3101. 'file_uploads': 'On',
  3102. 'html_errors': 'On',
  3103. 'ignore_repeated_errors': 'Off',
  3104. 'ignore_repeated_source': 'Off',
  3105. 'implicit_flush': 'Off',
  3106. 'log_errors': 'On',
  3107. 'log_errors_max_len': 1024,
  3108. 'max_execution_time': 30,
  3109. 'max_file_uploads': 20,
  3110. 'max_input_nesting_level': 64,
  3111. 'max_input_time': 60,
  3112. 'max_input_vars': 1000,
  3113. 'memory_limit': '128M',
  3114. 'output_buffering': 4096,
  3115. 'post_max_size': '8M',
  3116. 'precision': 14,
  3117. 'register_argc_argv': 'Off',
  3118. 'report_memleaks': 'On',
  3119. 'request_order': 'GP',
  3120. 'serialize_precision': 17,
  3121. 'short_open_tag': 'Off',
  3122. 'track_errors': 'Off',
  3123. 'upload_max_filesize': '2M',
  3124. 'variables_order': 'GPCS',
  3125. 'zend.enable_gc': 'On',
  3126. 'zlib.output_compression': 'Off',
  3127. },
  3128. 'CLI Server': {
  3129. 'cli_server.color': 'On'
  3130. },
  3131. 'Date': {
  3132. 'date.timezone': 'America/New_York'
  3133. },
  3134. 'Pdo_mysql': {
  3135. 'pdo_mysql.cache_size': 2000
  3136. },
  3137. 'mail function': {
  3138. 'SMTP': 'localhost',
  3139. 'mail.add_x_header': 'On'
  3140. },
  3141. 'SQL': {
  3142. 'sql.safe_mode': 'Off'
  3143. },
  3144. 'ODBC': {
  3145. 'odbc.allow_persistent': 'On',
  3146. 'odbc.check_persistent': 'On',
  3147. 'odbc.max_persistent': '-1',
  3148. 'odbc.max_links': '-1',
  3149. 'odbc.defaultlrl': 4096,
  3150. 'odbc.defaultbinmode': 1
  3151. },
  3152. 'Interbase': {
  3153. 'ibase.allow_persistent': 1,
  3154. 'ibase.max_persistent': -1,
  3155. 'ibase.max_links': -1,
  3156. 'ibase.timestampformat': '"%Y-%m-%d %H:%M:%S"',
  3157. 'ibase.dateformat': '"%Y-%m-%d"',
  3158. 'ibase.timeformat': '"%H:%M:%S"'
  3159. },
  3160. 'MySQL': {
  3161. 'mysql.allow_local_infile': 'On',
  3162. 'mysql.allow_persistent': 'On',
  3163. 'mysql.cache_size': '2000',
  3164. 'mysql.max_persistent': -1,
  3165. 'mysql.max_links': -1,
  3166. 'mysql.connect_timeout': 60,
  3167. 'mysql.trace_mode': 'Off'
  3168. },
  3169. 'MySQLi': {
  3170. 'mysqli.max_persistent': -1,
  3171. 'mysqli.allow_persistent': 'On',
  3172. 'mysqli.max_links': -1,
  3173. 'mysqli.cache_size': 2000,
  3174. 'mysqli.default_port': 3306,
  3175. 'mysqli.reconnect': 'Off'
  3176. },
  3177. 'mysqlnd': {
  3178. 'mysqlnd.collect_statistics': 'On',
  3179. 'mysqlnd.collect_memory_statistics': 'Off'
  3180. },
  3181. 'PostgreSQL': {
  3182. 'pgsql.allow_persistent': 'On',
  3183. 'pgsql.auto_reset_persistent': 'Off',
  3184. 'pgsql.max_persistent': -1,
  3185. 'pgsql.max_links': -1,
  3186. 'pgsql.ignore_notice': 0,
  3187. 'pgsql.log_notice': 0
  3188. },
  3189. 'Sybase-CT': {
  3190. 'sybct.allow_persistent': 'On',
  3191. 'sybct.max_persistent': -1,
  3192. 'sybct.max_links': -1,
  3193. 'sybct.min_server_severity': 10,
  3194. 'sybct.min_client_severity': 10
  3195. },
  3196. 'bcmath': {
  3197. 'bcmath.scale': 0
  3198. },
  3199. 'Session': {
  3200. 'session.save_handler': 'files',
  3201. 'session.use_strict_mode': 0,
  3202. 'session.use_cookies': 1,
  3203. 'session.use_only_cookies': 1,
  3204. 'session.name': 'PHPSESSID',
  3205. 'session.auto_start': 0,
  3206. 'session.cookie_lifetime': 0,
  3207. 'session.cookie_path': '/',
  3208. 'session.serialize_handler': 'php',
  3209. 'session.gc_probability': 0,
  3210. 'session.gc_divisor': 1000,
  3211. 'session.gc_maxlifetime': 1440,
  3212. 'session.bug_compat_42': 'Off',
  3213. 'session.bug_compat_warn': 'Off',
  3214. 'session.cache_limiter': 'nocache',
  3215. 'session.cache_expire': '180',
  3216. 'session.use_trans_sid': 0,
  3217. 'session.hash_function': 0,
  3218. 'session.hash_bits_per_character': 5,
  3219. 'url_rewriter.tags': '"a=href,area=href,frame=src,input=src,form=fakeentry"'
  3220. },
  3221. 'MSSQL': {
  3222. 'mssql.allow_persistent': 'On',
  3223. 'mssql.max_persistent': -1,
  3224. 'mssql.max_links': -1,
  3225. 'mssql.min_error_severity': 10,
  3226. 'mssql.min_message_severity': 10,
  3227. 'mssql.compatibility_mode': 'Off',
  3228. 'mssql.secure_connection': 'Off'
  3229. },
  3230. 'Tidy': {
  3231. 'tidy.clean_output': 'Off'
  3232. },
  3233. 'soap': {
  3234. 'soap.wsdl_cache_enabled': 1,
  3235. 'soap.wsdl_cache_dir': '"/tmp"',
  3236. 'soap.wsdl_cache_ttl': 86400,
  3237. 'soap.wsdl_cache_limit': 5
  3238. },
  3239. 'ldap': {
  3240. 'ldap.max_links': -1
  3241. },
  3242. },
  3243. },
  3244. }, merge=True) %}
  3245. {%- endif %}