Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure if this helps anyone else, but I found this forum: http://www.webmasterworld.com/apache/3280354.htm which said this:

    The following two lines are an incorrect mixture of AddHandler and AddType syntax.

    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4

    The php team produced a “hack” when first installing php on Apache, and we’ve lived with it ever since in the sense of “bad code” posted all over the Web. The correct notation (although it may not work either) is:

    AddType application/x-httpd-php5 .php
    AddType application/x-httpd-php .php4

    #
    AddHandler server-parsed .php
    AddHandler server-parsed .php4

    You may need only one of the two ‘sets’ above, and I’m not sure which. The “AddHandler” set is the technically-correct way to do it, but as I said, the php team used a “hack” and you may need to use the “AddType” set instead -or in addition to- the AddHandler set.

    The bolded set worked for me…

    Could it be that GoDaddy’s PHP5 is currently busted? I too experienced the 500 Internal Server Error when I went to my homepage, and I found that commenting out the two AddHandler lines in my .htaccess makes wordpress work. My Mediawiki installation, on the other hand, which requires PHP5, doesn’t work either way.

Viewing 2 replies - 1 through 2 (of 2 total)