Compare commits

..

4 Commits

5 changed files with 64 additions and 43 deletions

View File

@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
. "../src/01-common.sh" || exit 5 echo
title "Installing apache2..." echo "==============================================="
echo "Installing apache2..."
echo "==============================================="
echo
apti apache2 sudo apt install -y --autoremove apache2
sudo service apache2 restart sudo service apache2 restart
success "$(apache2 -v)" apache2 -v

View File

@ -1,28 +1,32 @@
#!/bin/bash #!/bin/bash
. "../src/01-common.sh" || exit 5
PHPVER="8.1" PHPVER="8.1"
title "Installing php${PHPVER}..." echo
echo "==============================================="
echo "Installing php${PHPVER}..."
echo "==============================================="
echo
sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
apti php${PHPVER} \ sudo apt install -y --autoremove \
php${PHPVER}-xdebug \ php${PHPVER} \
php${PHPVER}-bcmath \ php${PHPVER}-cli \
php${PHPVER}-bz2 \ php${PHPVER}-common \
php${PHPVER}-curl \ php${PHPVER}-xdebug \
php${PHPVER}-gd \ # php${PHPVER}-bcmath \
php${PHPVER}-json \ # php${PHPVER}-bz2 \
php${PHPVER}-mbstring \ # php${PHPVER}-curl \
php${PHPVER}-mysql \ # php${PHPVER}-gd \
php${PHPVER}-opcache \ # php${PHPVER}-json \
php${PHPVER}-pgsql \ # php${PHPVER}-mbstring \
php${PHPVER}-soap \ # php${PHPVER}-mysql \
php${PHPVER}-xml \ # php${PHPVER}-opcache \
php${PHPVER}-xmlrpc \ # php${PHPVER}-pgsql \
php${PHPVER}-xsl \ # php${PHPVER}-soap \
php${PHPVER}-zip # php${PHPVER}-xml \
# php${PHPVER}-common # php${PHPVER}-xmlrpc \
# php${PHPVER}-cli # php${PHPVER}-xsl \
# php${PHPVER}-dba # php${PHPVER}-sqlite3 \
# php${PHPVER}-ldap # php${PHPVER}-zip
# php${PHPVER}-sqlite3 # php${PHPVER}-dba
# php${PHPVER}-ldap
php -v php -v

View File

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
. "../src/01-common.sh" || exit 5 echo
title "Installing oci8..." echo "==============================================="
echo "Installing oci8..."
echo "==============================================="
echo
#check for #check for
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip # wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
@ -16,14 +19,19 @@ sudo mv ~/Downloads/instant_client/ /opt/oracle/
sudo sh -c "echo /opt/oracle/instant_client > /etc/ld.so.conf.d/oracle-instantclient.conf" sudo sh -c "echo /opt/oracle/instant_client > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig sudo ldconfig
apti php-dev php-pear build-essential libaio1 default-jdk sudo apt install -y --autoremove \
php-dev \
php-pear \
build-essential \
libaio1 \
default-jdk
sudo pecl channel-update pecl.php.net sudo pecl channel-update pecl.php.net
#sudo pecl install oci8 # php8 sudo pecl install oci8 # php8
sudo pecl install oci8-2.2.0 # php7 #sudo pecl install oci8-2.2.0 # php7
#sh -c "echo '; priority=10' > /etc/php/7.4/mods-available/oci8.ini" #sh -c "echo '; priority=10' > /etc/php/7.4/mods-available/oci8.ini"
sudo sh -c "echo 'extension=oci8.so' >> /etc/php/7.4/mods-available/oci8.ini" # sudo sh -c "echo 'extension=oci8.so' >> /etc/php/7.4/mods-available/oci8.ini"
sudo chmod 0644 /etc/php/7.4/mods-available/oci8.ini # sudo chmod 0644 /etc/php/7.4/mods-available/oci8.ini
sudo phpenmod oci8 sudo phpenmod oci8
php -i | grep oci8 php -i | grep oci8
@ -36,4 +44,4 @@ php -i | grep oci8
# https://pecl.php.net/package/oci8 # https://pecl.php.net/package/oci8
sudo pecl install oci8-2.2.0 #sudo pecl install oci8-2.2.0

14
install/800-mariadb.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
echo
echo "==============================================="
echo "Installing mariadb..."
echo "==============================================="
echo
installed() {
command -v "$1" >/dev/null 2>&1
}
sudo apt install -y --autoremove mariadb-server mariadb-client
sudo mysql_secure_installation
installed "php" && sudo apt install -y --autoremove php-mysql phpmyadmin

View File

@ -1,8 +0,0 @@
#!/bin/bash
. "../src/01-common.sh" || exit 5
title "Installing mariadb..."
apti mariadb-server mariadb-client
sudo mysql_secure_installation
installed "php" && apti php-mysql phpmyadmin
installed "mysql" && success "mariadb installed!"