2021-11-09 08:30:33

This commit is contained in:
gbaconni
2021-11-09 08:30:33 +01:00
parent 0a61182263
commit 90fb983ae1

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/07 14:23:18 by gbaconni #+# #+# #
# Updated: 2021/11/09 08:26:49 by gbaconni ### lausanne.ch #
# Updated: 2021/11/09 08:30:31 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
@@ -54,7 +54,6 @@ ft_lighttpd ()
> /etc/lighttpd/server.pem
lighttpd-enable-mod fastcgi
lighttpd-enable-mod fastcgi-php
lighttpd-enable-mod rewrite
lighttpd-enable-mod ssl
systemctl force-reload lighttpd
fi
@@ -68,7 +67,7 @@ ft_php ()
apt-get install -qq -y php php-fpm php-mysql
sed -i -r 's/^;?(cgi.fix_pathinfo)=.*/\1=1/' /etc/php/7.4/fpm/php.ini
sed -i -r 's|(listen =).*|\1 /run/php/php-fpm.sock|' /etc/php/7.4/fpm/pool.d/www.conf
systemctl restart php7.3-fpm
systemctl restart php7.4-fpm
fi
return 0
}