Quick way to install php modules.

Doing each line individually is a pain. Here is a handy shortcut.

Start with the usual apt install php8.x- Then include each module name separate by a comma within braces like this.

apt install php8.3-{common,curl,fpm,gd}

Here is my bookmarked version of all the ones I install on a fresh server.
apt install php8.3-{bcmath,cli,common,curl,fpm,gd,igbinary,intl,mbstring,mysql,opcache,redis,readline,xml}

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.