Set the version of PHP to run in some directory
If more than one version of PHP is installed on your system and either CGI or fCGId is used to run PHP scripts in some virtual server, it can be configured to run a different PHP version on a per-directory basis. This is most useful when running PHP applications that only support specific versions, like an old script that only runs under version 4.
To set a PHP directory, the --domain
flag must be used to specify the directory, --dir
to set the path (like horde
or /home/domain/public_html/horde
), and --version
to set the version number. At the time of writing, only versions 4 and 5 are supported.
Command Line Help
virtualmin set-php-directory --domain domain.name --dir directory|url-path|"." --version num