473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2853
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Doug Farrell | last post by:
Hi all, I'm trying to build a demonstration website using mod_python and 4Suite to show how we could transform XML documents into HTML with XSLT. Here is a piece of code that causes it to blow...
1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
3
by: Nancy | last post by:
Hi, I am new to python. I am trying to install mod_python in my computer(WinXP Pro, Apache 2.0.50, python2.3.4). I added the following statements in my Apache configuration file httpd.conf ...
4
by: Tim Chase | last post by:
I've been digging around, but can't seem to come up with the right combo of words to google for to get helpful results. Is there some handy wrapper/module that allows code to target existance as...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
1
by: boney | last post by:
hello All, I am totally unknown to python language.. i need to install mod_python to embed python interpreter with the Apache server, in order to use Trac with Apache Web Server i am using...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
0
by: Simo D | last post by:
Ok, solved: apache is unable to follow relative paths from the script. Putting ol absolute paths it's ok! Simo D wrote: -- View this message in context:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.