Skip to content

Commit fef66a9

Browse files
authored
fix: don't expose php version (#42)
1 parent c6b040b commit fef66a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layers/layer1_php/0010_php/Makefile.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ $(PREFIX)/bin/php:
2222
mv $(PREFIX)/etc/php-fpm.d/www.conf.default $(PREFIX)/etc/php-fpm.d/www.conf
2323

2424
# configure php-fpm
25+
sed -i 's/^expose_php = On/expose_php = Off/g' $(PREFIX)/lib/php.ini
2526
sed -i 's/^user = nobody/;user = nobody/g' $(PREFIX)/etc/php-fpm.d/www.conf
2627
sed -i 's/^group = nobody/;group = nobody/g' $(PREFIX)/etc/php-fpm.d/www.conf
2728
sed -i 's/^listen = .*/listen = {{PHP_SOCKET_PATH}}/g' $(PREFIX)/etc/php-fpm.d/www.conf

0 commit comments

Comments
 (0)