Re: Problem getting cgi script to work with apache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/19/06, Knute Johnson <knute@xxxxxxxxxxx> wrote:
I was trying to test a simple cgi script with my Apache server this
morning and I'm getting an error that I can't run down.  System is
FC5 with latest updates.  Script, httpd error log, selinux bools, and
directory listing follow:

[knute@rabbitbrush cgi-bin]$ cat test.pl
print "Content-Type: text/html\n\n";

Not sure, but should this be \r\n ?

print "<html><head><title>test.pl</title></head><body>\n";
print "<h1>test.pl</h1>\n";
print "</body></html>\n";

Curious, do you have to have the following?:
use CGI;

Any ideas on where to start would be greatly appreciated.

Seems like something is wrong in the script, guessing it isn't a
config problem (httpd, selinux, etc.)

-Mauriat


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux