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

homepages.inf.ed.ac.uk upgrade

The homepages.inf.ed.ac.uk web service is due to update dated from SL7 to Ubuntu Jammy (the same a normal DICE desktops and servers). This provides version changes for many packages, the most notable being Python and PHP

OSSL7Ubuntu Jammy
Python2.73.10
PHP7.38.1

Any existing code you have that uses these packages is likely to need checked and fixed if they are to remain working. Static HTML pages will be unaffected.

A temporary version of homepages.inf.ed.ac.uk, but running Jammy is available for testing at:

https://homepages-uj.inf.ed.ac.uk

Both the live site and the test site above serve the same content from your /public/homepages/UUN/ file space.

Please give your pages a test, as we will be switching the live homepages.inf.ed.ac.uk to Jammy on Wednesday 19th of June. Note this test URL is only accessible to machines 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://homepages.inf.ed.ac.uk/cgi/neilb/pytest.cgi – works

https://homepages-uj.inf.ed.ac.uk/cgi/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 the problem is some missing (), that are now mandatory for the Python print function. 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.

You may also be able to see the error via this CGI

https://homepages-uj.inf.ed.ac.uk/cgi/neilb/errorlogs

which is authenticated and will only show the most recent error log entries in the web server containing your UUN.

Neil

Leave a reply

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