Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Cannot open files using CGI

by thcsoft (Monk)
on May 29, 2005 at 01:44 UTC ( [id://461441]=note: print w/replies, xml ) Need Help??


in reply to Cannot open files using CGI

your problem is most probably none of perl, but has to to with the file permissions on your server. for instance: on a debian box the webserver is called www-data, group www-data. if you want your cgi-scripts to open files, you should take care that they belong to the server.

language is a virus from outer space.

Replies are listed 'Best First'.
Re: Cannot open files using CGI
by b10m (Vicar) on May 29, 2005 at 11:41 UTC

    That being said, you also might run into "Security Context" problems (see chcon). It had me puzzled and cursing for quite some time (on a remote CentOS machine).

    Very tricky, for I never use "ls --scontext" to check permissions...

    --
    b10m

    All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://461441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found