Announcement

Collapse
No announcement yet.

Enable Gzip on IIS5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enable Gzip on IIS5

    Hi I'v got a W2K Server with IIS5 and php 4.0.6.
    The board works fine but after doing Leknor Gzip test i result that gzip don't work often if enabled in control pannel.
    How I can configure the compression to work ?
    Thx
    Renato

  • #2
    I have seen an isapi filter called Compression on IIS 5, but never used it, this may help you:

    http://www.microsoft.com/technet/tre...y/httpcomp.asp
    http://www.mcseboard.de/images/buttons/lastpost.gif www.MCSEboard.de
    German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

    Comment


    • #3
      Hi Thomas,
      I make the modify wrote in that aticle but it doesn't seems to increase performance of the board
      Do you know where i can test or how i can view if gzip compression is working ?
      Thx
      Renato

      Comment


      • #4
        Well, in fact the performance of the board/server should decrease, bandwith/traffic should get lower with compression on.
        Check the server load (via taskmanager e.g.).

        Sorry, I only know leknor's page which I never tried with an IIS driven site...
        -Tom
        http://www.mcseboard.de/images/buttons/lastpost.gif www.MCSEboard.de
        German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

        Comment


        • #5
          Hi Thomas ,
          finaly I make gzip working by IIS like you suggest me

          Now I'v got a little problem, when the board is loaded everithing works, when I refresh (F5) it, the page doesn't display the logo and gives some error.
          Do you know how I can solve this ?
          Thx

          p.s. you can test it http://www.swzone.it/forum/index.php

          p.p.s if i use the link of the board to move throug section it works fine
          Last edited by Rostor; Wed 12th Sep '01, 5:41am.
          Renato

          Comment


          • #6
            Sorry, no idea. I don't use gzip since my ISP doesn't support it (yet).

            You may have a look here:
            http://vbulletin.com/forum/showthrea...ght=crash+gzip

            Tante saluti (?)
            -Tom
            http://www.mcseboard.de/images/buttons/lastpost.gif www.MCSEboard.de
            German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

            Comment


            • #7
              Thx Again, I ask to vb support

              Tanti Saluti

              Ciao
              Renato

              Comment


              • #8
                Originally posted by Rostor
                Hi Thomas ,
                finaly I make gzip working by IIS like you suggest me

                Now I'v got a little problem, when the board is loaded everithing works, when I refresh (F5) it, the page doesn't display the logo and gives some error.
                Do you know how I can solve this ?
                Thx

                p.s. you can test it http://www.swzone.it/forum/index.php

                p.p.s if i use the link of the board to move throug section it works fine
                How did ya do it?!?! I tried adding PHP to the list of files it compressed and all the client gets is a bunch of garbled output

                Comment


                • #9
                  Hi DrunkenStud,

                  look here:
                  http://www.vbulletin.com/forum/showt...5&pagenumber=2

                  Bye
                  Renato

                  Comment


                  • #10
                    hehe ok thanks ..

                    So basically in review of all the things you did were,

                    1. Enable the compression service in the Internet Services Manager master properties.

                    2. Use the
                    Code:
                    cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "php"
                    
                    cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "php"
                    
                    IISreset.exe /restart
                    3. Which would in turn output just garbled crap (in my case at least)

                    4. Change
                    Code:
                     @header("Content-type: text/html"); 
                    
                    TO
                    
                    @header("Content-type: gzip");
                    And it will output NORMAL pages again

                    Does that sound correct?

                    Comment


                    • #11
                      Originally posted by DrunkenStud
                      hehe ok thanks ..
                      2. Use the
                      Code:
                      cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "php"
                      
                      cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "php"
                      
                      IISreset.exe /restart
                      NONONO!

                      Output from PHP files are NOT static. They are, in IIS terminology, called application files. That is, they produce dynamic output.

                      What you need is...
                      Code:
                      cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "dll" "exe" "asp" "php" 
                      
                      cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "dll" "exe" "asp" "php"
                      But you should rather use the gzip module in PHP 4.0.6 than IIS. It's more stable, and you get less "garbling" with it. PM me if you need help with this.

                      Regards
                      - TommyBALL
                      MCP / MCSA / MCSE / MCT
                      A few eggs short of a complete easter basket

                      vB 4.0.5+ CMS (No hacks), Windows Server 2008 R2 Ent, IIS 7.5, PHP 5.3+ (FastCGI), WinCache, Memcached, MySQL 5.1.45

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X