Where to place php.ini (zlib compression) ??

Discussion in 'WordPress' started by Romson, Sep 10, 2010.

  1. #1
    I have created a php.ini file with "zlib.output_compression = On" and placed it in the root directory of my wordpress site. Where else do i have to place it exactly for it to work good?
     
    Romson, Sep 10, 2010 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    In theory it should work where it is but sometimes the webhost will prevent anyone from using their own php.ini files. Probably best to raise a ticket with them to check.
     
    mcfox, Sep 10, 2010 IP
  3. Romson

    Romson Active Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I allready did. They told me to place it in the root directory and every sub folder it should count for. I have now placed it in the root directory and in the wp-content folder, but i have no idea if it shoud go in any other folder.
     
    Romson, Sep 10, 2010 IP
  4. Blue Star Ent.

    Blue Star Ent. Well-Known Member

    Messages:
    1,989
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Leaving the php.ini on your host without adjustment can result in a security weakness. If it can be read publicly, it can reveal some things to the world you probably do not want them to know. LINK


    For customizing the php.ini file, this page can help. LINK
     
    Blue Star Ent., Sep 17, 2010 IP
  5. davidfletcher

    davidfletcher Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ometimes the webhost will prevent anyone from using their own php
     
    davidfletcher, Sep 17, 2010 IP
  6. Romson

    Romson Active Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Thanks for the link m8.
     
    Romson, Sep 18, 2010 IP
    Blue Star Ent. likes this.