sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo add-apt-repository ppa:ondrej/nginx-mainline -y
sudo apt-get update
sudo apt install php8.3-fpm php8.3-common php8.3-curl php8.3-cli php8.3-mysql php8.3-gd php8.3-xml php8.3-intl php-pear php8.3-dev php8.3-common php8.3-mbstring php8.3-zip php8.3-soap php8.3-bcmath php8.3-opcache php8.3-imagick php8.3-tidy php8.3-xmlrpc
sudo apt install nginx -y
Install Elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
sudo apt-get install apt-transport-https
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo nano /etc/elasticsearch/elasticsearch.yml
# Enable security features
xpack.security.enabled: false
Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer