Step 1: Log in to your DirectAdmin Control Panel.
Step 2: From the DirectAdmin Dashboard, scroll down to the Extra Features section and click Select PHP Version.
Step 3: Under Account PHP Settings, click the PHP Version dropdown and select the PHP version you want to use.
Step 4: After selecting your preferred PHP Version from the dropdown menu, click Apply to activate the new version.
Step 5: Confirm that the selected PHP version now shows (current). This means the PHP version has been changed successfully.