How to Install PHP 5.3, 5.4, and 5.5 on Modern Debian and Ubuntu Systems

PHP5 support on Debian 12 and Ubuntu 22.04

Although PHP 5.3, 5.4, and 5.5 have long since reached their end-of-life, some legacy applications may still depend on them. Installing these outdated versions on modern systems like Debian 10/11/12 or Ubuntu 20.04/22.04 requires manually building the software …