2021-11-09 08:30:33
This commit is contained in:
5
bonus.sh
5
bonus.sh
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2021/11/07 14:23:18 by gbaconni #+# #+# #
|
# 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
|
> /etc/lighttpd/server.pem
|
||||||
lighttpd-enable-mod fastcgi
|
lighttpd-enable-mod fastcgi
|
||||||
lighttpd-enable-mod fastcgi-php
|
lighttpd-enable-mod fastcgi-php
|
||||||
lighttpd-enable-mod rewrite
|
|
||||||
lighttpd-enable-mod ssl
|
lighttpd-enable-mod ssl
|
||||||
systemctl force-reload lighttpd
|
systemctl force-reload lighttpd
|
||||||
fi
|
fi
|
||||||
@@ -68,7 +67,7 @@ ft_php ()
|
|||||||
apt-get install -qq -y php php-fpm php-mysql
|
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/^;?(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
|
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
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user