Error: No space left on device - PHP, IIS, Win2K3
Today I went to upload on one of my client's sites and realized that the uploads were not working.
After looking at the directories and permissions to ensure that they were not deleted, I went back to see that the directories that were suppposed to be created with each upload where not being created.
I went to turn error reporting on the php script:
error_reporting(7);
this error appeared on the IIS 6, Windows 2k3 Box.
Warning: mkdir() [function.mkdir]: No space left on device in E:\Domains\www.domainname.com\html\upload_new.php on line 75
I checked and there was enough space left on the device. I moved the upload to different drive and that seemed to work. But no matter what I did on the upload directory permissions wise, I was still receiving the same error.
After going crazy for a while, I found a post online that could be very helpful in debugging if my post does not solve your problem.
It ended up being that the IUSER_XXXXX ran out of space for their disk quota and was not being allowed to write to the disk. There are a few ways that you can fix this, but I don't need quota's turned on for this machine and I don't care if they go over the quota, so I chose to just turn the enforcement off. You could easily delete files to go back under quota or raise the users quota.
You can change your quota rules by going to your volume or drive (e: in my case) and right clicking and selecting properties. There you can see a quota tab. There are a few options here (which I will not get into), but to fix the problem you can easily just click a checkbox which will stop the system from enforcing quota rules (it will stop disabling people if they go over the quota). Likewise, you can change your quota limitations on this screen.
If you find this useful, please digg me, link me, or click on a sponser for which you find legitimate interest.

Labels: disk, iis, limit, no space left on device, out, php, quota, space, user, win2k3