View Single Post
Old 3rd September 2009, 14:01
voidzero voidzero is offline
HowtoForge Supporter
Join Date: Mar 2009
Posts: 63
Thanks: 11
Thanked 3 Times in 3 Posts

Well that's still using php-cgi and it's still too slow!

But I have solved it in a different way: by using ACL.
The webroots of these sites are set to user:group www-data:www-data with an ACL entry u:web29:rwX,g:client5:rX and it includes a default.

What I did was, I created a script to do all of this for me hourly through a cronjob. Here it is, I hope it will benefit others with the same problem:

# Fix permissions for webroots that are using mod-php and wordpress.

chown -R www-data:www-data /var/www/
setfacl -bR /var/www/
setfacl -Rm u:web29:rwX,g:client5:rX,d:u:web29:rwX,d:g:client5:rX /var/www/

# Repeat this for all the sites that need it. Crontab it for your own convenience.
# New files will automagically inherit these permissions.
Reply With Quote