3

I access the web from an IP address like http://xx.xx.xx.xx/~cpaneluser. With this I'm able to access the html file but when I try to open a .php file it's shows Not Supported Error. Please help me to solve this issue.

Hear I have cPanel/WHM Both Access and it's hosted on the Amazon AWS EC2.

dferenc
  • 7,918
  • 12
  • 41
  • 49
Vatsal S.
  • 41
  • 1
  • 3

1 Answers1

18

A “Not Supported” message will show because PHP is not able to run under root using cPanel.

To allow scripts to run firstly install and enable suPHP, then set the PHP Handler to use suPHP and it should allow you to run .php scripts under temp URLs.

  1. Login to cPanel WHM and install suPHP (Choose EasyApache 4 from the menu then choose "customize" - In Apache Modules, search "mod_suphp" and then click 'Next' to provision the installation.

  2. Once suPHP has been installed you need to enable the PHP Handler to use it. Access “Software > MultiPHP Manager” in WHM as root. Click on PHP Handlers. Click on 'Edit' for the respective PHP version and select suPHP from the dropdown. (Usually set to CGI by default) Click on Apply.

  3. Now, try accessing the php file from the temp URL and it should work.

DigitalFlare
  • 191
  • 1
  • 5