University Systems help centre

Changing PHP and Python Versions

Both the PHP and Python versions running in webspace directories can be changed by adding the lines below to an .htaccess file in the directories who's PHP and/or Python version you wish to change:

SetEnv UVPYTHON_VERSION ##

SetENV UVPHP_VERSION ##

These commands will change the PHP and Python versions to the versions you specify, as denoted by ## variables above. See screenshot below for an example of what this would look like when changing to PHP 7.1 and Python 3.6:

 phppythonversionchange_1.png