Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
The problem solved now. It is again(for me) selinux. When i disabled it - all began to work fine. It is freaking me out at work, when we began to install linuxe`s with kernel version 2.6(selinux was built in kernel from 2.6) or more i had big problems with this new software... > It drives me crazy

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
2009/12/21 David Taiaroa > Hi Alexander, > > Is the LWP module in the same directory as the CGI module, and does it have > permissions 644? > Yes, folders CGI and LWP are in /usr/lib/perl5/vendor_perl/5.10.0 and permissions are 644.

Re: script working from shell, but not from browser.

2009-12-20 Thread alexander simashin
> > Hi Alexander, > > Since both scripts work on our server, and not yours, all I can think of is > that it's something specific to your server environment. > I think that too, but can`t understand where is the problem :(. 2009/12/19 David Taiaroa > Does something simple like this work for you?

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
So it is time for an easy example script. i wrote this little example maybe it will be clearly describe my problem. I did not use any files or something for no more possible problems with permissions. *#!/usr/bin/perl use CGI ; use strict; use warnings; use Data::Dumper; use CGI::Carp 'fatalsToBrow

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
2009/12/19 David Taiaroa > > When you run a script from shell it's probably as user 'you'. > When the script runs from a browser, it will be as user 'www' or something > similar, with restricted permissions. Your shell user will have more > permissions, so you might want to look at file permission

Re: script working from shell, but not from browser.

2009-12-19 Thread David Taiaroa
Hi, When you run a script from shell it's probably as user 'you'. When the script runs from a browser, it will be as user 'www' or something similar, with restricted permissions. Your shell user will have more permissions, so you might want to look at file permissions. Also, you want to check