The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add .php3 as a PHP AddType extension?

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

Tags:
  1. SSy

    SSy Member

    Joined:
    May 10, 2016
    Messages:
    24
    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:
    37,064
    Likes Received:
    1,288
    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.
     
    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