So decided to be cute and spruce up some of the more popular error pages.

To my dismay I found that IIS doesn't like to play nice with PHP when I do this.

PHP simply becomes plain text. Which is needless to say... less than desirable.

Has anyone found a workaround / hack / fix / correct configuration for this annoyance?

Cheers'

    where are you setting the error pages options?

    You need to set the ISAPI filters to use phpisapi.dll and Home Directory tab to point .php to be the script engine.

    then you can set custom errors to pages you wrote for those purposes.

      i meant php4isapi.dll for php4 and in Home Directory use "Add" to add the *.php extension to be known as the Script Engine (its a check box.)

        Ok here is what I've done so far:

        • Under the IIS tab ISAPI Filters I've added a filter:
          name: *.php
          executable: W:\PHP\php4isapi.dll

          status: (green up arrow)
          priority: unknown (this worries me a tiny bit...)

        • Under the Home Directory, clicking the 'Configuration' button - brings up the App Configuration dialog.

          • I clicked 'Add'
            executable: W:\PHP\php4isapi.dll (I've tried php.exe as well...)
            extension: .php
          • All Verbs

          • Script Engine

          • Check that file exists

        • Pondered the Meaning of Life...42

        • Restarted the server for good measure

        • Waited...

        • Browsed site, pointed to a non-existant page... got 404.php as a text file...

        Any pointers on what I did wrong? :-)

        PS

        Thanks for helping out - its really appreciated.

          Haven't have much luck yet... still poking around with it.

          Setting up a second server to test with since I don't want to hose my primary one... unless its with a baseball bat :-)

          Cheers'

            Write a Reply...