• Sign in / Join

Login

Forgot your password?
Do not have an account ?Register here
X

Register

Have an account?Login here
X
  • Home
  • Blog
  • Image Gallery
  • News Archive
    • Hardware News
    • Gaming News
    • Affiliate News
Trending now

The Reason Steam Frame Will Clobber Meta

800,000 Views on YouTube channel

New time for podcast

Xbox Starts FIre; Complains About Heat |…

FSR 4.1 Black Flag Resynced | Driver…

The Steam Leveling Trick Nobody Knows

Xbox layoffs (PARODY) | The real reason…

Assassin’s Creed Black Flag Remastered completely crashes…

Xbox layoffs, Sony backpedals, Valve cashes in…

Budget Mic Earns Sweet Streamer Money? |…

OCmodshop.com

  • Hardware
    • Audio
    • Cases
    • Coolers
    • Gadgets
    • Home Theater
    • Input Devices
    • Laptops
    • Memory (RAM)
    • Motherboards
    • Networking
    • Power Supplies
    • Processors (CPU)
    • Storage
    • Video Cards
  • Gaming
    • Gaming Accessories
    • Game Walkthroughs
    • PC Games
    • Xbox
    • Playstation
    • Nintendo
  • Articles
    • How-To Guides
    • Case Mod Projects
    • Software
    • Event Coverage
    • Movies
    • Interviews
  • Podcast
FacebookTwitterYoutubeTwitchSteam
How-To Guides

Full-size photos not working on WordPress with IIS7

by Alan McCloskeyApril 3, 2009June 24, 201410
Share0

I thought I had all the weird caveats figured out when hosting WordPress on IIS7.  It looks like there’s another one.

Apparently by default you cannot view full-size images uploaded through the WordPress interface.  You can show the thumbnails, but not the full-size version.  The full-size version is completely blank.

This can also be demonstrated if you have a gallery plugin installed.  We could easily upload images, and the thumbnails displayed, but whenever I tried to open the full-size image, I would get stuck at a “loading” screen.

I logged into the server to verify that one of the offending files actually exists, and it did.  I tried to open the file and received an “Access Denied” message.  Apparently there is a permissions issue.wp-content_properties

In addition to the other permissions you have to set in Server 2008 to work properly (especially if you want to update your themes and update plugins through the interface), you also have to make sure that IIS_IUSRS has read access to the directories. I recommend giving read permission to the entire wp-content folder so you never have to run into this issue again.

After I did this, all of my full-size images appeared, but newly uploaded files still had the permission issue.  It looks like WordPress doesn’t have permissions to the original file it is thumbnailing.

To squash this, you need to make sure the IIS_IUSRS user has full access to the upload path that PHP is using.  Look at your PHP.INI to see where the upload_tmp_dir is pointing to.  If it’s not specified then you’ll have to create one and grant the permissions (I have no idea what the system default is supposed to be).

So, in the Security tab of wp-content, make sure that

  • The Users group has read access (and modify access if you want to update config files through the WP interface)
  • IIS_IUSRS has read access (you may have to add this group
  • IIS_IUSRS may need full access to your PHP uploads directory

If none of these do not work, then you can try to delete and recreate your wp-content directory.  This is what eventually worked for me.  I moved this blog over from a Server 2003 to Server 2008 installation, and apparently permissions can get screwed up.  Move your wp-content directory to another location, then recreate the wp-content folder in your blog.  COPY your files back over, and then flush your browser cache, restart your browser and try again.  This is what eventually worked.

I’ve been knocking down all the obstacles of running WordPress on a Windows server one by one.  I even have features that even Linux server cannot use… like the ability to use output caching AND URL rewrites at the same time… and the output caching is much more granular than Apache’s mod-rewrite (usually need to disable it on the admin and gallery directories).

There are a few other little caveats that I’m working on… like a MySQL error whenever saving a post with the Similar Posts plugin.  In all fairness, this plugin has not been updated to support WP 2.7, so it isn’t necessarially the fault of Windows.

Post Views: 1
IISWindows ServerWordpressShare0
previous post
Availability of Blu-ray Media
next post
Fast and Furious Movie Review
Alan McCloskey
Alan is a web architect, stand-up comedian, and your friendly neighborhood Grammar Nerd. You can stalk him on the Interwebs via Facebook and follow him on X @ocmodshop.

Related posts

How to set up Pretty Permalinks on IIS7

Alan McCloskeyMarch 21, 2009June 24, 2014

Exchange is a pain

Alan McCloskeyOctober 20, 2008August 25, 2014

WordPress vs .NET app?

Alan McCloskeyDecember 12, 2008August 25, 2014

1 comment

Jean December 21, 2010 at 3:05 am

Just finished wrestling with this one and finally have full size photos working! Thanks for the tips. With this and some other stuff i found I was able to piece together the puzzle. My contribution – the default directory that PHP uses for uploads in C:WindowsTemp. Open that up to IUSR and you are all set. In the meantime, if anyone could list the correct IIS permissions for wordpress, wp-content and uploads, it would be great! I opened all sorts of permissions doors and windows to try and get this working and now need to batten down the hatches again. Confusing! Thanks all!

Comments are closed.

Recent Posts

  • The Reason Steam Frame Will Clobber Meta
  • 800,000 Views on YouTube channel
  • New time for podcast
  • Xbox Starts FIre; Complains About Heat | OCmodcast Episode 10
  • FSR 4.1 Black Flag Resynced | Driver Update Disaster
OCmodshop.com
FacebookTwitterYoutubeTwitchSteam
@2026 - ocmodshop.com. All Right Reserved.
  • About Us
  • Terms of Use / Privacy Policy
  • Copyrights
  • Our Rating System
  • Publish an Article on OCmodshop
  • Contest Rules
OCmodshop.com
FacebookTwitterYoutubeTwitchSteam
  • Hardware
    • Audio
    • Cases
    • Coolers
    • Gadgets
    • Home Theater
    • Input Devices
    • Laptops
    • Memory (RAM)
    • Motherboards
    • Networking
    • Power Supplies
    • Processors (CPU)
    • Storage
    • Video Cards
  • Gaming
    • Gaming Accessories
    • Game Walkthroughs
    • PC Games
    • Xbox
    • Playstation
    • Nintendo
  • Articles
    • How-To Guides
    • Case Mod Projects
    • Software
    • Event Coverage
    • Movies
    • Interviews
  • Podcast
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}