Opened 16 years ago

Closed 15 years ago

Last modified 13 years ago

#9641 closed (wontfix)

Django shared hosting deployment documentation - chmod 755

Reported by: jeff_anode Owned by: Jacob
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Having just managed to negotiate a tortuous install on my host using fastcgi, I think it might be useful to remind people that using server-spawned processes means that the user 'nobody' is going to be trying to execute your settings.py file (and maybe the rest as well).

What I'm getting at is that it might be useful to quickly let people know that they need to apply a chmod 755 to files such settings.py, otherwise the fcgi process will fail (usually without much useful information in the error log). I'm not an expert in this stuff and it took me a very long time to work out what the problem was.

The relevant section is on this page under the heading "Running Django on a shared-hosting provider with Apache"
http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#howto-deployment-fastcgi

Change History (7)

comment:1 by jeff_anode, 16 years ago

Summary: Django shared hosting deployment documentation - chmod 755, python egg dirDjango shared hosting deployment documentation - chmod 755

comment:2 by Jacob, 16 years ago

milestone: 1.1
Triage Stage: UnreviewedAccepted

comment:3 by Jacob, 16 years ago

Owner: changed from nobody to Jacob
Status: newassigned

comment:4 by dc, 16 years ago

Triage Stage: AcceptedDesign decision needed

they need to apply a chmod 755 to files such settings.py

That depends on specific hoster config and on good hostings is unnecessary. Also note that this can be very dangerous as anyone will be able to read passwords and secret keys from settings.py

comment:5 by Adrian Holovaty, 16 years ago

milestone: 1.11.2

comment:6 by James Bennett, 15 years ago

Resolution: wontfix
Status: assignedclosed

Going to wontfix this, since recommending a "chmod 755" is always the wrong thing to do.

comment:7 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top