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.

Apache 2.2, PHP 5, SuPHP, forcetype

Discussion in 'EasyApache' started by mike25, Jan 16, 2008.

  1. mike25

    mike25 Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Raleigh NC, USA
    Forcetype does not appear to run correctly with Apache 2.2 and SuPHP. Most information suggests changing

    ForceType application/x-httpd-php

    To Just

    ForceType x-httpd-php

    This does not work for me and php code is being displayed as text instead of being parsed by apache.

    Has anyone else run into this problem?
     
  2. mike25

    mike25 Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Raleigh NC, USA
    bump :) does anyone have any experiance with this?
     
  3. gundamz

    gundamz Well-Known Member

    Joined:
    Mar 27, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    I run into similar problem too.

    doesn't work.

    Any solution for this?
     
  4. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    (posting as no solution is mentioned in muliple similar old threads)

    Had same issue today and found that the following works:

    <Files filename>
    ForceType application/x-httpd-php5
    </Files>
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Other than the notes you posted being wrong for how you would go about
    using "forcetype" with SuPHP, a much larger question is WHY?

    Why would you want to "forcetype" files to php? ;)

    That's not only increases server loads and opens potential security issues
    but also can hurt your search engine rankings too!
     
Loading...

Share This Page