|
@@ -46,7 +46,9 @@ DEPENDENCIES_LIST=(
|
|
"curl"
|
|
"curl"
|
|
"wget"
|
|
"wget"
|
|
"git"
|
|
"git"
|
|
|
|
+ "certbot"
|
|
"apache2"
|
|
"apache2"
|
|
|
|
+ "python3-certbot-apache"
|
|
"libapache2-mod-php8.2"
|
|
"libapache2-mod-php8.2"
|
|
"nodejs"
|
|
"nodejs"
|
|
"npm"
|
|
"npm"
|
|
@@ -86,6 +88,7 @@ sudo a2enmod env
|
|
sudo a2enmod ssl
|
|
sudo a2enmod ssl
|
|
sudo a2enmod headers
|
|
sudo a2enmod headers
|
|
sudo a2enconf ssl-params
|
|
sudo a2enconf ssl-params
|
|
|
|
+sudo ufw allow in "Apache Full"
|
|
|
|
|
|
#sudo a2ensite default-ssl
|
|
#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
|
|
#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
|
|
# sudo ufw allow proto tcp from any to any port 80,443
|
|
|
|
|
|
# Run Nginx
|
|
# Run Nginx
|
|
-systemctl start nginx
|
|
|
|
-systemctl enable nginx
|
|
|
|
|
|
+#systemctl start nginx
|
|
|
|
+#systemctl enable nginx
|
|
|
|
+
|
|
service phyre start
|
|
service phyre start
|
|
|
|
|
|
# Change NGINX index.html
|
|
# 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
|
|
cp $MAIN_DIR/samples/sample-index.html /var/www/html/index.html
|
|
|
|
|
|
# Restart NGINX
|
|
# Restart NGINX
|
|
-systemctl restart nginx
|
|
|
|
|
|
+#systemctl restart nginx
|
|
|
|
|
|
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
|
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
|
|
|
|