Enable custom PHP in cPanel server with PHP CGI. Using any of the above mentioned methods you can confirm the…