Skip to content

Instantly share code, notes, and snippets.

@luiseduardobraschi
Last active August 31, 2025 22:17
Show Gist options
  • Save luiseduardobraschi/fcbfab0b5c215c1685859380f100b7a6 to your computer and use it in GitHub Desktop.
Save luiseduardobraschi/fcbfab0b5c215c1685859380f100b7a6 to your computer and use it in GitHub Desktop.
Install PHP and most used libs.
# Fisrt, assign the version you want to install and press enter.
# Ex.: export version=8.3
export version=VERSION
# Second, use the following command to install PHP and most used libs.
sudo apt install php${version}-common php${version}-mysql php${version}-xml php${version}-xmlrpc php${version}-curl php${version}-gd php${version}-imagick php${version}-cli php${version}-dev php${version}-imap php${version}-mbstring php${version}-opcache php${version}-soap php${version}-zip php${version}-intl -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment