« Previous Next »

Not Answered Thread: Permission problems on Wordpress Uploads on IIS 7

Last post 09-03-2009 9:15 PM by stephen.mora. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 06-17-2009, 2:25 AM

    • nobrainr
    • Not Ranked
    • Joined on 06-17-2009, 5:59 AM
    • Posts 2

    Permission problems on Wordpress Uploads on IIS 7

    I'm a noob on IIS. But I've been looking everywhere for a solution but nothing works. The following mentions 2 problems. I think I've already fixed the first one but the second one is the key issue.

    I have Server 2008 x64 Virtual Machine / IIS 7 / Wordpress 2.8 / MySQL NTS / PHP

    Everything works fine except media uploads. When I click upload using internet explorer, the blogging platform alerts me that I have a problem:

    Unable to create directory C:\inetpub\wwwroot\blog/wp-content/uploads/2009/06. Is its parent directory writable by the server?
     
    To fix this problem, I allowed NETWORK SERVICE to have access to the uploads folder and I'm able to get as far as writing the folders and the file (*upload path*/2009/06/test.jpg)
     
    When I look at the permissions on test.jpg, IIS_IUSRS does not have read access. I can simply change that manually and see the picture on the site.
     
    But how can I get NETWORK SERVICE to write test.jpg with IIS_IUSRS permissions set automatically to read? I thought if my uploads folder had IIS_IUSRS permissions set, it would propagate the necessary credentials to the nested folders.
     
    Thanks in advance.
  • 06-17-2009, 7:24 AM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    Hi,

    Are you allowing the NTFS permissions on the root folder to propagate to sub-folders ?

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 06-18-2009, 2:20 PM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    Thanks for very fast reply!
  • 08-30-2009, 5:05 PM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    OK I have the same prolem and scenrio as you only mine is a physical server with 2008 standard, in any case I have the latest wordpress and using php etc.. I cant seem to write to the uploads folder.  I tried allowing NETWORK SERVICE access to the uploads folder but nothing.  What were the exact permission that yuo gave that account access?  was it just on uploads of the whole wp-content folder?  everything else works flawlessly.  Thank you in afvance. 

  • 08-30-2009, 9:16 PM In reply to

    • nobrainr
    • Not Ranked
    • Joined on 06-17-2009, 5:59 AM
    • Posts 2

    Re: Permission problems on Wordpress Uploads on IIS 7

    Hate to say this on an IIS site but I scrapped that whole thing, added the Hyper-V role, installed Ubuntu Server as a virtual machine, turned on LAMP, configured Apache, configured MySQL, then installed Wordpress on that. Had no problems after that. CHMOD seems a lot more straightforward than NTFS permissions IMO.
  • 08-31-2009, 1:26 AM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    I hear ya, and thanks for the quick reply. None the less I am not very abitious regrading this project, to make a change,  Its a side thing on this server, you know an if I can thing and learning experince.  I do apprciate the imput, but I think I  will hold out  until I find a solution or bust heheheh. I do agree in regards to PHP and Wordpress it was more developed to cater to the linux community, NTFS is a different animal, I just need to find the right formula.. we will see, thanks again.. : )

  • 09-02-2009, 11:54 PM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    On IIS 7 grant the permissions you want on the directory to the IIS_IUSRS group. For Wordpress give the group write permission to the directory. I run many wp sites on IIS and this has not been an issue for me. good luck.
  • 09-03-2009, 2:30 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 664

    Re: Permission problems on Wordpress Uploads on IIS 7

    Also check if fastcgi.impersonate is set 1 in php.ini and what account is used for IIS anonymous authentication. It may happen that the IIS anonymous authentication is configured to use IUSR account and if PHP impersonates that user it will not have write permissions. You can either grant write permissions to that user or configure the anonymous authentication to use application pool identity, e.g.:

    <authentication>
         <anonymousAuthentication enabled="true" userName="" />
    </authentication>

    http://ruslany.net
  • 09-03-2009, 9:15 PM In reply to

    Re: Permission problems on Wordpress Uploads on IIS 7

    thank you for the responces.. I will look into them.. I had found quick fix, but am checking the security around it, basically one said to just give the everyone group write access and it will work the IIS_IUSERS remain read and execute only..

    but this sounds logical, I will rethink my setup.. thanks..

Page 1 of 1 (9 items)
Microsoft Communities