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!

.phps as x-httpd-php-source rather than downloaded file?

Discussion in 'Workarounds and Optimization' started by yosofun, Jun 21, 2010.

  1. yosofun

    yosofun Member

    Joined:
    Dec 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    (I changed Apache Config > PHP/SuExec Config from suphp to dso to be able to run apache modules.)

    I am trying to get .phps to load as color-coded php source files.

    Here is what I've tried:

    AddType application/x-httpd-php-source .phps in the <IfModules ... AddType's section

    and

    <FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
    </FilesMatch>

    (as described in PHP: Apache 2.x on Unix systems - Manual)

    I am still unable to get .phps to load as a color-coded php source webpage.

    Instead, a file download occurs. Please help!
     
  2. radeonpower

    radeonpower Well-Known Member

    Joined:
    Jul 23, 2009
    Messages:
    129
    Likes Received:
    1
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    #2 radeonpower, Jun 22, 2010
    Last edited: Jun 22, 2010
Loading...

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