mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 05:53:04 +08:00
feat: 安装Apache部分,优化Ubuntu上的安装方式、新增RHEL系安装方式
This commit is contained in:
parent
f092c4ab98
commit
5cd510b655
@ -119,9 +119,16 @@ install_php() {
|
|||||||
|
|
||||||
install_apache() {
|
install_apache() {
|
||||||
echo -e "${green}开始安装Apache${plain}"
|
echo -e "${green}开始安装Apache${plain}"
|
||||||
|
if [[ $systemFlag == "1" ]]; then
|
||||||
wget -O /usr/share/keyrings/apache2.gpg https://packages.sury.org/apache2/apt.gpg
|
wget -O /usr/share/keyrings/apache2.gpg https://packages.sury.org/apache2/apt.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/apache2.gpg] https://packages.sury.org/apache2/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list
|
echo "deb [signed-by=/usr/share/keyrings/apache2.gpg] https://packages.sury.org/apache2/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list
|
||||||
apt update && apt install apache2 -y
|
apt update && apt install apache2 -y
|
||||||
|
elif [[ $systemFlag == "2" ]]; then
|
||||||
|
add-apt-repository ppa:ondrej/apache2
|
||||||
|
apt update && apt install apache2 -y
|
||||||
|
elif [[ $systemFlag == "3" ]]; then
|
||||||
|
dnf install httpd -y
|
||||||
|
fi
|
||||||
a2enconf php8.1-fpm
|
a2enconf php8.1-fpm
|
||||||
a2enmod proxy_fcgi
|
a2enmod proxy_fcgi
|
||||||
a2enmod headers
|
a2enmod headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user