Re: Problem getting cgi script to work with apache?

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

 



>On Mon, 2006-06-19 at 10:43 -0700, Knute Johnson 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";
>> print "<html><head><title>test.pl</title></head><body>\n";
>> print "<h1>test.pl</h1>\n";
>> print "</body></html>\n";
>> 
>> [Mon Jun 19 10:24:18 2006] [error] [client 208.1.40.46] Premature end 
>> of script headers: test.pl
>> [Mon Jun 19 10:25:54 2006] [error] [client 208.1.40.46] (8)Exec 
>> format error: exec of '/var/www/cgi-bin/test.pl' failed
>> 
>> [root@rabbitbrush cgi-bin]# /usr/sbin/getsebool -a | grep http
>> allow_httpd_anon_write --> off
>> allow_httpd_sys_script_anon_write --> off
>> httpd_builtin_scripting --> on
>> httpd_can_network_connect --> off
>> httpd_can_network_connect_db --> off
>> httpd_can_network_relay --> off
>> httpd_disable_trans --> off
>> httpd_enable_cgi --> on
>> httpd_enable_ftp_server --> off
>> httpd_enable_homedirs --> on
>> httpd_ssi_exec --> off
>> httpd_suexec_disable_trans --> off
>> httpd_tty_comm --> off
>> httpd_unified --> on
>> 
>> [root@rabbitbrush cgi-bin]# ls -Z
>> -rwxr-xr-x  root root system_u:object_r:httpd_sys_script_exec_t 
>> test.pl
>> 
>> Any ideas on where to start would be greatly appreciated.
>
>Add the following line to the top of your script:
>
>#!/usr/bin/perl
>

Yes I'm sorry I actually had that in the script and took it out to 
test and didn't put it back before I posted.  It doesn't work with it 
either.

-- 
Knute Johnson
Molon Labe...


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux