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.

README.rst 11KB

11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
5 years ago
5 years ago
5 years ago
5 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  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.adodb``
  16. -------------
  17. Installs the php-adodb package.
  18. ``php.apc``
  19. -----------
  20. Installs the php-apc package.
  21. Disabled by default on opensuse need server:php repo
  22. ``php.apcu``
  23. ------------
  24. Installs the php-apcu package.
  25. Disabled by default on opensuse need server:php repo
  26. ``php.bcmath``
  27. ------------
  28. Installs the php-bcmath package.
  29. ``php.cgi``
  30. -----------
  31. Installs the php-cgi package.
  32. Disabled on opensuse not available, only fastcgi
  33. ``php.cli``
  34. -----------
  35. Installs the php-cli package.
  36. ``php.composer``
  37. ----------------
  38. Installs [composer](https://getcomposer.org) and keeps it updated.
  39. ``php.curl``
  40. ------------
  41. Installs the php5-curl package on Debian, and ensures that curl itself is
  42. installed for RedHat systems, this is due to the curl libs being provided by
  43. php-common, which will get installed with the main php package.
  44. ``php.dev``
  45. ----------
  46. Installs the php-dev package.
  47. ``php.fileinfo``
  48. -----------
  49. Installs the php-fileinfo package and enables it.
  50. ``php.fpm``
  51. -----------
  52. Installs the php-fpm package, starts the service, and enables it.
  53. ``php.gd``
  54. ----------
  55. Installs the php-gd package.
  56. ``php.imagick``
  57. ---------------
  58. Installs the php-imagick package.
  59. Disabled on opensuse not available.
  60. ``php.imap``
  61. ------------
  62. Installs the php-imap package.
  63. ``php.intl``
  64. ------------
  65. Installs the php-intl package.
  66. ``php.json``
  67. ------------
  68. Installs the php-json package.
  69. ``php.ldap``
  70. ------------
  71. Installs the php-ldap package.
  72. ``php.mail``
  73. ------------
  74. Installs the php-mail package.
  75. ``php.mbstring``
  76. ----------------
  77. Installs the php-mbstring package.
  78. ``php.mcrypt``
  79. --------------
  80. Installs the php-mcrypt package.
  81. ``php.memcache``
  82. ----------------
  83. Installs the php-memcache package.
  84. Disabled on opensuse need server:php:extensions repo
  85. ``php.memcached``
  86. -----------------
  87. Installs the php-memcached package.
  88. Disabled on opensuse need server:php:extensions repo
  89. ``php.mongo``
  90. -------------
  91. Installs the php-mongo package.
  92. Disabled on opensuse need server:php:extensions repo
  93. ``php.mysql``
  94. -------------
  95. Installs the php-mysql package.
  96. ``php.mysqlnd``
  97. ---------------
  98. Installs the php-mysqlnd package.
  99. Disabled on opensuse no package.
  100. ``php.oauth``
  101. ------------
  102. Installs the php-oauth package.
  103. ``php.pear``
  104. ------------
  105. Installs the php-pear package.
  106. ``php.pgsql``
  107. -------------
  108. Installs the php-pgsql package.
  109. ``php.readline``
  110. -------------
  111. Installs the php-readline package.
  112. ``php.redis``
  113. ------------
  114. Installs the php-redis package.
  115. Disabled on opensuse need server:php:extensions repo
  116. ``php.soap``
  117. ------------
  118. Installs the php-soap package.
  119. ``php.sqlite``
  120. --------------
  121. Installs the php-sqlite package,
  122. ``php.suhosin``
  123. ---------------
  124. Installs the php-suhosin package.
  125. ``php.sybase``
  126. -----------
  127. Installs the php-sybase package for Sybase/MS-SQL. Debian / Ubuntu as RedHat has no similar package.
  128. ``php.tokenizer``
  129. -----------
  130. Installs the php-tokenizer package and enables it.
  131. ``php.xml``
  132. -----------
  133. Installs the php-xml package.
  134. ``php.zip``
  135. -----------
  136. Installs the php-zip package.
  137. Next-generation, alternate approach
  138. ===================================
  139. The following states provide an alternate approach to managing PHP and FPM
  140. pools, as well as code organization. Please provide feedback by filing issues,
  141. discussing in ``#salt`` in Freenode and the mailing list as normal.
  142. **Note:** php.ng states require the merge parameter of salt.modules.pillar.get(),
  143. first available in the Helium release.
  144. .. contents::
  145. :local:
  146. ``php.ng``
  147. ----------
  148. Installs the php package.
  149. ``php.ng.adodb``
  150. ----------------
  151. Installs the php-adodb package.
  152. ``php.ng.apache2``
  153. ----------------
  154. Meta-state that combines `php.ng.apache2.install`_ and `php.ng.apache2.ini`_.
  155. ``php.ng.apache2.ini``
  156. --------------
  157. Manages the apache2 php.ini file
  158. ``php.ng.apache2.install``
  159. --------------
  160. Installs the apache2 and libapache2-mod-php5 package. Debian Only.
  161. ``php.ng.apc``
  162. --------------
  163. Installs the php-apc package.
  164. Disabled on opensuse need server:php repo
  165. ``php.ng.apcu``
  166. ---------------
  167. Installs the php-apcu package.
  168. Disabled on opensuse need server:php repo
  169. ``php.ng.auth-sasl``
  170. ---------------
  171. Installs the php-auth-sasl package.
  172. ``php.ng.bcmath``
  173. ---------------
  174. Installs the php-bcmath package.
  175. ``php.ng.cache-lite``
  176. ---------------
  177. Installs the php-cache-lite package.
  178. ``php.ng.cgi``
  179. --------------
  180. Installs the php-cgi package.
  181. Disabled on opensuse only php5-fastcgi available.
  182. ``php.ng.cli``
  183. --------------
  184. Meta-state that combines `php.ng.cli.install`_ and `php.ng.cli.ini`_.
  185. ``php.ng.cli.ini``
  186. ------------------
  187. Manages the php-cli ini file.
  188. ``php.ng.cli.install``
  189. ----------------------
  190. Installs the php-cli package.
  191. ``php.ng.composer``
  192. -------------------
  193. Installs [composer](https://getcomposer.org) and keeps it updated.
  194. ``php.ng.console-table``
  195. ---------------
  196. Installs the php-console-table package.
  197. ``php.ng.ctype``
  198. ----------------
  199. Installs the php-ctype package.
  200. ``php.ng.curl``
  201. ---------------
  202. Installs the php5-curl package on Debian, and ensures that curl itself is
  203. installed for RedHat systems, this is due to the curl libs being provided by
  204. php-common, which will get installed with the main php package.
  205. ``php.ng.dev``
  206. --------------
  207. Installs the php5-dev and build-essential package.
  208. ``php.ng.filter``
  209. -----------------
  210. Installs the php-filter package.
  211. ``php.ng.fpm``
  212. --------------
  213. Meta-state that combines all php.ng.fpm states.
  214. ``php.ng.fpm.config``
  215. ---------------------
  216. Manages the (non-pool) php-fpm config files.
  217. ``php.ng.fpm.install``
  218. ----------------------
  219. Installs the php-fpm package.
  220. ``php.ng.fpm.pools``
  221. --------------------
  222. Meta-state that combines `php.ng.fpm.service`_ and `php.ng.fpm.pools_config`_
  223. ``php.ng.fpm.pools_config``
  224. ---------------------------
  225. Manages php-fpm pool config files.
  226. ``php.ng.fpm.service``
  227. ----------------------
  228. Manages the php-fpm service.
  229. ``php.ng.gd``
  230. -------------
  231. Installs the php-gd package.
  232. ``php.ng.gearman``
  233. ---------------
  234. Installs the php-gearman package.
  235. ``php.ng.geoip``
  236. ----------------------
  237. Installs the php-geoip package.
  238. ``php.ng.geshi``
  239. --------------
  240. Installs the php-geshi package.
  241. ``php.ng.gettext``
  242. --------------
  243. Installs the php-gettext package.
  244. ``php.ng.gmp``
  245. ----------
  246. Installs the php-gmp package. Debian Only.
  247. ``php.ng.hash``
  248. ---------------
  249. Installs the php-hash package.
  250. ``php.ng.http``
  251. ---------------
  252. Installs the php-http package.
  253. ``php.ng.hhvm``
  254. ---------------
  255. Meta-state that combines php.ng.hhvm states
  256. ``php.ng.hhvm.config``
  257. ----------------------
  258. Manages the php-hhvm config files
  259. ``php.ng.hhvm.install``
  260. -----------------------
  261. Installs the php-hhvm package
  262. ``php.ng.hhvm.repo``
  263. --------------------
  264. Configures the hhvm repo for debian/ubuntu
  265. ``php.ng.hhvm.service``
  266. -----------------------
  267. Manages the php-hhvm service.
  268. ``php.ng.igbinary``
  269. ------------------
  270. Installs the php-igbinary package.
  271. ``php.ng.imagick``
  272. ------------------
  273. Installs the php-imagick package.
  274. Disabled on opensuse no package.
  275. ``php.ng.imap``
  276. ---------------
  277. Installs the php-imap package.
  278. ``php.ng.intl``
  279. ---------------
  280. Installs the php-intl package.
  281. ``php.ng.json``
  282. ---------------
  283. Installs the php-json package.
  284. ``php.ng.ldap``
  285. ---------------
  286. Installs the php-ldap package.
  287. ``php.ng.mail``
  288. ---------------
  289. Installs the php-mail package.
  290. ``php.ng.mbstring``
  291. -------------------
  292. Installs the php-mbstring package.
  293. ``php.ng.mcrypt``
  294. -----------------
  295. Installs the php-mcrypt package.
  296. ``php.ng.mdb2``
  297. --------------
  298. Installs the php-mdb2 package.
  299. ``php.ng.mdb2-driver-mysql``
  300. --------------
  301. Installs the php-mdb2-driver-mysql package.
  302. ``php.ng.mdb2-driver-pgsql``
  303. --------------
  304. Installs the php-mdb2-driver-pgsql package.
  305. ``php.ng.memcache``
  306. -------------------
  307. Installs the php-memcache package.
  308. Disabled on opensuse need server:php:extensions repo
  309. ``php.ng.memcached``
  310. --------------------
  311. Installs the php-memcached package.
  312. Disabled on opensuse need server:php:extensions repo
  313. ``php.ng.module``
  314. --------------------
  315. Calls ``php.ng.<name>`` for each entry in ``php:ng:modules`` if available, or
  316. try to install the matching packages that can be set via from
  317. ``php:ng:lookup:pkgs``
  318. ``php.ng.mongo``
  319. --------------------
  320. Installs the php-mongo package.
  321. ``php.ng.mongodb``
  322. --------------------
  323. Installs the php-mongodb package.
  324. ``php.ng.msgpack``
  325. --------------------
  326. Installs the php-msgpack package.
  327. ``php.ng.mysql``
  328. ----------------
  329. Installs the php-mysql package.
  330. ``php.ng.mysqlnd``
  331. ------------------
  332. Installs the php-mysqlnd package.
  333. Disabled on opensuse no package.
  334. ``php.ng.net-smtp``
  335. ---------------
  336. Installs the php-net-smtp package.
  337. ``php.ng.net4``
  338. ---------------
  339. Installs the php-net4 package.
  340. ``php.ng.net6``
  341. ---------------
  342. Installs the php-net6 package.
  343. ``php.ng.oauth``
  344. ---------------
  345. Installs the php-oauth package.
  346. ``php.ng.opcache``
  347. ---------------
  348. Installs the php-opcache package.
  349. ``php.ng.openssl``
  350. ------------------
  351. Installs the php-openssl package.
  352. ``php.ng.pear``
  353. ---------------
  354. Installs the php-pear package.
  355. ``php.ng.pgsql``
  356. ----------------
  357. Installs the php-pgsql package.
  358. ``php.ng.phar``
  359. ---------------
  360. Installs the php-phar package.
  361. ``php.ng.posix``
  362. ----------------
  363. Installs the php-posix package.
  364. ``php.ng.pspell``
  365. ----------------
  366. Installs the php-pspell package.
  367. ``php.ng.readline``
  368. ----------------
  369. Installs the php-readline package.
  370. ``php.ng.redis``
  371. ---------------
  372. Installs the php-redis package.
  373. Disabled on opensuse need server:php:extensions repo
  374. ``php.ng.seclib``
  375. --------------
  376. Installs the php-seclib package.
  377. ``php.ng.session``
  378. ------------------
  379. Installs the php-session package.
  380. ``php.ng.snmp``
  381. ---------------
  382. Installs the php-snmp package.
  383. ``php.ng.soap``
  384. ---------------
  385. Installs the php-soap package.
  386. ``php.ng.sqlite``
  387. -----------------
  388. Installs the php-sqlite package,
  389. ``php.ng.ssh2``
  390. -----------------
  391. Installs the php-ssh2 package,
  392. ``php.ng.suhosin``
  393. ------------------
  394. Installs the php-suhosin package.
  395. ``php.ng.svn``
  396. ------------------
  397. Installs the php-svn package.
  398. ``php.ng.sybase``
  399. -------------
  400. Installs the php-sybase package.
  401. ``php.ng.tcpdf``
  402. -------------
  403. Installs the php-tcpdf package.
  404. ``php.ng.tidy``
  405. --------------
  406. Installs the php-tidy package.
  407. ``php.ng.uuid``
  408. --------------
  409. Installs the php-uuid package.
  410. ``php.ng.xcache``
  411. ---------------
  412. Meta-state that combines `php.ng.xcache.install`_ and `php.ng.xcache.ini`_.
  413. ``php.ng.xcache.ini``
  414. ---------------
  415. Manages the php-xcache ini file
  416. ``php.ng.xcache.install``
  417. ---------------
  418. Installs the php-xcache package.
  419. Disabled on opensuse need server:php:extensions repo
  420. ``php.ng.xdebug``
  421. --------------
  422. Installs the php-xdebug package.
  423. ``php.ng.xml``
  424. --------------
  425. Installs the php-xml package.
  426. ``php.ng.xsl``
  427. --------------
  428. Installs the php-xsl package.
  429. ``php.ng.zip``
  430. ----------------
  431. Installs the php-zip package.