Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: Premature e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 11 Topic 1402 of 1496
Post > Topic >>

Re: Premature end of script headers

by drummike@[EMAIL PROTECTED] (Mike Williams) Jun 13, 2007 at 01:04 PM

On 6/13/07, saran.jegan@[EMAIL PROTECTED]
 <saran.jegan@[EMAIL PROTECTED]
> wrote:
> >
>         i made changes in httpd.conf file as you mentioned , here is
> mine
>
> <Directory "E:/Program Files/Apache Software Foundation/Apache2.2/cgi-
> bin">
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
>     Options ExecCGI
>     AddHandler cgi-script.exe
> </Directory>

Saran,

There is a typo in the Add-Handler statement - you need a space between
cgi-script and .exe:
AddHandler cgi-script  .exe

Make sure you also have a Script-Alias for cgi-bin
Mine looks like this:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

The comments in the apache file contain im****tant information and are
worth reading.

After changing the httpd.conf file you should always do:
apachectl -t
# to test the configuration file - you will get an error message if
there is a problem

# if no error message, then do
apachectl reload
# that will cause apache to reload the new configuration file, otherwise
your
# changes will not take effect

Note - BOTH of the above steps should always be done after changing
httpd.conf
Otherwise you could make a change that will break your configuration and
not
realize until much later and find yourself wondering why apache did not
start.
You should always make a copy of httpd.conf before making changes.

I am not certain if this works the same way on windows, you may have
to read the fine manual.  If you have apache running as a service then
stopping then restarting the service will get the configuration
changes loaded.

> do you made any modification to make the code run on linux,if so let
> me know

The code you originally posted compiled and ran without modification on
linux.

Mike
 




 11 Posts in Topic:
Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-05 12:07:32 
Re: Premature end of script headers
sdavis2@[EMAIL PROTECTED]  2007-06-05 09:07:49 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-05 09:28:11 
Re: Premature end of script headers
vendion@[EMAIL PROTECTED]  2008-11-16 15:41:52 
what is the best / latest .CGI to handle safe form parsing?
lhernsen1015@[EMAIL PROTE  2008-11-17 20:04:39 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-08 10:57:32 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-12 10:54:01 
Re: Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-13 06:27:47 
Re: Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-13 09:41:14 
RE: Variable Name Survey Form Input
Hellman.Matthew@[EMAIL PR  2007-06-13 12:45:16 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-13 13:04:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 11:51:31 CST 2008.