Discussion:
Scripts have stopped working....
(too old to reply)
Spinicrus
2005-11-07 13:45:33 UTC
Permalink
Running Netware 6 box for Intranet and have been running perl scripts to
process our forms for quite some time now - but they have decided to stop
working.

We are able to run the 'hello.pl' script directly from the Netware console
screen and it processes it ok - but when we submit any of our forms, we hit
the 'submit' button and the script URL appears in the address bar however it
gives us a 'page not found' error - it looks like the browser doesn't
process the perl script.

We have checked various files etc, and looked at access \ error logs but now
we're going round in circles.

We suspect it's a path variable or something which is wrong - can anyone
give us some pointers? or suggest which files we should be looking at?.
Weird because this was working several days ago, and we can't see what's
changed!.

TIA

****
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
Guenter Knauf, DevNet SysOp 32
2005-11-07 14:25:29 UTC
Permalink
Hi,
its always a good idea to modify the script which fails so that it first of
all spits out a valid content header - then you should see the errors in
the browser unless the script fails already at compilation time... - but
this you can check from commandline...

Guenter.
Post by Spinicrus
Running Netware 6 box for Intranet and have been running perl scripts to
process our forms for quite some time now - but they have decided to
stop working.
We are able to run the 'hello.pl' script directly from the Netware
console screen and it processes it ok - but when we submit any of our
forms, we hit the 'submit' button and the script URL appears in the
address bar however it gives us a 'page not found' error - it looks like
the browser doesn't process the perl script.
We have checked various files etc, and looked at access \ error logs but
now we're going round in circles.
We suspect it's a path variable or something which is wrong - can anyone
give us some pointers? or suggest which files we should be looking at?.
Weird because this was working several days ago, and we can't see what's
changed!.
TIA
****
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
Spinicrus
2005-11-07 14:47:49 UTC
Permalink
Thanks Guenter - problem is that none of our scripts run now. We have around
30 scripts which also basically post the contents of a form to a particular
email address. It's as if the scripts are not even being processed when the
URL ending in .pl is presented to the browser. All of the scripts when
result in a 'page not found' after you submit the form

We're not really perl experts so there may be something simple we've
missed........ any ideas?

Regards
JC
Post by Guenter Knauf, DevNet SysOp 32
Hi,
its always a good idea to modify the script which fails so that it first of
all spits out a valid content header - then you should see the errors in
the browser unless the script fails already at compilation time... - but
this you can check from commandline...
Guenter.
Post by Spinicrus
Running Netware 6 box for Intranet and have been running perl scripts to
process our forms for quite some time now - but they have decided to
stop working.
We are able to run the 'hello.pl' script directly from the Netware
console screen and it processes it ok - but when we submit any of our
forms, we hit the 'submit' button and the script URL appears in the
address bar however it gives us a 'page not found' error - it looks like
the browser doesn't process the perl script.
We have checked various files etc, and looked at access \ error logs but
now we're going round in circles.
We suspect it's a path variable or something which is wrong - can anyone
give us some pointers? or suggest which files we should be looking at?.
Weird because this was working several days ago, and we can't see what's
changed!.
TIA
****
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
Guenter Knauf, DevNet SysOp 32
2005-11-07 18:00:13 UTC
Permalink
Hi,
hmm, any chance you did update something?
Perhaps changed soemthing in the Apache httpd.conf?
have you rebooted the server? or at least restarted Apache?
the issue you describe sounds like a miss-configuration in httpd.conf; also
look into the error.log from Apache...

Guenter.
Post by Spinicrus
Thanks Guenter - problem is that none of our scripts run now. We have
around 30 scripts which also basically post the contents of a form to a
particular email address. It's as if the scripts are not even being
processed when the URL ending in .pl is presented to the browser. All of
the scripts when result in a 'page not found' after you submit the form
We're not really perl experts so there may be something simple we've
missed........ any ideas?
Regards
JC
Post by Guenter Knauf, DevNet SysOp 32
Hi,
its always a good idea to modify the script which fails so that it first of
all spits out a valid content header - then you should see the errors
in the browser unless the script fails already at compilation time... -
but this you can check from commandline...
Guenter.
Post by Spinicrus
Running Netware 6 box for Intranet and have been running perl scripts
to process our forms for quite some time now - but they have decided
to stop working.
We are able to run the 'hello.pl' script directly from the Netware
console screen and it processes it ok - but when we submit any of our
forms, we hit the 'submit' button and the script URL appears in the
address bar however it gives us a 'page not found' error - it looks
like the browser doesn't process the perl script.
We have checked various files etc, and looked at access \ error logs
but now we're going round in circles.
We suspect it's a path variable or something which is wrong - can
anyone give us some pointers? or suggest which files we should be
looking at?. Weird because this was working several days ago, and we
can't see what's changed!.
TIA
****
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
spinicrus
2005-11-08 13:27:49 UTC
Permalink
Hi Guenter,

The server has been rebooted, here are a couple of entries from the Apache
error log & also part of the httpd.conf file why may be causing the problem

Any help appreciated, thanks

Apache error log.

[Tue Nov 8 06:42:37 2005] [error] [client xx.xx.xx.xx] File does not exist:
vol1:/wwwroot/perl/internal24.pl

[Tue Nov 8 07:08:44 2005] [error] [client xx.xx.xx.xx] File does not exist:
vol1:/wwwroot/perl/internal39.pl

httpd.conf.

#

# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.

#

DocumentRoot "vol1:/wwwroot"



# This should be changed to whatever you set DocumentRoot to.

#

<Directory "vol1:/wwwroot">



LoadModule lcgi_module modules/mod_lcgi.nlm

<IfModule mod_lcgi.c>

AddHandler lcgi-script .nlm .pl .nsn .bas .cgi

LCGIModuleMap sys:/perl/lcgi/cgi2perl.nlm .pl /perl

AddEnvVar PERL_ROOT sys:/perl/web

ScriptAlias /perl/ "sys:/perl/web/"

</IfModule>
Post by Guenter Knauf, DevNet SysOp 32
Hi,
hmm, any chance you did update something?
Perhaps changed soemthing in the Apache httpd.conf?
have you rebooted the server? or at least restarted Apache?
the issue you describe sounds like a miss-configuration in httpd.conf; also
look into the error.log from Apache...
Guenter.
Post by Spinicrus
Thanks Guenter - problem is that none of our scripts run now. We have
around 30 scripts which also basically post the contents of a form to a
particular email address. It's as if the scripts are not even being
processed when the URL ending in .pl is presented to the browser. All of
the scripts when result in a 'page not found' after you submit the form
We're not really perl experts so there may be something simple we've
missed........ any ideas?
Regards
JC
Post by Guenter Knauf, DevNet SysOp 32
Hi,
its always a good idea to modify the script which fails so that it first of
all spits out a valid content header - then you should see the errors
in the browser unless the script fails already at compilation time... -
but this you can check from commandline...
Guenter.
Post by Spinicrus
Running Netware 6 box for Intranet and have been running perl scripts
to process our forms for quite some time now - but they have decided
to stop working.
We are able to run the 'hello.pl' script directly from the Netware
console screen and it processes it ok - but when we submit any of our
forms, we hit the 'submit' button and the script URL appears in the
address bar however it gives us a 'page not found' error - it looks
like the browser doesn't process the perl script.
We have checked various files etc, and looked at access \ error logs
but now we're going round in circles.
We suspect it's a path variable or something which is wrong - can
anyone give us some pointers? or suggest which files we should be
looking at?. Weird because this was working several days ago, and we
can't see what's changed!.
TIA
****
NW6 SP3
Perl 5.8.0
Apache 1.03
eDir 8.7
Continue reading on narkive:
Loading...