Saltstack Official PHP Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. ===
  2. php
  3. ===
  4. Formulas to set up and configure php and various php libraries.
  5. .. note::
  6. See the full `Salt Formulas installation and usage instructions
  7. <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  8. Available states
  9. ================
  10. .. contents::
  11. :local:
  12. ``php``
  13. -------
  14. Installs the php package.
  15. ``php.apc``
  16. -----------
  17. Installs the php-apc package.
  18. Disabled by default on opensuse need server:php repo
  19. ``php.apcu``
  20. ------------
  21. Installs the php-apcu package.
  22. Disabled by default on opensuse need server:php repo
  23. ``php.adodb``
  24. -------------
  25. Installs the php-adodb package.
  26. ``php.cgi``
  27. -----------
  28. Installs the php-cgi package.
  29. Disabled on opensuse not available, only fastcgi
  30. ``php.cli``
  31. -----------
  32. Installs the php-cli package.
  33. ``php.composer``
  34. -----------
  35. Installs [composer](https://getcomposer.org) and keeps it updated.
  36. ``php.curl``
  37. ------------
  38. Installs the php5-curl package on Debian, and ensures that curl itself is
  39. installed for RedHat systems, this is due to the curl libs being provided by
  40. php-common, which will get installed with the main php package.
  41. ``php.fpm``
  42. -----------
  43. Installs the php-fpm package, starts the service, and enables it.
  44. ``php.gd``
  45. ----------
  46. Installs the php-gd package.
  47. ``php.intl``
  48. ------------
  49. Installs the php-intl package.
  50. ``php.imagick``
  51. ---------------
  52. Installs the php-imagick package.
  53. Disabled on opensuse not available.
  54. ``php.imap``
  55. ------------
  56. Installs the php-imap package.
  57. ``php.json``
  58. ------------
  59. Installs the php-json package.
  60. ``php.ldap``
  61. ------------
  62. Installs the php-ldap package.
  63. ``php.mbstring``
  64. ----------------
  65. Installs the php-mbstring package.
  66. ``php.mcrypt``
  67. --------------
  68. Installs the php-mcrypt package.
  69. ``php.memcache``
  70. ----------------
  71. Installs the php-memcache package.
  72. Disabled on opensuse need server:php:extensions repo
  73. ``php.memcached``
  74. -----------------
  75. Installs the php-memcached package.
  76. Disabled on opensuse need server:php:extensions repo
  77. ``php.mysql``
  78. -------------
  79. Installs the php-mysql package.
  80. ``php.mysqlnd``
  81. ---------------
  82. Installs the php-mysqlnd package.
  83. Disabled on opensuse no package.
  84. ``php.pear``
  85. ------------
  86. Installs the php-pear package.
  87. ``php.redis``
  88. ------------
  89. Installs the php-redis package.
  90. Disabled on opensuse need server:php:extensions repo
  91. ``php.pgsql``
  92. -------------
  93. Installs the php-pgsql package.
  94. ``php.soap``
  95. ------------
  96. Installs the php-soap package.
  97. ``php.sqlite``
  98. --------------
  99. Installs the php-sqlite package,
  100. ``php.suhosin``
  101. ---------------
  102. Installs the php-suhosin package.
  103. ``php.mongo``
  104. -------------
  105. Installs the php-mongo package.
  106. Disabled on opensuse need server:php:extensions repo
  107. ``php.sybase``
  108. -----------
  109. Installs the php-sybase package for Sybase/MS-SQL. Debian / Ubuntu as RedHat has no similar package.
  110. ``php.xml``
  111. -----------
  112. Installs the php-xml package.
  113. Next-generation, alternate approach
  114. ===================================
  115. The following states provide an alternate approach to managing PHP and FPM
  116. pools, as well as code organization. Please provide feedback by filing issues,
  117. discussing in ``#salt`` in Freenode and the mailing list as normal.
  118. **Note:** php.ng states require the merge parameter of salt.modules.pillar.get(),
  119. first available in the Helium release.
  120. .. contents::
  121. :local:
  122. ``php.ng``
  123. ----------
  124. Installs the php package.
  125. ``php.ng.adodb``
  126. ----------------
  127. Installs the php-adodb package.
  128. ``php.ng.apache2``
  129. ----------------
  130. Meta-state that combines `php.ng.apache2.install`_ and `php.ng.apache2.ini`_.
  131. ``php.ng.apache2.ini``
  132. --------------
  133. Manages the apache2 php.ini file
  134. ``php.ng.apache2.install``
  135. --------------
  136. Installs the apache2 and libapache2-mod-php5 package. Debian Only.
  137. ``php.ng.apc``
  138. --------------
  139. Installs the php-apc package.
  140. Disabled on opensuse need server:php repo
  141. ``php.ng.apcu``
  142. ---------------
  143. Installs the php-apcu package.
  144. Disabled on opensuse need server:php repo
  145. ``php.ng.cgi``
  146. --------------
  147. Installs the php-cgi package.
  148. Disabled on opensuse only php5-fastcgi available.
  149. ``php.ng.cli``
  150. --------------
  151. Meta-state that combines `php.ng.cli.install`_ and `php.ng.cli.ini`_.
  152. ``php.ng.cli.ini``
  153. ------------------
  154. Manages the php-cli ini file.
  155. ``php.ng.cli.install``
  156. ----------------------
  157. Installs the php-cli package.
  158. ``php.ng.curl``
  159. ---------------
  160. Installs the php5-curl package on Debian, and ensures that curl itself is
  161. installed for RedHat systems, this is due to the curl libs being provided by
  162. php-common, which will get installed with the main php package.
  163. ``php.ng.gearman``
  164. ---------------
  165. Installs the php-gearman package.
  166. ``php.ng.fpm``
  167. --------------
  168. Meta-state that combines all php.ng.fpm states.
  169. ``php.ng.fpm.config``
  170. ---------------------
  171. Manages the (non-pool) php-fpm config files.
  172. ``php.ng.fpm.install``
  173. ----------------------
  174. Installs the php-fpm package.
  175. ``php.ng.fpm.pools``
  176. --------------------
  177. Meta-state that combines `php.ng.fpm.service`_ and `php.ng.fpm.pools_config`_
  178. ``php.ng.fpm.pools_config``
  179. ---------------------------
  180. Manages php-fpm pool config files.
  181. ``php.ng.fpm.service``
  182. ----------------------
  183. Manages the php-fpm service.
  184. ``php.ng.gd``
  185. -------------
  186. Installs the php-gd package.
  187. ``php.ng.geoip``
  188. ----------------------
  189. Installs the php-geoip package.
  190. ``php.ng.gmp``
  191. ----------
  192. Installs the php-gmp package. Debian Only.
  193. ``php.ng.hhvm``
  194. ---------------
  195. Meta-state that combines php.ng.hhvm states
  196. ``php.ng.hhvm.config``
  197. ----------------------
  198. Manages the php-hhvm config files
  199. ``php.ng.hhvm.install``
  200. -----------------------
  201. Installs the php-hhvm package
  202. ``php.ng.hhvm.repo``
  203. --------------------
  204. Configures the hhvm repo for debian/ubuntu
  205. ``php.ng.hhvm.service``
  206. -----------------------
  207. Manages the php-hhvm service.
  208. ``php.ng.imagick``
  209. ------------------
  210. Installs the php-imagick package.
  211. Disabled on opensuse no package.
  212. ``php.ng.imap``
  213. ---------------
  214. Installs the php-imap package.
  215. ``php.ng.intl``
  216. ---------------
  217. Installs the php-intl package.
  218. ``php.ng.json``
  219. ---------------
  220. Installs the php-json package.
  221. ``php.ng.ldap``
  222. ---------------
  223. Installs the php-ldap package.
  224. ``php.ng.mbstring``
  225. -------------------
  226. Installs the php-mbstring package.
  227. ``php.ng.mcrypt``
  228. -----------------
  229. Installs the php-mcrypt package.
  230. ``php.ng.memcache``
  231. -------------------
  232. Installs the php-memcache package.
  233. Disabled on opensuse need server:php:extensions repo
  234. ``php.ng.memcached``
  235. --------------------
  236. Installs the php-memcached package.
  237. Disabled on opensuse need server:php:extensions repo
  238. ``php.ng.mongo``
  239. --------------------
  240. Installs the php-mongo package.
  241. ``php.ng.mongodb``
  242. --------------------
  243. Installs the php-mongodb package.
  244. ``php.ng.mysql``
  245. ----------------
  246. Installs the php-mysql package.
  247. ``php.ng.mysqlnd``
  248. ------------------
  249. Installs the php-mysqlnd package.
  250. Disabled on opensuse no package.
  251. ``php.ng.oauth``
  252. ---------------
  253. Installs the php-oauth package.
  254. ``php.ng.pear``
  255. ---------------
  256. Installs the php-pear package.
  257. ``php.ng.pgsql``
  258. ----------------
  259. Installs the php-pgsql package.
  260. ``php.ng.pspell``
  261. ----------------
  262. Installs the php-pspell package.
  263. ``php.ng.redis``
  264. ---------------
  265. Installs the php-redis package.
  266. Disabled on opensuse need server:php:extensions repo
  267. ``php.ng.snmp``
  268. ---------------
  269. Installs the php-snmp package.
  270. ``php.ng.soap``
  271. ---------------
  272. Installs the php-soap package.
  273. ``php.ng.sqlite``
  274. -----------------
  275. Installs the php-sqlite package,
  276. ``php.ng.suhosin``
  277. ------------------
  278. Installs the php-suhosin package.
  279. ``php.ng.sybase``
  280. -------------
  281. Installs the php-sybase package.
  282. ``php.ng.xcache``
  283. ---------------
  284. Meta-state that combines `php.ng.xcache.install`_ and `php.ng.xcache.ini`_.
  285. ``php.ng.xcache.ini``
  286. ---------------
  287. Manages the php-xcache ini file
  288. ``php.ng.xcache.install``
  289. ---------------
  290. Installs the php-xcache package.
  291. Disabled on opensuse need server:php:extensions repo
  292. ``php.ng.xdebug``
  293. --------------
  294. Installs the php-xdebug package.
  295. ``php.ng.xml``
  296. --------------
  297. Installs the php-xml package.
  298. ``php.ng.xsl``
  299. --------------
  300. Installs the php-xsl package.
  301. ``php.ng.dev``
  302. --------------
  303. Installs the php5-dev and build-essential package.
  304. ``php.ng.gettext``
  305. --------------
  306. Installs the php-gettext package.
  307. ``php.ng.geshi``
  308. --------------
  309. Installs the php-geshi package.
  310. ``php.ng.mdb2``
  311. --------------
  312. Installs the php-mdb2 package.
  313. ``php.ng.mdb2-driver-mysql``
  314. --------------
  315. Installs the php-mdb2-driver-mysql package.
  316. ``php.ng.mdb2-driver-pgsql``
  317. --------------
  318. Installs the php-mdb2-driver-pgsql package.
  319. ``php.ng.seclib``
  320. --------------
  321. Installs the php-seclib package.
  322. ``php.ng.tidy``
  323. --------------
  324. Installs the php-tidy package.
  325. ``php.ng.tcpdf``
  326. --------------
  327. Installs the php-tcpdf package.
  328. ``php.ng.cache-lite``
  329. --------------
  330. Installs the php-cache-lite package.
  331. ``php.ng.console-table``
  332. --------------
  333. Installs the php-console-table package.