Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Computing Systems

Computing Systems

Informatics Computing Staff jottings

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

OSSL7Ubuntu Jammy
Python2.73.10
PHP5.48.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

1 replies to “sweb.inf.ed.ac.uk upgrade”

  1. neilb says:

    The upgrade has now happened, and the test URLs above will now give security errors/warnings if you try to use them.

    Neil

Leave a reply to neilb

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel