IUSR File upload limitation??

Posted on 2007-10-05
Last Modified: 2012-06-21
I have a PHP script which uploads files to a writeable directory on the server. Lately we've been getting a filespace allocation error... this is what the host says.... surely this is not true and there is a work around on the server.

Due to limitations with Windows' quota management ,the IUSR account, which is used by scripts when creating files, has a hard limit of 50Mb. Once this is reached, no further files can be created using scripts

The solution at present is to connect to the site using FTP, and download those files to your local machine.

Next, delete the files from the server. Now upload those files back to where they were - this creates new copies owned by your user account and not the IUSR account, resetting the IUSR account's quota allowance

We are looking for a more streamlined solution to this with our MS partners; however, as I say, it's a fundamental flaw in the Windows quota systems, and not proving easy to resolve satisfactorily
Question by:phenixfilms
    LVL 15

    Expert Comment

    IUSR is a internet guest user account which any one can use to upload files. You can remove limitations but that will also also applied for every one who will use that account, so it could be a problem later.
    Best will be you will use a FTP account to upload files in website.
    LVL 1

    Author Comment

    Is there not a way to specify that the user running the php script (the server) is a different account? The script is run from the server, php is a server side script.
    LVL 15

    Accepted Solution

    If you have installed PHP on box then installation creates  a service and you can manage user account under which it operates from services.msc console from Log On tab of PHP' service.
    LVL 17

    Assisted Solution

    you could always increase the quota limit for the IUSR user account. It's in the Default Domain Security Policy.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now