install php 5 on debian 10 code example Example 1: install php debian 10 sudo apt update Example 2: install php debian 10 sudo apt -y install libapache2-mod-php