Saltstack Official PHP Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 11 Jahren
vor 11 Jahren
vor 11 Jahren
vor 11 Jahren
vor 11 Jahren
vor 11 Jahren
vor 9 Jahren
vor 5 Jahren
vor 5 Jahren
vor 10 Jahren
vor 10 Jahren
vor 10 Jahren
vor 10 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. .. _readme:
  2. php-formula
  3. ===========
  4. |img_travis| |img_sr|
  5. .. |img_travis| image:: https://travis-ci.com/saltstack-formulas/php-formula.svg?branch=master
  6. :alt: Travis CI Build Status
  7. :scale: 100%
  8. :target: https://travis-ci.com/saltstack-formulas/php-formula
  9. .. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
  10. :alt: Semantic Release
  11. :scale: 100%
  12. :target: https://github.com/semantic-release/semantic-release
  13. Formula to set up and configure php
  14. .. list-table::
  15. :name: banner-breaking-changes-v1.0.0
  16. :header-rows: 1
  17. :widths: 1
  18. * - WARNING: BREAKING CHANGES SINCE ``v1.0.0``
  19. * - Prior to
  20. `v1.0.0 <https://github.com/saltstack-formulas/php-formula/releases/tag/v1.0.0>`_,
  21. this formula provided two methods for managing PHP;
  22. the old method under ``php`` and the new method under ``php.ng``.
  23. The old method has now been removed and ``php.ng`` has been promoted to
  24. be ``php`` in its place.
  25. If you are not in a position to migrate, please pin your repo to the final
  26. release tag before
  27. `v1.0.0 <https://github.com/saltstack-formulas/php-formula/releases/tag/v1.0.0>`_,
  28. i.e.
  29. `v0.41.0 <https://github.com/saltstack-formulas/php-formula/releases/tag/v0.41.0>`_.
  30. To migrate from ``php.ng``, simply modify your pillar to promote the
  31. entire section under ``php:ng`` so that it is under ``php`` instead.
  32. So with the editor of your choice, highlight the entire section and then
  33. unindent one level. Finish by removing the ``ng:`` line.
  34. To migrate from the old ``php``, first convert to ``php.ng`` under
  35. `v0.41.0 <https://github.com/saltstack-formulas/php-formula/releases/tag/v0.41.0>`_.
  36. and then follow the steps laid out in the paragraph directly above.
  37. .. contents:: **Table of Contents**
  38. General notes
  39. -------------
  40. See the full `SaltStack Formulas installation and usage instructions
  41. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  42. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  43. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  44. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  45. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  46. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  47. Contributing to this repo
  48. -------------------------
  49. **Commit message formatting is significant!!**
  50. Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
  51. Available states
  52. ----------------
  53. .. contents::
  54. :local:
  55. Please provide feedback by filing issues,
  56. discussing in ``#salt`` in Freenode and the mailing list as normal.
  57. **Note:** php states require the merge parameter of salt.modules.pillar.get(),
  58. first available in the Helium release.
  59. .. contents::
  60. :local:
  61. ``php``
  62. ^^^^^^^^^^
  63. Installs the php package.
  64. ``php.adodb``
  65. ^^^^^^^^^^^^^^^^
  66. Installs the php-adodb package.
  67. ``php.apache2``
  68. ^^^^^^^^^^^^^^^^^^
  69. Meta-state that combines `php.apache2.install`_ and `php.apache2.ini`_.
  70. ``php.apache2.ini``
  71. ^^^^^^^^^^^^^^^^^^^^^^
  72. Manages the apache2 php.ini file
  73. ``php.apache2.install``
  74. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  75. Installs the apache2 and libapache2-mod-php5 package. Debian Only.
  76. ``php.apc``
  77. ^^^^^^^^^^^^^^
  78. Installs the php-apc package.
  79. Disabled on opensuse need server:php repo
  80. ``php.apcu``
  81. ^^^^^^^^^^^^^^^
  82. Installs the php-apcu package.
  83. Disabled on opensuse need server:php repo
  84. ``php.auth-sasl``
  85. ^^^^^^^^^^^^^^^^^^^^
  86. Installs the php-auth-sasl package.
  87. ``php.bcmath``
  88. ^^^^^^^^^^^^^^^^^
  89. Installs the php-bcmath package.
  90. ``php.bz2``
  91. ^^^^^^^^^^^^^^
  92. Installs the php-bz2 package.
  93. ``php.cache-lite``
  94. ^^^^^^^^^^^^^^^^^^^^^
  95. Installs the php-cache-lite package.
  96. ``php.cgi``
  97. ^^^^^^^^^^^^^^
  98. Installs the php-cgi package.
  99. Disabled on opensuse only php5-fastcgi available.
  100. ``php.cli``
  101. ^^^^^^^^^^^^^^
  102. Meta-state that combines `php.cli.install`_ and `php.cli.ini`_.
  103. ``php.cli.ini``
  104. ^^^^^^^^^^^^^^^^^^
  105. Manages the php-cli ini file.
  106. ``php.cli.install``
  107. ^^^^^^^^^^^^^^^^^^^^^^
  108. Installs the php-cli package.
  109. ``php.composer``
  110. ^^^^^^^^^^^^^^^^^^^
  111. Installs [composer](https://getcomposer.org) and keeps it updated.
  112. ``php.console-table``
  113. ^^^^^^^^^^^^^^^^^^^^^^^^
  114. Installs the php-console-table package.
  115. ``php.ctype``
  116. ^^^^^^^^^^^^^^^^
  117. Installs the php-ctype package.
  118. ``php.curl``
  119. ^^^^^^^^^^^^^^^
  120. Installs the php5-curl package on Debian, and ensures that curl itself is
  121. installed for RedHat systems, this is due to the curl libs being provided by
  122. php-common, which will get installed with the main php package.
  123. ``php.dba``
  124. ^^^^^^^^^^^^^^
  125. Installs the php-dba package.
  126. ``php.dev``
  127. ^^^^^^^^^^^^^^
  128. Installs the php5-dev and build-essential package.
  129. ``php.filter``
  130. ^^^^^^^^^^^^^^^^^
  131. Installs the php-filter package.
  132. ``php.fpm``
  133. ^^^^^^^^^^^^^^
  134. Meta-state that combines all php.fpm states.
  135. ``php.fpm.config``
  136. ^^^^^^^^^^^^^^^^^^^^^
  137. Manages the (non-pool) php-fpm config files.
  138. ``php.fpm.install``
  139. ^^^^^^^^^^^^^^^^^^^^^^
  140. Installs the php-fpm package.
  141. ``php.fpm.pools``
  142. ^^^^^^^^^^^^^^^^^^^^
  143. Meta-state that combines `php.fpm.service`_ and `php.fpm.pools_config`_
  144. ``php.fpm.pools_config``
  145. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  146. Manages php-fpm pool config files.
  147. ``php.fpm.service``
  148. ^^^^^^^^^^^^^^^^^^^^^^
  149. Manages the php-fpm service.
  150. ``php.gd``
  151. ^^^^^^^^^^^^^
  152. Installs the php-gd package.
  153. ``php.gearman``
  154. ^^^^^^^^^^^^^^^^^^
  155. Installs the php-gearman package.
  156. ``php.geoip``
  157. ^^^^^^^^^^^^^^^^
  158. Installs the php-geoip package.
  159. ``php.geshi``
  160. ^^^^^^^^^^^^^^^^
  161. Installs the php-geshi package.
  162. ``php.gettext``
  163. ^^^^^^^^^^^^^^^^^^
  164. Installs the php-gettext package.
  165. ``php.gmp``
  166. ^^^^^^^^^^^^^^
  167. Installs the php-gmp package. Debian Only.
  168. ``php.hash``
  169. ^^^^^^^^^^^^^^^
  170. Installs the php-hash package.
  171. ``php.http``
  172. ^^^^^^^^^^^^^^^
  173. Installs the php-http package.
  174. ``php.hhvm``
  175. ^^^^^^^^^^^^^^^
  176. Meta-state that combines php.hhvm states
  177. ``php.hhvm.config``
  178. ^^^^^^^^^^^^^^^^^^^^^^
  179. Manages the php-hhvm config files
  180. ``php.hhvm.install``
  181. ^^^^^^^^^^^^^^^^^^^^^^^
  182. Installs the php-hhvm package
  183. ``php.hhvm.repo``
  184. ^^^^^^^^^.REPO^^^^^^
  185. Configures the hhvm repo for debian/ubuntu
  186. ``php.hhvm.service``
  187. ^^^^^^^^^^^^^^^^^^^^^^^
  188. Manages the php-hhvm service.
  189. ``php.igbinary``
  190. ^^^^^^^^^^^^^^^^^^^
  191. Installs the php-igbinary package.
  192. ``php.imagick``
  193. ^^^^^^^^^^^^^^^^^^
  194. Installs the php-imagick package.
  195. Disabled on opensuse no package.
  196. ``php.imap``
  197. ^^^^^^^^^^^^^^^
  198. Installs the php-imap package.
  199. ``php.intl``
  200. ^^^^^^^^^^^^^^^
  201. Installs the php-intl package.
  202. ``php.json``
  203. ^^^^^^^^^^^^^^^
  204. Installs the php-json package.
  205. ``php.ldap``
  206. ^^^^^^^^^^^^^^^
  207. Installs the php-ldap package.
  208. ``php.mail``
  209. ^^^^^^^^^^^^^^^
  210. Installs the php-mail package.
  211. ``php.mbstring``
  212. ^^^^^^^^^^^^^^^^^^^
  213. Installs the php-mbstring package.
  214. ``php.mcrypt``
  215. ^^^^^^^^^^^^^^^^^
  216. Installs the php-mcrypt package.
  217. ``php.mdb2``
  218. ^^^^^^^^^^^^^^^
  219. Installs the php-mdb2 package.
  220. ``php.mdb2-driver-mysql``
  221. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  222. Installs the php-mdb2-driver-mysql package.
  223. ``php.mdb2-driver-pgsql``
  224. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  225. Installs the php-mdb2-driver-pgsql package.
  226. ``php.memcache``
  227. ^^^^^^^^^^^^^^^^^^^
  228. Installs the php-memcache package.
  229. Disabled on opensuse need server:php:extensions repo
  230. ``php.memcached``
  231. ^^^^^^^^^^^^^^^^^^^^
  232. Installs the php-memcached package.
  233. Disabled on opensuse need server:php:extensions repo
  234. ``php.modules``
  235. ^^^^^^^^^^^^^^^^^^
  236. Calls ``php.<name>`` for each entry in ``php:modules`` if available, or
  237. try to install the matching packages that can be set via from
  238. ``php:lookup:pkgs``
  239. ``php.mongo``
  240. ^^^^^^^^^^^^^^^^
  241. Installs the php-mongo package.
  242. ``php.mongodb``
  243. ^^^^^^^^^^^^^^^^^^
  244. Installs the php-mongodb package.
  245. ``php.msgpack``
  246. ^^^^^^^^^^^^^^^^^^
  247. Installs the php-msgpack package.
  248. ``php.mysql``
  249. ^^^^^^^^^^^^^^^^
  250. Installs the php-mysql package.
  251. ``php.mysqlnd``
  252. ^^^^^^^^^^^^^^^^^^
  253. Installs the php-mysqlnd package.
  254. Disabled on opensuse no package.
  255. ``php.net-smtp``
  256. ^^^^^^^^^^^^^^^^^^^
  257. Installs the php-net-smtp package.
  258. ``php.net4``
  259. ^^^^^^^^^^^^^^^
  260. Installs the php-net4 package.
  261. ``php.net6``
  262. ^^^^^^^^^^^NET6
  263. Installs the php-net6 package.
  264. ``php.oauth``
  265. ^^^^^^^^^^^^^^^^
  266. Installs the php-oauth package.
  267. ``php.opcache``
  268. ^^^^^^^^^^^^^^^^^^
  269. Installs the php-opcache package.
  270. ``php.openssl``
  271. ^^^^^^^^^^^^^^^^^^
  272. Installs the php-openssl package.
  273. ``php.pear``
  274. ^^^^^^^^^^^^^^^
  275. Installs the php-pear package.
  276. ``php.pgsql``
  277. ^^^^^^^^^^^^^^^^
  278. Installs the php-pgsql package.
  279. ``php.phar``
  280. ^^^^^^^^^^^^^^^
  281. Installs the php-phar package.
  282. ``php.posix``
  283. ^^^^^^^^^^^^^^^^
  284. Installs the php-posix package.
  285. ``php.pspell``
  286. ^^^^^^^^^^^^^^^^^
  287. Installs the php-pspell package.
  288. ``php.readline``
  289. ^^^^^^^^^^^^^^^^^^^
  290. Installs the php-readline package.
  291. ``php.redis``
  292. ^^^^^^^^^^^^^^^^
  293. Installs the php-redis package.
  294. Disabled on opensuse need server:php:extensions repo
  295. ``php.seclib``
  296. ^^^^^^^^^^^^^^^^^
  297. Installs the php-seclib package.
  298. ``php.session``
  299. ^^^^^^^^^^^^^^^^^^
  300. Installs the php-session package.
  301. ``php.snmp``
  302. ^^^^^^^^^^^^^^^
  303. Installs the php-snmp package.
  304. ``php.soap``
  305. ^^^^^^^^^^^^^^^
  306. Installs the php-soap package.
  307. ``php.sqlite``
  308. ^^^^^^^^^^^^^^^^^
  309. Installs the php-sqlite package,
  310. ``php.ssh2``
  311. ^^^^^^^^^^^^^^^
  312. Installs the php-ssh2 package,
  313. ``php.suhosin``
  314. ^^^^^^^^^^^^^^^^^^
  315. Installs the php-suhosin package.
  316. ``php.svn``
  317. ^^^^^^^^^^^^^^
  318. Installs the php-svn package.
  319. ``php.sybase``
  320. ^^^^^^^^^^^^^^^^^
  321. Installs the php-sybase package.
  322. ``php.tcpdf``
  323. ^^^^^^^^^^^^^^^^
  324. Installs the php-tcpdf package.
  325. ``php.tidy``
  326. ^^^^^^^^^^^^^^^
  327. Installs the php-tidy package.
  328. ``php.uuid``
  329. ^^^^^^^^^^^^^^^
  330. Installs the php-uuid package.
  331. ``php.xcache``
  332. ^^^^^^^^^^^^^^^^^
  333. Meta-state that combines `php.xcache.install`_ and `php.xcache.ini`_.
  334. ``php.xcache.ini``
  335. ^^^^^^^^^^^^^^^^^^^^^
  336. Manages the php-xcache ini file
  337. ``php.xcache.install``
  338. ^^^^^^^^^^^^^^^^^^^^^^^^^
  339. Installs the php-xcache package.
  340. Disabled on opensuse need server:php:extensions repo
  341. ``php.xdebug``
  342. ^^^^^^^^^^^^^^^^^
  343. Installs the php-xdebug package.
  344. ``php.xml``
  345. ^^^^^^^^^^^^^^
  346. Installs the php-xml package.
  347. ``php.xsl``
  348. ^^^^^^^^^^^^^^
  349. Installs the php-xsl package.
  350. ``php.zip``
  351. ^^^^^^^^^^^^^^
  352. Installs the php-zip package.
  353. Testing
  354. -------
  355. Linux testing is done with ``kitchen-salt``.
  356. Requirements
  357. ^^^^^^^^^^^^
  358. * Ruby
  359. * Docker
  360. .. code-block:: bash
  361. $ gem install bundler
  362. $ bundle install
  363. $ bin/kitchen test [platform]
  364. Where ``[platform]`` is the platform name defined in ``kitchen.yml``,
  365. e.g. ``debian-9-2019-2-py3``.
  366. ``bin/kitchen converge``
  367. ^^^^^^^^^^^^^^^^^^^^^^^^
  368. Creates the docker instance and runs the ``template`` main state, ready for testing.
  369. ``bin/kitchen verify``
  370. ^^^^^^^^^^^^^^^^^^^^^^
  371. Runs the ``inspec`` tests on the actual instance.
  372. ``bin/kitchen destroy``
  373. ^^^^^^^^^^^^^^^^^^^^^^^
  374. Removes the docker instance.
  375. ``bin/kitchen test``
  376. ^^^^^^^^^^^^^^^^^^^^
  377. Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.
  378. ``bin/kitchen login``
  379. ^^^^^^^^^^^^^^^^^^^^^
  380. Gives you SSH access to the instance for manual testing.