Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-24 Thread Andrew Allen
On Tue, 2008-09-23 at 18:57 -0400, Bob Beers wrote:
> >> Check your web server logs to find out what went wrong.
> >>
> > Thanks everybody, but I still can't find the server log(s)!

> maybe ...
> ls /var/log/httpd/*log


Many thanks for the help - problem solved!

Andy

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-23 Thread Bob Beers
>> Check your web server logs to find out what went wrong.
>>
> Thanks everybody, but I still can't find the server log(s)!
> I've looked at /etc/httpd/conf/httpd.conf and it says the following
> about location of the error log:
> # ErrorLog: The location of the error log file.
> # If you do not specify an ErrorLog directive within a 
> # container, error messages relating to that virtual host will be
> # logged here.  If you *do* define an error logfile for a 
> # container, that host's errors will be logged there and not here.
> #
> ErrorLog logs/error_log
>
> But when I look for files with the name error_log I don't see anything
> which looks like a (plain text) server error log file - and there is no
> such file in the /etc/httpd/logs directory. Where am I going wrong
> please?
>
> Andy

maybe ...
ls /var/log/httpd/*log

HTH,
-Bob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-23 Thread Andrew Allen
On Mon, 2008-09-22 at 21:41 +0530, Raja Subramanian wrote:
> On Mon, Sep 22, 2008 at 9:18 PM, Andrew Allen <[EMAIL PROTECTED]> wrote:
> > This has worked absolutely fine in the past, but now when I invoke it,
> > either nothing appears in the browser (Mozilla Firefox) or I get
> > "Internal Server Error" - any ideas please?
> 
> Check your web server logs to find out what went wrong.
> 
Thanks everybody, but I still can't find the server log(s)!
I've looked at /etc/httpd/conf/httpd.conf and it says the following
about location of the error log:
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a 
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a 
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

But when I look for files with the name error_log I don't see anything
which looks like a (plain text) server error log file - and there is no
such file in the /etc/httpd/logs directory. Where am I going wrong
please?

Andy


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-22 Thread Paul Heinlein

On Mon, 22 Sep 2008, Andrew Allen wrote:

I'm trying to get perl CGI programs to work from the cgi-bin 
(actually a sub-directory cgi-bin/various) and have set appropriate 
permissions using chmod 755. I'm currently testing using the 
simplest cgi program, you know the one: []


This has worked absolutely fine in the past, but now when I invoke 
it, either nothing appears in the browser (Mozilla Firefox) or I get 
"Internal Server Error" - any ideas please?


Is SELinux enabled? If so, the problem will show up in the audit logs:

  ausearch -c httpd -m avc

In general, you'll want to

1. make sure the security context on the CGI script and the directory
   tree that contains it is httpd_sys_script_exec_t, and

2. make sure that no SELinux booleans are in the way, httpd_enable_cgi
   in particular:

 getsebool httpd_enable_cgi

   If it's set to "off," then you'll want to enable it:

 setsebool httpd_enable_cgi=1

--
Paul Heinlein <> [EMAIL PROTECTED] <> http://www.madboa.com/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-22 Thread Raja Subramanian
On Mon, Sep 22, 2008 at 9:18 PM, Andrew Allen <[EMAIL PROTECTED]> wrote:
> This has worked absolutely fine in the past, but now when I invoke it,
> either nothing appears in the browser (Mozilla Firefox) or I get
> "Internal Server Error" - any ideas please?

Check your web server logs to find out what went wrong.

- Raja
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-22 Thread Andrew Allen
I'm trying to get perl CGI programs to work from the cgi-bin (actually a
sub-directory cgi-bin/various) and have set appropriate permissions
using chmod 755. I'm currently testing using the simplest cgi program,
you know the one:
#!/usr/bin/perl
# howdy--the easiest of CGI programs

use CGI;

print <
 
Hello World


Greetings, Terrans!



END_of_Multiline_Text

This has worked absolutely fine in the past, but now when I invoke it,
either nothing appears in the browser (Mozilla Firefox) or I get
"Internal Server Error" - any ideas please?

Thanks,
Andy

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos