Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add .php3 as a PHP AddType extension?

Discussion in 'CloudLinux' started by SSy, Mar 29, 2017.

Tags:
  1. SSy

    SSy Active Member

    Joined:
    May 10, 2016
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I had this running fine on EasyApache3 but upgraded cPanel and now my .php3 files are being shown as text source to visitors.

    How do I make it so Apache parses those as PHP files?

    I am using CloudLinux as well and the sites are using the selector.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,373
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Since you are using PHP selector, you should be able to add an entry like this to the .htaccess file within the document root of the website:

    Code:
    <IfModule mime_module>
    AddType application/x-httpd-php70 .php3
    </IfModule> 
    Ensure to replace "php70" with the version of PHP enabled in the directory:

    Different PHP versions per directories using PHP Selector

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    thaingoc likes this.
  3. thaingoc

    thaingoc Registered

    Joined:
    Mar 30, 2017
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    vietnamese
    cPanel Access Level:
    Root Administrator
    cPanelMichael likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice