469,649 Members | 1,375 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

mod_python Unable to create file

Hi,

I am using Apache and mod_python to service POST/GET requests on MAC
OS. My script tries to create a file

file = open(file_path, 'w')

This fails with the following error

EACCES
Permission denied

What is missing?

Thanks,
Kaushik

Mar 2 '08 #1
3 2751
On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote:
I am using Apache and mod_python to service POST/GET requests on MAC
OS. My script tries to create a file

file = open(file_path, 'w')

This fails with the following error

EACCES
Permission denied

What is missing?
To state the ovious: the rights to create a file at `file_path`. Remember
that web servers usually have their own "user".

Ciao,
Marc 'BlackJack' Rintsch
Mar 2 '08 #2
On Mar 1, 11:24*pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote:
I am using Apache and mod_python to service POST/GET requests on MAC
OS. My script tries to create a file
file = open(file_path, 'w')
This fails with the following error
EACCES
Permission denied
What is missing?

To state the ovious: the rights to create a file at `file_path`. *Remember
that web servers usually have their own "user".

Ciao,
* * * * Marc 'BlackJack' Rintsch
Thanks Marc.
In Apache what are the ways/directives to set the rights to a folder?
Mar 2 '08 #3

On Mar 2, 2008, at 3:24 AM, kaush wrote:
On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
>On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote:
>>I am using Apache and mod_python to service POST/GET requests on MAC
OS. My script tries to create a file
>>file = open(file_path, 'w')
>>This fails with the following error
>>EACCES
Permission denied
>>What is missing?

To state the ovious: the rights to create a file at `file_path`.
Remember
that web servers usually have their own "user".

Ciao,
Marc 'BlackJack' Rintsch

Thanks Marc.
In Apache what are the ways/directives to set the rights to a folder?
none. you set permissions via the operating system.

chmod would be the command from terminal you are looking for.

or you can do get info on the folder in question via the finder and
set perms there.

Mar 2 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Doug Farrell | last post: by
1 post views Thread by Rolfe | last post: by
1 post views Thread by wolf | last post: by
3 posts views Thread by Nancy | last post: by
4 posts views Thread by Tim Chase | last post: by
1 post views Thread by treelife | last post: by
reply views Thread by Simo D | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.