

PHP SWITCH INSTALL
In general, please copy/paste commands from our Perfect Server guides as these are always kept up to date, and commands shown here are for example purposes only!įinally, you should install php-fpm in the target version you want: Sudo apt-add-repository ppa:ondrej/php -y If you get an error claiming the appropriate PHP packages cannot be found, then you are on a really old version of our stacks which does not have the ondrej/php PPA added. Sudo apt install -y php7.4-cli php7.4-dev php7.4-pgsql php7.4-sqlite3 php7.4-gd php7.4-curl php7.4-memcached php7.4-imap php7.4-mysql php7.4-mbstring php7.4-xml php7.4-imagick php7.4-zip php7.4-bcmath php7.4-soap php7.4-intl php7.4-readline php7.4-common php7.4-pspell php7.4-tidy php7.4-xmlrpc php7.4-xsl php7.4-opcache php7.4-apcu For example say you want to use PHP7.4 you would go to the 7.4 guide and find the section titled Install PHP7.4 and common PHP packages - the command you are looking for would look something like:


Next, install the packages - the packages you want are listed on our Perfect Server stack pages. If it prompts you what to do with config files, usually you should just go with the default option and leave the current config as-is. First make sure your system is up to date: You need to make sure the correct packages are available on your system for the PHP version you want. Make sure packages for your target version of PHP are installed
PHP SWITCH UPDATE
Update your web server configuration to point to the correct PHP version.Update any configuration for that PHP version.Ensure the php packages for the version you want are installed.Upgrading or Downgrading PHP versions on a Webdock stack is essentially the same procedure.
