Skip to content

Commit 7e64e53

Browse files
authored
Create install-php82-fpm-and-composer-on-ubuntu22.sh
1 parent dbf8d5a commit 7e64e53

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
sudo apt update -y && sudo apt upgrade -y
4+
sudo apt install software-properties-common -y
5+
6+
sudo add-apt-repository ppa:ondrej/php -y
7+
8+
# PHP 8.2.6 (cli)
9+
sudo apt install php8.2 -y
10+
php -v # PHP 8.2.6 (cli) (built: May 12 2023 06:24:00) (NTS)
11+
12+
# Composer version 2.5.5
13+
curl -sS https://getcomposer.org/installer | php
14+
chmod +x composer.phar
15+
16+
mv composer.phar /usr/local/bin/composer
17+
composer -V # Composer version 2.5.5 2023-03-21 11:50:05

0 commit comments

Comments
 (0)