Re: apache2 privileges
Hi John
> My apache2 server on linux is running as www-data. My project is in a
> standard user account. apache2 can't access files on the user account
> unless I change the user on the user account directory to www-data.
Try this:
# chown -R john:www-data /your/project
# find /your/project -type f -exec chmod 660 {} \;
# find /your/project -type d -exec chmod 770 {} \;
Now apache can read and write the project files while you are still the
owner.
If you want to be a bit more secure try permissions 640/750.
Hope that helps.
Andreas
--
state of mind ()
Franziskanerstraße 15 Telefon +49 89 3090 4664
81669 München Telefax +49 89 3090 4666
Amtsgericht München Partnerschaftsregister PR 563
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home