in reply to perl/cgi question: script works from unix command line, but not web page
The solution? try chmoding the cgi script 777 and then run it. It might work then, as some server configurations give your perl script the same file access permissions as the permissions of the script you are running. Otherwise, either you (assuming you are the server administrator) or the server administration will have to set up the Web Server up differently.
For the problem of system "main.cgi"; not working, use system "perl main.cgi"; instead, since main.cgi probably does not have execute permissions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stupid newbie question - perl/cgi
by Juerd (Abbot) on Apr 03, 2002 at 05:49 UTC | |
by mt2k (Hermit) on Apr 04, 2002 at 05:34 UTC | |
by Juerd (Abbot) on Apr 04, 2002 at 05:45 UTC | |
by mt2k (Hermit) on Apr 04, 2002 at 06:37 UTC | |
|
Re: Re: Stupid newbie question - perl/cgi
by geoffhanna (Initiate) on Apr 03, 2002 at 03:44 UTC |