Commit 71692ad7 authored by w4t's avatar w4t

wtserver 0.12

parent c07fca6f
...@@ -85,7 +85,8 @@ InstallPhp56() { ...@@ -85,7 +85,8 @@ InstallPhp56() {
### https://www.howtoforge.com/ispconfig-php-debian/ ### https://www.howtoforge.com/ispconfig-php-debian/
echo -n -e "$IDENTATION_LVL_1 Installing PHP 5.6.40 and Modules... " echo -n -e "$IDENTATION_LVL_1 Installing PHP 5.6.40 and Modules... "
apt_install php5.6 php5.6-cli php5.6-cgi php5.6-fpm php5.6-gd php5.6-mysql php5.6-imap php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap php5.6-opcache libicu65 php5.6-common php5.6-json php5.6-readline php5.6-xml apt_install php5.6 php5.6-cli php5.6-cgi php5.6-fpm php5.6-gd php5.6-mysql php5.6-imap php5.6-curl php5.6-intl php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-zip php5.6-mbstring php5.6-soap php5.6-opcache php5.6-common php5.6-json php5.6-readline php5.6-xml
#libicu65
OS_default_PHP_back OS_default_PHP_back
echo -e "[${green}DONE${NC}]" echo -e "[${green}DONE${NC}]"
......
...@@ -150,19 +150,19 @@ server { ...@@ -150,19 +150,19 @@ server {
} }
EOF EOF
echo -n -e "$IDENTATION_LVL_2 Disabling IPv6 if not enabled... " #echo -n -e "$IDENTATION_LVL_2 Disabling IPv6 if not enabled... "
# Disable IPv6 if not enabled # Disable IPv6 if not enabled
if [ $IPV6_ENABLED == false ]; then #if [ $IPV6_ENABLED == false ]; then
sed -i "s/listen \[::\]:80/###-No IPV6### listen [::]:80/" /etc/nginx/sites-available/default # sed -i "s/listen \[::\]:80/###-No IPV6### listen [::]:80/" /etc/nginx/sites-available/default
fi #fi
echo -e "[${green}DONE${NC}]" #echo -e "[${green}DONE${NC}]"
echo -n -e "$IDENTATION_LVL_2 Ensuring sites-enabled loading... " #echo -n -e "$IDENTATION_LVL_2 Ensuring sites-enabled loading... "
# Ensure sites-enabled loading # Ensure sites-enabled loading
if [ $IPV6_ENABLED == false ]; then #if [ $IPV6_ENABLED == false ]; then
grep -q "sites-enabled\/\*\.vhost" /etc/nginx/nginx.conf || sed -i "/include \/etc\/nginx\/conf.d\/\*\.conf;/ a \ include \/etc\/nginx\/sites-enabled\/\*\.vhost;" /etc/nginx/nginx.conf # grep -q "sites-enabled\/\*\.vhost" /etc/nginx/nginx.conf || sed -i "/include \/etc\/nginx\/conf.d\/\*\.conf;/ a \ include \/etc\/nginx\/sites-enabled\/\*\.vhost;" /etc/nginx/nginx.conf
fi #fi
echo -e "[${green}DONE${NC}]" #echo -e "[${green}DONE${NC}]"
#write vhost nginx phpmyadmin file for ISPConfig vhost #write vhost nginx phpmyadmin file for ISPConfig vhost
# uncommmenting the phpmyadmin section # uncommmenting the phpmyadmin section
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment