When you have configured a remote server in Aegir (6.x-2.0) it appears that provision does not set the correct group permissions to the /private/temp folder. This problem occurs when you want to clone or migrate an existing drupal website on the remote webserver.
When the clone or migration process has been finished you cannot upload new media elements since the private/temp folder is not writable for the 'www-data' user. When you navigate to 'Configuration' > 'Media' > 'File system' you will see the following message: "The directory sites/your_website_ext/private/temp exists but is not writable and could not be made writable.". This problem only occurs on a remote webserver.
After some investigation I found out that the system did not set the group permissions on the /private/temp folder.
drwxrwsr-x 4 aegir www-data 4096 Jan 20 11:6 files
drwxrwsr-x 4 aegir aegir 4096 Jan 20 11:6 temp
The group for the temp folder should be 'www-data' but is 'aegir'. This is pretty easy to solve using the bash command chown
chown aegir:www-data temp
When you have to maintain a lot of websites this is not the ideal workaround. To solve this problem I have created a patch that adds an extra command to the deployment that changes the group permissions to aegir:www-data automatically.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | temp-folder-not-writable-on-remote-server-2177315.patch | 938 bytes | patrickwatzeels |
Comments
Comment #1
patrickwatzeels commentedComment #2
tvl commentedSame issue here, on Aegir 2.0, Redhat, apache 2.2.15, php 5.3.3
Patch #1 applied manually and works perfect.
Many thanks
Comment #4
helmo commentedLooks good, thanks :)