Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Script works differently on two different servers

by davorg (Chancellor)
on Jul 23, 2009 at 12:36 UTC ( #782665=note: print w/replies, xml ) Need Help??

in reply to Script works differently on two different servers

Problems like this will often be down to the ownership of the file or the permissions of the user owning the file. Remember that when running as a CGI program your code almost certainly runs as the web server user, not as you.

But this is all just guesswork. As moritz says, the only way to be sure is to look in the error log.

Update: I've just remembered - This is a FAQ.


See the Copyright notice on my home node.

Perl training courses

  • Comment on Re: Script works differently on two different servers

Replies are listed 'Best First'.
Re^2: Script works differently on two different servers
by shawnhcorey (Friar) on Jul 23, 2009 at 14:35 UTC

    An added note: you should also check the user name of the server; they may be different on different machines. Some names are: nobody, www, and web.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://782665]
[erix]: or compile & run an instance as yourself (not user 'postgres')
[erix]: easiest setup is to run with PG* env variables set, and a custom .pgpass files (can be a $PGPASSFILE)
[Corion]: Hmm - "trust" sounds interesting, but I have still to find whether I can restrict that on a per-DB level ;)
[Corion]: erix: Sure, but SQLite doesn't even need that :)
[hippo]: Corion: Yes, you can. It's all in the pg_hba.conf
[erix]: yeah, but there is a lot SQLite cannot do :)
[hippo]: Database is the 2nd column.
shmem .oO( docker. docker. docker? docker. docker! docker )
[shmem]: at least, some Ook.
[erix]: another simple Pg thing is to running a database off a tsv (alas, readonly)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2018-02-23 15:14 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (302 votes). Check out past polls.