(I changed Apache Config > PHP/SuExec Config from suphp to dso to be able to run apache modules... in a standard cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9 / CENTOS 5.5 x86_64 standard server)

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

Here is what I've tried vi editing in httpd.conf:

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 http://www.php.net/manual/en/install.unix.apache2.php)

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

Instead, a file download occurs. Please help!

link|improve this question

31% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.