summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2020-05-25 20:58:46 +0200
committerJelle Licht <jlicht@fsfe.org>2020-09-10 09:46:03 +0200
commitbba0533115df9a31b696ee3782c8054174b955b1 (patch)
tree423a7e89d5bdc737120eecd8e005466a17dad856 /doc
parentcafbc5f39084cff62879206d69a3890fce54dc27 (diff)
downloadguix-patches-bba0533115df9a31b696ee3782c8054174b955b1.tar
guix-patches-bba0533115df9a31b696ee3782c8054174b955b1.tar.gz
services: php-fpm: Add 'php-ini-file' configuration.
* gnu/services/web.scm: (<php-fpm-configuration>)[php-ini-file]: New record field. (php-fpm-shepherd-service): Use it. * doc/guix.texi (Web Services): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index cfd90471f7..bad2d36e42 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -22191,6 +22191,31 @@ Can be set to @code{#f} to disable logging.
@item @code{file} (default @code{#f})
An optional override of the whole configuration.
You can use the @code{mixed-text-file} function or an absolute filepath for it.
+@item @code{php-ini-file} (default @code{#f})
+An optional override of the default php settings.
+It may be any ``file-like'' object (@pxref{G-Expressions, file-like objects}).
+You can use the @code{mixed-text-file} function or an absolute filepath for it.
+
+For local development it is useful to set a higher timeout and memory
+limit for spawned php processes. This be accomplished with the
+following operating system configuration snippet:
+@lisp
+(define %local-php-ini
+ (plain-file "php.ini"
+ "memory_limit = 2G
+max_execution_time = 1800"))
+
+(operating-system
+ ;; @dots{}
+ (services (cons (service php-fpm-service-type
+ (php-fpm-configuration
+ (php-ini-file %local-php-ini)))
+ %base-services)))
+@end lisp
+
+Consult the @url{https://www.php.net/manual/en/ini.core.php,core php.ini
+directives} for comprehensive documentation on the acceptable
+@file{php.ini} directives.
@end table
@end deftp