Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    12

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

    (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. #2
    Member
    Join Date
    Jul 2009
    Posts
    67

    Default

    Try to load the following to httpd.conf under AddType text/html .shtml.

    AddType application/x-httpd-php-source .phps
    suPHP_AddHandler application/x-httpd-php-source (if you use suPHP)

    and then restart apache.

    http://forums.cpanel.net/f5/applicat...ad-135305.html
    Last edited by radeonpower; 06-22-2010 at 10:13 AM.

Similar Threads & Tags
Similar threads

  1. php source code is downloaded and not parsed by server
    By walterdevos in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-02-2011, 12:26 PM
  2. ziro size downloaded mysql backup file
    By hajagha in forum Data Protection
    Replies: 5
    Last Post: 09-16-2009, 10:19 AM
  3. phps not showing the source
    By internetfab in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-31-2008, 12:02 PM
  4. downloaded a file with wget
    By Gaming-Heaven in forum Database Discussions
    Replies: 7
    Last Post: 01-24-2007, 06:30 PM
  5. Allowing a file to be downloaded from site
    By Roland Deschain in forum Security
    Replies: 3
    Last Post: 10-12-2004, 04:24 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube