You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Devireddy, Nagendra Reddy (STSD)" <na...@hp.com> on 2006/08/02 17:19:58 UTC

[users@httpd] Problem with Script/binary execution

Hi all,

I am facing some problem while access a .exe file from the server.

http://localhost:3444/test.exe 

Its giving the following error :

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, admin@domain.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error
log.
And this is the error message in server log ..
Premature end of script headers: test.exe, referer:
http://localhost:3444/test.exe
But I am able to run that exe from command line. Its generating correct
output. I have given the permissions as  rwxrwxrwx and tried. Then also
its giving the same problem.
Can some one help me on this.. 
Thanks in advance ..

Thanks and Regards,
Nagendra Reddy. D


Re: [users@httpd] problem while accessing a executable using apache2.0.48 server

Posted by Nick Kew <ni...@webthing.com>.
On Thursday 03 August 2006 05:24, Devireddy, Nagendra Reddy (STSD) wrote:
> Hi all,
>
> I am facing some problem while access a .exe file from the server.

The keyword you're looking for in TFM is CGI.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] problem while accessing a executable using apache2.0.48 server

Posted by Declerck Michael-W30479 <W3...@motorola.com>.
> I have given the permissions as  rwxrwxrwx and
> tried. Then also its giving the same problem.

Who owns the executable?
I am by no means an Apache expert, but you may want to play around with
the user and group ownership.
Most executables are chown'ed and chgrp'ed by root (at least in my
distros bin). 
You could be having issues there...

However, you will see many "premature end of script headers" in my
Apache error_log simply because I use my Apache server to test my web
scripts after I change them :) . That message usually occurs because of
a scripting error.
But you are running an executable, not a perl script, and I see that the
referrer did not give you a line where the error occured.

I would maybe resinstall the program as well.

Just some suggestions,
Michael DeClerck

________________________________

From: Devireddy, Nagendra Reddy (STSD) [mailto:nagendra@hp.com] 
Sent: Wednesday, August 02, 2006 11:25 PM
To: users@httpd.apache.org
Subject: [users@httpd] problem while accessing a executable using
apache2.0.48 server


 

Hi all, 

I am facing some problem while access a .exe file from the server. 

http://localhost:3444/test.exe <http://localhost:3444/test.exe>  

Its giving the following error : 

Internal Server Error 
The server encountered an internal error or misconfiguration and was
unable to complete your request. 
Please contact the server administrator, admin@domain.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error
log. 
And this is the error message in server log .. 
Premature end of script headers: test.exe, referer:
http://localhost:3444/test.exe <http://localhost:3444/test.exe>  
But I am able to run that exe from command line. Its generating correct
output. I have given the permissions as  rwxrwxrwx and tried. Then also
its giving the same problem.

Can some one help me on this.. 
Thanks in advance .. 

Thanks and Regards, 
Nagendra Reddy. D 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] problem while accessing a executable using apache2.0.48 server

Posted by "Devireddy, Nagendra Reddy (STSD)" <na...@hp.com>.
 

Hi all, 

I am facing some problem while access a .exe file from the server. 

http://localhost:3444/test.exe <http://localhost:3444/test.exe>  

Its giving the following error : 

Internal Server Error 
The server encountered an internal error or misconfiguration and was
unable to complete your request. 
Please contact the server administrator, admin@domain.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error
log. 
And this is the error message in server log .. 
Premature end of script headers: test.exe, referer:
http://localhost:3444/test.exe <http://localhost:3444/test.exe>  
But I am able to run that exe from command line. Its generating correct
output. I have given the permissions as  rwxrwxrwx and tried. Then also
its giving the same problem.

Can some one help me on this.. 
Thanks in advance .. 

Thanks and Regards, 
Nagendra Reddy. D 


RE: [users@httpd] Problem with Script/binary execution

Posted by "Devireddy, Nagendra Reddy (STSD)" <na...@hp.com>.
Hi Greenlees,

Thank you once again for your reply.

The .exe which I am executing is not a windows executable. Its built on
Linux only. Just renamed as .exe. I am able to execute that from the
commandline. Any help on this ..

Thanks,
Nagendra

 

-----Original Message-----
From: Jaqui Greenlees [mailto:jaqui_greenlees@yahoo.ca] 
Sent: Thursday, August 03, 2006 12:46 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Problem with Script/binary execution 


--- "Devireddy, Nagendra Reddy (STSD)"
<na...@hp.com> wrote:

> Hi Greenlees,
> 
> Thank you very much for your reply. 
> I have given proper permissions for the directory.
> And one more thing,
> This is working fine on a Solaris Box. I am getting this problem with 
> Linux 2.6. I have compared everything b/n the two machines.
> Configuration, structure everything is same.
> 
> Thanks,
> Nagendra

Then most likely you need to install wine or crossover office to get
support for a windows executable in linux.
.exe is a windows usage only.

Jaqui

Jeff Henager: "If the average user can put a CD in and boot the system
and follow the prompts, he can install and use Linux. If he can't do
that simple task, he doesn't need to be around technology."

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problem with Script/binary execution

Posted by Jaqui Greenlees <ja...@yahoo.ca>.
--- "Devireddy, Nagendra Reddy (STSD)"
<na...@hp.com> wrote:

> Hi Greenlees,
> 
> Thank you very much for your reply. 
> I have given proper permissions for the directory.
> And one more thing,
> This is working fine on a Solaris Box. I am getting
> this problem with
> Linux 2.6. I have compared everything b/n the two
> machines.
> Configuration, structure everything is same.
> 
> Thanks,
> Nagendra  

Then most likely you need to install wine or crossover
office to get support for a windows executable in
linux.
.exe is a windows usage only.

Jaqui

Jeff Henager: "If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology."

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Problem with Script/binary execution

Posted by "Devireddy, Nagendra Reddy (STSD)" <na...@hp.com>.
Hi Greenlees,

Thank you very much for your reply. 
I have given proper permissions for the directory. And one more thing,
This is working fine on a Solaris Box. I am getting this problem with
Linux 2.6. I have compared everything b/n the two machines.
Configuration, structure everything is same.

Thanks,
Nagendra  

-----Original Message-----
From: Jaqui Greenlees [mailto:jaqui_greenlees@yahoo.ca] 
Sent: Thursday, August 03, 2006 2:30 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Problem with Script/binary execution 


--- "Devireddy, Nagendra Reddy (STSD)"
<na...@hp.com> wrote:

> Hi all,
> 
> I am facing some problem while access a .exe file from the server.
> 
> http://localhost:3444/test.exe
> 
> Its giving the following error :
> 
> Internal Server Error
> The server encountered an internal error or misconfiguration and was 
> unable to complete your request.
> Please contact the server administrator, admin@domain.com and inform 
> them of the time the error occurred, and anything you might have done 
> that may have caused the error.
> More information about this error may be available in the server error

> log.
> And this is the error message in server log ..
> Premature end of script headers: test.exe, referer:
> http://localhost:3444/test.exe
> But I am able to run that exe from command line. Its generating 
> correct output. I have given the permissions as  rwxrwxrwx and tried. 
> Then also its giving the same problem.
> Can some one help me on this.. 
> Thanks in advance ..
> 
> Thanks and Regards,
> Nagendra Reddy. D

I'll ask it.. you did put the exe into a cgi designated folder and added
a handler to the httpd.conf?
by default, apache will not execute ANY file, only send it via http, you
have to reduce the site security by enabling the folder(s) holding files
you want executed and make sure you tell apache how to handle them.

Jeff Henager: "If the average user can put a CD in and boot the system
and follow the prompts, he can install and use Linux. If he can't do
that simple task, he doesn't need to be around technology."

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with Script/binary execution

Posted by Jaqui Greenlees <ja...@yahoo.ca>.
--- "Devireddy, Nagendra Reddy (STSD)"
<na...@hp.com> wrote:

> Hi all,
> 
> I am facing some problem while access a .exe file
> from the server.
> 
> http://localhost:3444/test.exe 
> 
> Its giving the following error :
> 
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was
> unable to complete your request.
> Please contact the server administrator,
> admin@domain.com and inform
> them of the time the error occurred, and anything
> you might have done
> that may have caused the error.
> More information about this error may be available
> in the server error
> log.
> And this is the error message in server log ..
> Premature end of script headers: test.exe, referer:
> http://localhost:3444/test.exe
> But I am able to run that exe from command line. Its
> generating correct
> output. I have given the permissions as  rwxrwxrwx
> and tried. Then also
> its giving the same problem.
> Can some one help me on this.. 
> Thanks in advance ..
> 
> Thanks and Regards,
> Nagendra Reddy. D

I'll ask it.. you did put the exe into a cgi
designated folder and added a handler to the
httpd.conf?
by default, apache will not execute ANY file, only
send it via http, you have to reduce the site security
by enabling the folder(s) holding files you want
executed and make sure you tell apache how to handle them.

Jeff Henager: "If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology."

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org