|
@@ -46,7 +46,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
|
|
|
imagemagick libapache2-mod-fcgid libapache2-mod-php$fpm_v libapache2-mod-rpaf
|
|
imagemagick libapache2-mod-fcgid libapache2-mod-php$fpm_v libapache2-mod-rpaf
|
|
|
lsof mc mariadb-client mariadb-common mariadb-server mysql-client mysql-common mysql-server nginx
|
|
lsof mc mariadb-client mariadb-common mariadb-server mysql-client mysql-common mysql-server nginx
|
|
|
php$fpm_v php$fpm_v-cgi php$fpm_v-common php$fpm_v-curl
|
|
php$fpm_v php$fpm_v-cgi php$fpm_v-common php$fpm_v-curl
|
|
|
- php$fpm_v-mysql php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu phppgadmin
|
|
|
|
|
|
|
+ php$fpm_v-mysql php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu
|
|
|
php$fpm_v-pgsql php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli php$fpm_v-gd
|
|
php$fpm_v-pgsql php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli php$fpm_v-gd
|
|
|
php$fpm_v-imagick php$fpm_v-intl php$fpm_v-mbstring
|
|
php$fpm_v-imagick php$fpm_v-intl php$fpm_v-mbstring
|
|
|
php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline php$fpm_v-xml
|
|
php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline php$fpm_v-xml
|
|
@@ -1738,11 +1738,20 @@ if [ "$postgresql" = 'yes' ]; then
|
|
|
systemctl restart postgresql
|
|
systemctl restart postgresql
|
|
|
sudo -iu postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'" > /dev/null 2>&1
|
|
sudo -iu postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'" > /dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
+ mkdir -p /etc/phppgadmin/
|
|
|
|
|
+ mkdir -p /usr/share/phppgadmin/
|
|
|
|
|
+
|
|
|
|
|
+ wget --retry-connrefused --quiet https://github.com/hestiacp/phppgadmin/releases/download/v$pga_v/phppgadmin-v$pga_v.tar.gz
|
|
|
|
|
+ tar xzf phppgadmin-v$pga_v.tar.gz -C /usr/share/phppgadmin/
|
|
|
|
|
+
|
|
|
|
|
+ cp -f $HESTIA_INSTALL_DIR/pga/config.inc.php /etc/phppgadmin/
|
|
|
|
|
+
|
|
|
|
|
+ ln -s /etc/phppgadmin/config.inc.php /usr/share/phppgadmin/conf/
|
|
|
|
|
+
|
|
|
# Configuring phpPgAdmin
|
|
# Configuring phpPgAdmin
|
|
|
if [ "$apache" = 'yes' ]; then
|
|
if [ "$apache" = 'yes' ]; then
|
|
|
cp -f $HESTIA_INSTALL_DIR/pga/phppgadmin.conf /etc/apache2/conf.d/phppgadmin.inc
|
|
cp -f $HESTIA_INSTALL_DIR/pga/phppgadmin.conf /etc/apache2/conf.d/phppgadmin.inc
|
|
|
fi
|
|
fi
|
|
|
- cp -f $HESTIA_INSTALL_DIR/pga/config.inc.php /etc/phppgadmin/
|
|
|
|
|
|
|
|
|
|
write_config_value "DB_PGA_ALIAS" "phppgadmin"
|
|
write_config_value "DB_PGA_ALIAS" "phppgadmin"
|
|
|
$HESTIA/bin/v-change-sys-db-alias 'pga' "phppgadmin"
|
|
$HESTIA/bin/v-change-sys-db-alias 'pga' "phppgadmin"
|
|
@@ -1769,7 +1778,7 @@ if [ "$named" = 'yes' ]; then
|
|
|
systemctl restart apparmor >> $LOG
|
|
systemctl restart apparmor >> $LOG
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
- update-rc.d bind9 defaults
|
|
|
|
|
|
|
+ update-rc.d bind9 defaults > /dev/null 2>&1
|
|
|
systemctl start bind9
|
|
systemctl start bind9
|
|
|
|
|
|
|
|
check_result $? "bind9 start failed"
|
|
check_result $? "bind9 start failed"
|
|
@@ -2030,16 +2039,20 @@ echo "[ * ] Configuring File Manager..."
|
|
|
$HESTIA/bin/v-add-sys-filemanager quiet
|
|
$HESTIA/bin/v-add-sys-filemanager quiet
|
|
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
-# Configure PHPMailer #
|
|
|
|
|
|
|
+# Configure dependencies #
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
|
|
echo "[ * ] Configuring PHP dependencies..."
|
|
echo "[ * ] Configuring PHP dependencies..."
|
|
|
$HESTIA/bin/v-add-sys-dependencies quiet
|
|
$HESTIA/bin/v-add-sys-dependencies quiet
|
|
|
|
|
|
|
|
|
|
+echo "[ * ] Install Rclone"
|
|
|
|
|
+curl -s https://rclone.org/install.sh | bash > /dev/null 2>&1
|
|
|
|
|
+
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
# Configure IP #
|
|
# Configure IP #
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
|
|
|
|
+echo "[ * ] Configuring System IP..."
|
|
|
# Configuring system IPs
|
|
# Configuring system IPs
|
|
|
$HESTIA/bin/v-update-sys-ip > /dev/null 2>&1
|
|
$HESTIA/bin/v-update-sys-ip > /dev/null 2>&1
|
|
|
|
|
|
|
@@ -2053,7 +2066,6 @@ if [ "$iptables" = 'yes' ]; then
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Get public IP
|
|
# Get public IP
|
|
|
-echo "[ * ] Configuring System IP..."
|
|
|
|
|
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
|
|
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
|
|
|
pub_ipv6=$(curl --ipv6 -s https://ip.hestiacp.com/)
|
|
pub_ipv6=$(curl --ipv6 -s https://ip.hestiacp.com/)
|
|
|
|
|
|
|
@@ -2203,7 +2215,6 @@ fi' >> /root/.bashrc
|
|
|
# Hestia Access Info #
|
|
# Hestia Access Info #
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
|
|
-# Comparing hostname and IP
|
|
|
|
|
host_ip=$(host $servername | head -n 1 | awk '{print $NF}')
|
|
host_ip=$(host $servername | head -n 1 | awk '{print $NF}')
|
|
|
if [ "$host_ip" = "$ip" ]; then
|
|
if [ "$host_ip" = "$ip" ]; then
|
|
|
ip="$servername"
|
|
ip="$servername"
|
|
@@ -2220,9 +2231,12 @@ You have successfully installed Hestia Control Panel on your server.
|
|
|
|
|
|
|
|
Ready to get started? Log in using the following credentials:
|
|
Ready to get started? Log in using the following credentials:
|
|
|
|
|
|
|
|
- Admin URL: https://$ip:$port
|
|
|
|
|
- Username: admin
|
|
|
|
|
- Password: $displaypass
|
|
|
|
|
|
|
+ Admin URL: https://$servername:$port"
|
|
|
|
|
+if [ "$host_ip" != "$ip" ]; then
|
|
|
|
|
+ echo " Backup URL: https://$ip:$port"
|
|
|
|
|
+fi
|
|
|
|
|
+echo -e " Username: admin
|
|
|
|
|
+ Password: $displaypass
|
|
|
|
|
|
|
|
Thank you for choosing Hestia Control Panel to power your full stack web server,
|
|
Thank you for choosing Hestia Control Panel to power your full stack web server,
|
|
|
we hope that you enjoy using it as much as we do!
|
|
we hope that you enjoy using it as much as we do!
|