AddHandler application/x-httpd-php .html breaks xampp access

Problems with the Linux version of XAMPP, questions, comments, and anything related.

AddHandler application/x-httpd-php .html breaks xampp access

Postby bigpcman » 12. January 2010 02:50

Solved - I had to add the following directive right before the addhandler directive in the apache httpd.conf file.

edit: I guess the "handler" directive should not be used at all according to these directions:

For web servers using PHP as apache module use:

AddType application/x-httpd-php .html

For web servers running PHP as CGI use:

AddHandler application/x-httpd-php .html

Everything works fine with just the "type" directive.

Code: Select all
AddType application/x-httpd-php .html

Xampp 1.7.3a
After many hours of investigation I have finally tracked down the "unable to access" xampp directory problem (xampp login webpage).

I have the following directive in my apache httpd.conf file:

Code: Select all
AddHandler application/x-httpd-php .html

I need this to get a "php comment script" to run within my web pages.

When this directive is present the xampp login process will not run. Why I don't know.

Any ideas out there?

edit: The "AddHandler application/x-httpd-php .html" works fine in 1.7.1.

edit2: I tried several other variations on the addhandler directive, none worked.

Code: Select all
My web page worked / xampp page failed

AddHandler x-httpd-php5 .php .htm .html
AddHandler x-httpd-php .php .htm .html
AddHandler x-httpd-php .htm .html
AddHandler x-httpd-php5 .htm .html

addhandler application/x-httpd-php .php  .htm .html
addhandler application/x-httpd-php .php .html

<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php

Code: Select all
xampp page worked / my web page failed

AddHandler php5-script php
AddType text/html php

addhandler server-parsed .php .html

AddHandler php-script php
AddType text/html php

Posts: 39
Joined: 11. January 2009 15:52

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests