Przeglądaj źródła

Update install.sh

Bozhidar Slaveykov 1 rok temu
rodzic
commit
64ecbeabe0
1 zmienionych plików z 7 dodań i 3 usunięć
  1. 7 3
      installers/Ubuntu/22.04/install.sh

+ 7 - 3
installers/Ubuntu/22.04/install.sh

@@ -46,7 +46,9 @@ DEPENDENCIES_LIST=(
     "curl"
     "wget"
     "git"
+    "certbot"
     "apache2"
+    "python3-certbot-apache"
     "libapache2-mod-php8.2"
     "nodejs"
     "npm"
@@ -86,6 +88,7 @@ sudo a2enmod env
 sudo a2enmod ssl
 sudo a2enmod headers
 sudo a2enconf ssl-params
+sudo ufw allow in "Apache Full"
 
 #sudo a2ensite default-ssl
 #sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
@@ -114,8 +117,9 @@ sudo dpkg -i $MAIN_DIR/compilators/debian/php/dist/phyre-php-8.2.0.deb
 # sudo ufw allow proto tcp from any to any port 80,443
 
 # Run Nginx
-systemctl start nginx
-systemctl enable nginx
+#systemctl start nginx
+#systemctl enable nginx
+
 service phyre start
 
 # Change NGINX index.html
@@ -123,7 +127,7 @@ rm -rf /var/www/html/*
 cp $MAIN_DIR/samples/sample-index.html /var/www/html/index.html
 
 # Restart NGINX
-systemctl restart nginx
+#systemctl restart nginx
 
 PHYRE_PHP=/usr/local/phyre/php/bin/php