Every day, new updates of software releasing so do the PHP versions are also getting updated. Security practitioners always recommend using the latest PHP versions for better security and performance.
1. First, to login into the DirectAdmin control panel visit: https://server-hostname:2222
2. Find the option PHP Version, which is just below the real-time resources usage panel (Disk, Bandwidth, Email).
3. To change the PHP Version → Click on Change.
4. Select the PHP Version from drop-down → Click on SAVE.
Congratulations! You have successfully changed the PHP version in DirectAdmin.