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.

.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:
    1
    (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:
    18
    cPanel Access Level:
    Root Administrator
    #2 radeonpower, Jun 22, 2010
    Last edited: Jun 22, 2010

Share This Page