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.

map.jinja 157KB

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