forked from Sophia/thelinuxlist
new scripts and updates
This commit is contained in:
@ -20,10 +20,9 @@ while [ "$go" != 'apache' ] && [ "$go" != 'nginx' ]; do
|
||||
read -p "Would you like to install using Nginx or Apache? (nginx/apache) " go
|
||||
done
|
||||
if [ "$go" == 'nginx' ]; then
|
||||
PHP_VER="8.2"
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo apt-get install build-essential lsb-release software-properties-common -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/php && sudo apt install php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx-full -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/nginx && sudo add-apt-repository --yes ppa:ondrej/php && sudo apt install php-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx-full php-mysql -y
|
||||
sudo systemctl stop nginx
|
||||
sudo wget -O /etc/nginx/conf.d/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmanginx.conf
|
||||
sudo systemctl enable nginx
|
||||
@ -51,13 +50,12 @@ intenalip=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
|
||||
echo -e "=================================================================="
|
||||
fi
|
||||
if [ "$go" == 'apache' ]; then
|
||||
PHP_VER="8.2"
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo apt-get install build-essential lsb-release software-properties-common -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/php && apt install apache2 libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/apache2 && apt install apache2 libapache2-mod-php php-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl php-mysql -y
|
||||
sudo systemctl stop apache2
|
||||
sudo wget -O /etc/apache2/sites-enabled/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmaapache.conf
|
||||
sudo systemctl restart php$PHP_VER-fpm
|
||||
sudo systemctl restart php-fpm
|
||||
sudo systemctl reload apache2
|
||||
sudo systemctl enable apache2
|
||||
## Updating phpMyAdmin.
|
||||
|
Reference in New Issue
Block a user