sweb.inf.ed.ac.uk upgrade
The sweb.inf.ed.ac.uk service is due to update dated from SL7 to Ubuntu Jammy. This provides version changes for many packages, the most notable being Python and PHP
OS | SL7 | Ubuntu Jammy |
Python | 2.7 | 3.10 |
PHP | 5.4 | 8.1 |
Any existing code you have that uses these are likely to need checked and fixed if they are to remain working.
A temporary version of sweb.inf.ed.ac.uk, but running Jammy is available for testing at:
https://arachneuj.inf.ed.ac.uk
Please give your pages a test, as we will be switching the live sweb.inf.ed.ac.uk to Jammy on Monday 10th of June. Note this test URL is only accessible to machine on the University network, including the VPN.
If you have errors with CGIs or PHP, the simplest thing to try is running them from the command line on a Jammy machine eg staff.login.inf.ed.ac.uk.
For example:
https://sweb.inf.ed.ac.uk/neilb/pytest.cgi – works
https://arachneuj.inf.ed.ac.uk/neilb/pytest.cgi – gives an error
Running the script from the command line shows:
neilb> ./pytest.cgi
File "./pytest.cgi", line 5
print "Content-type: text/plain"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Content-type: text/plain")?
So in this case just missing (). For python you may have some luck automatically fixing things like this with the “futurize” command. If you are are really stuck, use the computing support form to ask for assistance.
Neil
The upgrade has now happened, and the test URLs above will now give security errors/warnings if you try to use them.
Neil