Changes to PHP

The previous web server used PHP 5.3.3, the new web server currently uses PHP 8.1. This is a major jump and your PHP code may require changes to keep working.

Log in to web-login.inf.ethz.ch via ssh to run any of the commands below.

Static Code Analysis

You can perform a static code analysis of all PHP code in your ~/public_html directly by running the following command:

migrate_check_php

The report will report all compatibility issues and suggest a fix. Some can be automatically fixed. To do so tun

migrate_fix_php

once. Afterwards running migrate_check_php again will only report issues that require manual correction.

Error Log

Errors that occur when testing your PHP pages are written to /logs/error_log. This file is readable by all users. Use

tail -f /logs/error_log 

to watch out for errors as you test your PHP code.

Page URL: https://www.isg.inf.ethz.ch/bin/view/Main/NewsProjectsPersonalHomePageMigrationPhp
2024-04-26
© 2024 Eidgenössische Technische Hochschule Zürich