DEV Community

Pradeep Kumar
Pradeep Kumar

Posted on

VirtualMin - Configuring Multiple PHP Versions

Ref: https://www.virtualmin.com/docs/server-components/configuring-multiple-php-versions/#on-rhel-alma-rocky-oracle-centos-stream-and-fedora-linux

For ubuntu:

sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php && apt-get update
Enter fullscreen mode Exit fullscreen mode
sudo apt-get install php8.1-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
Enter fullscreen mode Exit fullscreen mode

After installation, Login to VirtualMin > Select domain from dropdown > Under Web Configuration > Click on PHP Options > Choose PHP version from PHP Version dropdown.

Top comments (0)