Formula to set up and configure php
WARNING: BREAKING CHANGES IN UPCOMING v1.0.0 |
---|
This formula currently provides two methods for managing PHP; the old method
under If you are not in a position to migrate, you will need to pin your repo to the final release tag before v1.0.0, which is expected to be v0.38.1. If you are currently using To migrate from the old |
Table of Contents
- General notes
- Contributing to this repo
- Available states
php
php.adodb
php.apc
php.apcu
php.bcmath
php.cgi
php.cli
php.composer
php.curl
php.dev
php.fileinfo
php.fpm
php.gd
php.imagick
php.imap
php.intl
php.json
php.ldap
php.mail
php.mbstring
php.mcrypt
php.memcache
php.memcached
php.mongo
php.mysql
php.mysqlnd
php.oauth
php.pear
php.pgsql
php.readline
php.redis
php.soap
php.sqlite
php.suhosin
php.sybase
php.tokenizer
php.xml
php.zip
- Next-generation, alternate approach
php.ng
php.ng.adodb
php.ng.apache2
php.ng.apache2.ini
php.ng.apache2.install
php.ng.apc
php.ng.apcu
php.ng.auth-sasl
php.ng.bcmath
php.ng.bz2
php.ng.cache-lite
php.ng.cgi
php.ng.cli
php.ng.cli.ini
php.ng.cli.install
php.ng.composer
php.ng.console-table
php.ng.ctype
php.ng.curl
php.ng.dba
php.ng.dev
php.ng.filter
php.ng.fpm
php.ng.fpm.config
php.ng.fpm.install
php.ng.fpm.pools
php.ng.fpm.pools_config
php.ng.fpm.service
php.ng.gd
php.ng.gearman
php.ng.geoip
php.ng.geshi
php.ng.gettext
php.ng.gmp
php.ng.hash
php.ng.http
php.ng.hhvm
php.ng.hhvm.config
php.ng.hhvm.install
php.ng.hhvm.service
php.ng.igbinary
php.ng.imagick
php.ng.imap
php.ng.intl
php.ng.json
php.ng.ldap
php.ng.mail
php.ng.mbstring
php.ng.mcrypt
php.ng.mdb2
php.ng.mdb2-driver-mysql
php.ng.mdb2-driver-pgsql
php.ng.memcache
php.ng.memcached
php.ng.modules
php.ng.mongo
php.ng.mongodb
php.ng.msgpack
php.ng.mysql
php.ng.mysqlnd
php.ng.net-smtp
php.ng.net4
php.ng.oauth
php.ng.opcache
php.ng.openssl
php.ng.pear
php.ng.pgsql
php.ng.phar
php.ng.posix
php.ng.pspell
php.ng.readline
php.ng.redis
php.ng.seclib
php.ng.session
php.ng.snmp
php.ng.soap
php.ng.sqlite
php.ng.ssh2
php.ng.suhosin
php.ng.svn
php.ng.sybase
php.ng.tcpdf
php.ng.tidy
php.ng.uuid
php.ng.xcache
php.ng.xcache.ini
php.ng.xcache.install
php.ng.xdebug
php.ng.xml
php.ng.xsl
php.ng.zip
- Testing
See the full SaltStack Formulas installation and usage instructions.
If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.
If you want to use this formula, please pay attention to the FORMULA
file and/or git tag
,
which contains the currently released version. This formula is versioned according to Semantic Versioning.
See Formula Versioning Section for more details.
Commit message formatting is significant!!
Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
php
php.adodb
php.apc
php.apcu
php.bcmath
php.cgi
php.cli
php.composer
php.curl
php.dev
php.fileinfo
php.fpm
php.gd
php.imagick
php.imap
php.intl
php.json
php.ldap
php.mail
php.mbstring
php.mcrypt
php.memcache
php.memcached
php.mongo
php.mysql
php.mysqlnd
php.oauth
php.pear
php.pgsql
php.readline
php.redis
php.soap
php.sqlite
php.suhosin
php.sybase
php.tokenizer
php.xml
php.zip
Installs the php package.
Installs the php-adodb package.
Installs the php-apc package. Disabled by default on opensuse need server:php repo
Installs the php-apcu package. Disabled by default on opensuse need server:php repo
Installs the php-bcmath package.
Installs the php-cgi package. Disabled on opensuse not available, only fastcgi
Installs the php-cli package.
Installs [composer](https://getcomposer.org) and keeps it updated.
Installs the php5-curl package on Debian, and ensures that curl itself is installed for RedHat systems, this is due to the curl libs being provided by php-common, which will get installed with the main php package.
Installs the php-dev package.
Installs the php-fileinfo package and enables it.
Installs the php-fpm package, starts the service, and enables it.
Installs the php-gd package.
Installs the php-imagick package. Disabled on opensuse not available.
Installs the php-imap package.
Installs the php-intl package.
Installs the php-json package.
Installs the php-ldap package.
Installs the php-mail package.
Installs the php-mbstring package.
Installs the php-mcrypt package.
Installs the php-memcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo
Installs the php-mongo package. Disabled on opensuse need server:php:extensions repo
Installs the php-mysql package.
Installs the php-mysqlnd package. Disabled on opensuse no package.
Installs the php-oauth package.
Installs the php-pear package.
Installs the php-pgsql package.
Installs the php-readline package.
Installs the php-redis package. Disabled on opensuse need server:php:extensions repo
Installs the php-soap package.
Installs the php-sqlite package,
Installs the php-suhosin package.
Installs the php-sybase package for Sybase/MS-SQL. Debian / Ubuntu as RedHat has no similar package.
Installs the php-tokenizer package and enables it.
Installs the php-xml package.
Installs the php-zip package.
The following states provide an alternate approach to managing PHP and FPM
pools, as well as code organization. Please provide feedback by filing issues,
discussing in #salt
in Freenode and the mailing list as normal.
Note: php.ng states require the merge parameter of salt.modules.pillar.get(), first available in the Helium release.
php.ng
php.ng.adodb
php.ng.apache2
php.ng.apache2.ini
php.ng.apache2.install
php.ng.apc
php.ng.apcu
php.ng.auth-sasl
php.ng.bcmath
php.ng.bz2
php.ng.cache-lite
php.ng.cgi
php.ng.cli
php.ng.cli.ini
php.ng.cli.install
php.ng.composer
php.ng.console-table
php.ng.ctype
php.ng.curl
php.ng.dba
php.ng.dev
php.ng.filter
php.ng.fpm
php.ng.fpm.config
php.ng.fpm.install
php.ng.fpm.pools
php.ng.fpm.pools_config
php.ng.fpm.service
php.ng.gd
php.ng.gearman
php.ng.geoip
php.ng.geshi
php.ng.gettext
php.ng.gmp
php.ng.hash
php.ng.http
php.ng.hhvm
php.ng.hhvm.config
php.ng.hhvm.install
php.ng.hhvm.service
php.ng.igbinary
php.ng.imagick
php.ng.imap
php.ng.intl
php.ng.json
php.ng.ldap
php.ng.mail
php.ng.mbstring
php.ng.mcrypt
php.ng.mdb2
php.ng.mdb2-driver-mysql
php.ng.mdb2-driver-pgsql
php.ng.memcache
php.ng.memcached
php.ng.modules
php.ng.mongo
php.ng.mongodb
php.ng.msgpack
php.ng.mysql
php.ng.mysqlnd
php.ng.net-smtp
php.ng.net4
php.ng.oauth
php.ng.opcache
php.ng.openssl
php.ng.pear
php.ng.pgsql
php.ng.phar
php.ng.posix
php.ng.pspell
php.ng.readline
php.ng.redis
php.ng.seclib
php.ng.session
php.ng.snmp
php.ng.soap
php.ng.sqlite
php.ng.ssh2
php.ng.suhosin
php.ng.svn
php.ng.sybase
php.ng.tcpdf
php.ng.tidy
php.ng.uuid
php.ng.xcache
php.ng.xcache.ini
php.ng.xcache.install
php.ng.xdebug
php.ng.xml
php.ng.xsl
php.ng.zip
Installs the php package.
Installs the php-adodb package.
Meta-state that combines php.ng.apache2.install and php.ng.apache2.ini.
Manages the apache2 php.ini file
Installs the apache2 and libapache2-mod-php5 package. Debian Only.
Installs the php-apc package. Disabled on opensuse need server:php repo
Installs the php-apcu package. Disabled on opensuse need server:php repo
Installs the php-auth-sasl package.
Installs the php-bcmath package.
Installs the php-bz2 package.
Installs the php-cache-lite package.
Installs the php-cgi package. Disabled on opensuse only php5-fastcgi available.
Meta-state that combines php.ng.cli.install and php.ng.cli.ini.
Manages the php-cli ini file.
Installs the php-cli package.
Installs [composer](https://getcomposer.org) and keeps it updated.
Installs the php-console-table package.
Installs the php-ctype package.
Installs the php5-curl package on Debian, and ensures that curl itself is installed for RedHat systems, this is due to the curl libs being provided by php-common, which will get installed with the main php package.
Installs the php-dba package.
Installs the php5-dev and build-essential package.
Installs the php-filter package.
Meta-state that combines all php.ng.fpm states.
Manages the (non-pool) php-fpm config files.
Installs the php-fpm package.
Meta-state that combines php.ng.fpm.service and php.ng.fpm.pools_config
Manages php-fpm pool config files.
Manages the php-fpm service.
Installs the php-gd package.
Installs the php-gearman package.
Installs the php-geoip package.
Installs the php-geshi package.
Installs the php-gettext package.
Installs the php-gmp package. Debian Only.
Installs the php-hash package.
Installs the php-http package.
Meta-state that combines php.ng.hhvm states
Manages the php-hhvm config files
Installs the php-hhvm package
php.ng.hhvm.repo
^^^^^^^^^.REPO^^^^^^
Configures the hhvm repo for debian/ubuntu
Manages the php-hhvm service.
Installs the php-igbinary package.
Installs the php-imagick package. Disabled on opensuse no package.
Installs the php-imap package.
Installs the php-intl package.
Installs the php-json package.
Installs the php-ldap package.
Installs the php-mail package.
Installs the php-mbstring package.
Installs the php-mcrypt package.
Installs the php-mdb2 package.
Installs the php-mdb2-driver-mysql package.
Installs the php-mdb2-driver-pgsql package.
Installs the php-memcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo
Calls php.ng.<name>
for each entry in php:ng:modules
if available, or
try to install the matching packages that can be set via from
php:ng:lookup:pkgs
Installs the php-mongo package.
Installs the php-mongodb package.
Installs the php-msgpack package.
Installs the php-mysql package.
Installs the php-mysqlnd package. Disabled on opensuse no package.
Installs the php-net-smtp package.
Installs the php-net4 package.
php.ng.net6
^^^^^^^^^^^NET6
Installs the php-net6 package.
Installs the php-oauth package.
Installs the php-opcache package.
Installs the php-openssl package.
Installs the php-pear package.
Installs the php-pgsql package.
Installs the php-phar package.
Installs the php-posix package.
Installs the php-pspell package.
Installs the php-readline package.
Installs the php-redis package. Disabled on opensuse need server:php:extensions repo
Installs the php-seclib package.
Installs the php-session package.
Installs the php-snmp package.
Installs the php-soap package.
Installs the php-sqlite package,
Installs the php-ssh2 package,
Installs the php-suhosin package.
Installs the php-svn package.
Installs the php-sybase package.
Installs the php-tcpdf package.
Installs the php-tidy package.
Installs the php-uuid package.
Meta-state that combines php.ng.xcache.install and php.ng.xcache.ini.
Manages the php-xcache ini file
Installs the php-xcache package. Disabled on opensuse need server:php:extensions repo
Installs the php-xdebug package.
Installs the php-xml package.
Installs the php-xsl package.
Installs the php-zip package.
Linux testing is done with kitchen-salt
.
- Ruby
- Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]
Where [platform]
is the platform name defined in kitchen.yml
,
e.g. debian-9-2019-2-py3
.
Creates the docker instance and runs the template
main state, ready for testing.
Runs the inspec
tests on the actual instance.
Removes the docker instance.
Runs all of the stages above in one go: i.e. destroy
+ converge
+ verify
+ destroy
.
Gives you SSH access to the instance for manual testing.