Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

adding handler for phtml

$
0
0

the site i am being handed has pages with phtml and ptpl extensions.  php files can be viewed but not phtml or ptpl files.   The original error :

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

I know I need to add a handler to the applicationhost.config file, but I must be getting the syntax wrong as I went from an error page to a blank page.  Here's what I put:

 <handlers accessPolicy="Read, Script">
                <add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />
              <add name="PHTML via FastCGI" path="*.phtml" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />
              <add name="PTPL via FastCGI" path="*.ptpl" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />

and then

 <location path="htdocs">
        <system.webServer>
            <handlers>
              <add name="PHP via FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />
              <add name="PHTML2" path="*.phtml" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />
              <add name="PTPL2 via FastCGI" path="*.ptpl" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.3\php-cgi.exe" resourceType="Either" />
            </handlers>
        </system.webServer>

thanks in advance for any help


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>