Any Luck - htacces or force parsing html as php w/ Godaddy

Discussion in 'Site & Server Administration' started by flyguy, Mar 3, 2006.

  1. #1
    I've been trying to work out a few solutions for a site that is hosted on a godaddy shared server. I haven't had any luck with force parsing the html pages as php or haven't had any luck creating a wrapper. Has anyone had any success or work arounds with godaddy?
     
    flyguy, Mar 3, 2006 IP
  2. flyguy

    flyguy Peon

    Messages:
    198
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I spent the first half of the day looking for a solution, the last half trying to create one. I know that there are others out there that host on godaddy servers and are looking for this so I would like to post my findings.

    In the .htaccess file I added the following lines.
    Note: I had to remove the SSI handler for the following 2 lines to work.

    
    RemoveHandler server-parsed html
    AddType application/x-httpd-fastphp .html
    Action application/x-httpd-fastphp /cgi-bin/php
    
    Code (markup):
    I hope it helps save someone a head ache and a day lost.
     
    flyguy, Mar 3, 2006 IP
  3. rlhanson

    rlhanson Peon

    Messages:
    25
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This also works on the godaddy hosting...

    AddHandler x-httpd-php .html .htm .cgi .php
     
    rlhanson, Jun 20, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I dunno where did u get that fastphp as handler.

    Anyway, I'd never recommend godaddy hosting other than sites built for fun.
     
    agnivo007, Jun 21, 2007 IP