-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Darcy Brodie wrote:
> Gustin,
> Thanks for the suggestions
> 
> Gustin Johnson wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> <snip>
>>   
>>> *_Configuration_*
>>>
>>> CentOS 5.4
>>> Apache 2.2.3
>>> Perl 5
>>>
>>>
>>> root directory for web site   /var/www/html/locks (locks is the name of
>>> the web site home directory)
>>> path for CGI-BIN directory /var/www/cgi-bin
>>> path for perl                         /usr/bin/perl
>>>
>>> permissions on the perl scripts are set to 755, and the CGI-BIN
>>> directory
>>>      
> 755 should give full access to the owner, read and execute to group and
> others, so even if the APACHE user does not have ownership, it should
> fall under the "other"  permissions

Sorry, that was a brain mis-fire, my bad.

>> Have you had a look in /var/log/apache2/error.log?  Usually there are04
>> more verbose error messages in there.
>>    
> yes, I have.  What they are saying for the test scripts is;
>     malformed header from script.  Bad header=This is a test so see if
> this works : darcy2.pl
> 
> what I have in that script is
> 
> #!/usr/bin/perl
> print"This is a test to see if this works \n";
> 
> It works fine from the command line, but not from the browser
> 
> 
> From the script for the password program, when I run it from the
> browser, I get
>     (2)No such file or directory: exec of
> '/var/www/cgi-bin/batchsetup.cgi' failed
>     Premature end of script headers: batchsetup.cgi
> 
Sounds like there is something missing that the script is calling.
Have you checked to make sure all the required binaries are present?
Perhaps there is a perl module that needs to be installed?

Hth,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAks5q40ACgkQwRXgH3rKGfNabQCfe6CV0wM8relOa8g/qDhSa9TM
9MUAn2WCrgKAS10l+ynqyCOl3z/WYsbL
=gFBY
-----END PGP SIGNATURE-----

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to