File: php-fpm.postinst.extra

package info (click to toggle)
php8.4 8.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208,108 kB
  • sloc: ansic: 1,060,628; php: 35,345; sh: 11,866; cpp: 7,201; pascal: 4,913; javascript: 3,091; asm: 2,810; yacc: 2,411; makefile: 689; xml: 446; python: 301; awk: 148
file content (22 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
    . /usr/share/apache2/apache2-maintscript-helper

    php_enable() {
	# Don't enable PHP FPM by default when Apache 2 is installed
	apache2_msg notice "NOTICE: Not enabling PHP @PHP_VERSION@ FPM by default."
	apache2_msg notice "NOTICE: To enable PHP @PHP_VERSION@ FPM in Apache2 do:"
	apache2_msg notice "NOTICE: a2enmod proxy_fcgi setenvif"
	apache2_msg notice "NOTICE: a2enconf php@PHP_VERSION@-fpm"
	apache2_msg notice "NOTICE: You are seeing this message because you have apache2 package installed."
	return 1
    }
else
    php_enable() {
	# Don't enable PHP FPM by default when Apache 2 is not installed
	return 1
    }
fi

if [ "$1" = "triggered" ] && [ "$2" = "/etc/php/@PHP_VERSION@/fpm/conf.d" ]; then
    invoke-rc.d php@PHP_VERSION@-fpm restart
fi