WordPress.org

Forums

IIS and PHP.ini trick disables Thumbnails (2 posts)

  1. tim254
    Member
    Posted 9 years ago #

    I got permalinks working in IIS 5 by putting a PHP.ini file in my root directory, with the following in it:

    cgi.fix_pathinfo = 1
    cgi.force_redirect = 0

    That's working great for permalinks, BUT it disables my ability to create thumbnails. If php.ini is in my root, I can't create thumbnails in WordPress RTF and if I use iimage browser, it says "Filetype not supported. Thumbnail not created." However, I can create thumbnails if I delete the php.ini file.

    Any ideas on how I can fix this (besides getting a new host)?

  2. tim254
    Member
    Posted 9 years ago #

    After hours of playing with this I figured out the solution, I'm using this in my PHP.INI file:

    cgi.fix_pathinfo = 1
    cgi.force_redirect = 0
    register_globals = On
    extension_dir = "./"
    extension=php_gd2.dll

    This not only fixes permalinks, but fixed my thumbnail creation AND my ability to run other PHP scripts.

Topic Closed

This topic has been closed to new replies.

About this Topic