Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For Debian
- curl -fsSL https://packages.sury.org/php/apt.gpg -o /etc/apt/keyrings/php.gpg
- # For Ubuntu
- apt install software-properties-common -y
- add-apt-repository ppa:ondrej/php
- apt update
- apt upgrade -y
- // To install
- version=8.2
- apt install libapache2-mod-php$version
- apt install php$version-amqp \
- php$version-apcu \
- php$version-ast \
- php$version-bcmath \
- php$version-bz2 \
- php$version-calendar \
- php$version-cgi \
- php$version-cli \
- php$version-common \
- php$version-ctype \
- php$version-curl \
- php$version-dba \
- php$version-dev \
- php$version-dom \
- php$version-ds \
- php$version-enchant \
- php$version-excimer \
- php$version-exif \
- php$version-ffi \
- php$version-fileinfo \
- php$version-fpm \
- php$version-ftp \
- php$version-gd \
- php$version-gearman \
- php$version-gettext \
- php$version-gmp \
- php$version-gnupg \
- php$version-grpc \
- php$version-http \
- php$version-iconv \
- php$version-igbinary \
- php$version-intl \
- php$version-imagick \
- php$version-imap \
- php$version-interbase \
- php$version-intl \
- php$version-ldap \
- php$version-mailparse \
- php$version-maxminddb \
- php$version-mbstring \
- php$version-mcrypt \
- php$version-memcache \
- php$version-memcached \
- php$version-mongodb \
- php$version-msgpack \
- php$version-mysql \
- php$version-mysqli \
- php$version-mysqlnd \
- php$version-oauth \
- php$version-opcache \
- php$version-pcov \
- php$version-pdo \
- php$version-pdo-dblib \
- php$version-pdo-firebird \
- php$version-pdo-mysql \
- php$version-pdo-pgsql \
- php$version-pdo-sqlite \
- php$version-pgsql \
- php$version-phalcon \
- php$version-phar \
- php$version-phpdbg \
- php$version-posix \
- php$version-protobuf \
- php$version-ps \
- php$version-pspell \
- php$version-raphf \
- php$version-rdkafka \
- php$version-readline \
- php$version-redis \
- php$version-rrd \
- php$version-shmop \
- php$version-simplexml \
- php$version-smbclient \
- php$version-snmp \
- php$version-soap \
- php$version-sockets \
- php$version-sqlite3 \
- php$version-ssh2 \
- php$version-stomp \
- php$version-sybase \
- php$version-sysvmsg \
- php$version-sysvsem \
- php$version-sysvshm \
- php$version-tidy \
- php$version-tokenizer \
- php$version-uopz \
- php$version-uploadprogress \
- php$version-uuid \
- php$version-xdebug \
- php$version-xml \
- php$version-xmlreader \
- php$version-xmlrpc \
- php$version-xmlwriter \
- php$version-xsl \
- php$version-yaml \
- php$version-zip \
- php$version-zmq \
- php$version-zstd -y
- # To use a another php version (Replace VERSION)
- /usr/bin/php$version
- ## Or
- ln -fs /usr/bin/php$version /usr/bin/php
- // To remove
- apt purge php$version* -y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement