If you're using Centos as in your profile, then it should be SELinux preventing writing
I'm not an expert on SELinux, but according to
this, you need
Code:
chcon -R -t httpd_sys_content_t /usr/local/squirrelmail/
BTW for apache to work without problems you need the directories to have 755 attributes:
Code:
chmod -R 755 /usr/local/squirrelmail/