Fixed PHPmyAdmin version for PHP 7.0

master
Thomas Brinkmann 4 years ago
parent 445ce52cc4
commit f228917521
  1. 9
      lamp-headless.sh

@ -121,18 +121,19 @@ install_debian8() {
wget https://www.dotdeb.org/dotdeb.gpg wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg apt-key add dotdeb.gpg
apt-get update apt-get update >/dev/null &
show_spinner $!
apt-get install --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" php7.0-common php7.0-fpm php7.0-cli php7.0-json php7.0-imap php7.0-mysql php7.0-curl php7.0-imap php7.0-intl php7.0-mcrypt php-pear php7.0-gd php7.0-zip php7.0-xml php7.0-mbstring >/dev/null & apt-get install --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" php7.0-common php7.0-fpm php7.0-cli php7.0-json php7.0-imap php7.0-mysql php7.0-curl php7.0-imap php7.0-intl php7.0-mcrypt php-pear php7.0-gd php7.0-zip php7.0-xml php7.0-mbstring >/dev/null &
show_spinner $! show_spinner $!
apt-get install --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" apache2 libapache2-mod-php7.0 mysql-server >/dev/null & apt-get install --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" apache2 libapache2-mod-php7.0 mysql-server >/dev/null &
show_spinner $! show_spinner $!
echo -e "\n\e[92mDownloading PHPMyAdmin..\e[39m" echo -e "\n\e[92mDownloading PHPMyAdmin..\e[39m"
wget -q -N "https://files.phpmyadmin.net/phpMyAdmin/$PHPMYADMINV/phpMyAdmin-$PHPMYADMINV-all-languages.zip" >/dev/null & wget -q -N "https://files.phpmyadmin.net/phpMyAdmin/4.9.5/phpMyAdmin-4.9.5-all-languages.zip" >/dev/null &
show_spinner $! show_spinner $!
unzip -o phpMyAdmin-$PHPMYADMINV-all-languages.zip >/dev/null & unzip -o phpMyAdmin-4.9.5-all-languages.zip >/dev/null &
show_spinner $! show_spinner $!
mv phpMyAdmin-$PHPMYADMINV-all-languages /usr/share/phpmyadmin mv phpMyAdmin-4.9.5-all-languages /usr/share/phpmyadmin
chmod -R 0755 /usr/share/phpmyadmin chmod -R 0755 /usr/share/phpmyadmin
wget -q -N "https://backup.mirror3.deinserverhost.icu/OneClick/phpmyadmin.conf" wget -q -N "https://backup.mirror3.deinserverhost.icu/OneClick/phpmyadmin.conf"
mv phpmyadmin.conf /etc/apache2/conf-available/ mv phpmyadmin.conf /etc/apache2/conf-available/

Loading…
Cancel
Save