First, update and clean sources list:
apt-get update -yqq && apt-get install -y apt-utils
then install this dependencies:
apt-get update && apt-get install -y build-essential libpng-dev locales zip jpegoptim optipng pngquant gifsicle unzip zip git curl lua-zlib-dev libmemcached-dev wget
Install NodeJS 14.19.1
Download script from nodejs.org:
curl -sL https://deb.nodesource.com/setup_14.x -o setup_14.sh
run script:
sh ./setup_14.sh
and install nodejs
sudo apt-get install -y nodejs
Install NPM
How to install NodeJS and NPM to Ubuntu 20 and higher:
Download:
wget https://www.npmjs.com/install.sh | sh
Make executable:
chmod +x install.sh
Install:
./install.sh
Install Ionic 6
Before install Ionic, you must install NPM.
If NPM installed, intall Ionic:
npm i -g @ionic/cli
Install JAVA SDK
Run this commands:
apt-get update && apt-get install -y software-properties-common
apt-get update && apt-get install -y openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
Install PHP 8
Support ONLY PHP 8.x (in CGI and CLI mode). Before setup platform, you must configure your server for use PHP8 version in HTTP and console mode.
How to add PHP 8 to Ubuntu 20.xx:
sudo apt update
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
Press ENTER in process:
sudo add-apt-repository ppa:ondrej/php
Install PHP
sudo apt install php8.0
check installed version:
php -v
and install needed PHP extension (if your PHP version is 8.0.X only):
sudo apt install php8.0-mysql php8.0-zip php8.0-xml php8.0-dom php8.0-curl php8.0-common php-json php8.0-mbstring php-mysql php-curl
or install this extensions (if your PHP version is 8.1.X)
sudo apt install php8.1-mysql php8.1-zip php8.1-xml php8.1-dom php8.1-curl php8.1-common php-json php8.1-mbstring php-mysql php-curl