mod_python Unable to create file

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sun Mar 2 02:24:32 EST 2008


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



More information about the Python-list mailing list