Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have installed ISPConfig 3 on an Ubuntu VPS and configured it for Apache + PHP via FastCGI and suexec. I am able to upload PHP apps (e.g. Wordpress) and run them normally w/ suexec.

However, for some reason the PHP scripts cannot write data to disk. For instance, trying to upgrade a plugin via Wordpress' web interface causes it to fail with the error "Could not create directory /path/to/wp-content/upgrade/plugin.tmp."

Trying to upload media and other assets also fails via the web.

I've checked owner/group on the directory structure and it looks good. The suExec log also seems to be normal and I don't see any indicative errors in the web server logs.

I can also confirm that changing the owner/group on the directories does result in the expected error in suexec.log.

Additionally, I have the directory permissions set to u=rw,g=r,o= and I've also tried setting g=rw.

None of this results in my scripts being able to write to the directories. What am I doing wrong?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I figured out the problem.

Turns out, ISPConfig sets a disk quota based on the configuration parameters specified for each user/client account. I had been manually migrating content over from another server, which had several large files contained within the user's directory, thus putting them over quota.

I deleted those files, brought the used space back under-quota, and everything started working perfectly.

FYI, Webmin turned out to be a marvelous tool for solving this ;-)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.