473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

apache in cygwin: cannot execute binary file

254 100+
I have the apache files in my directory:
Expand|Select|Wrap|Line Numbers
  1. /home/Nick/apache_1.3.33
  2.  
I have files :
Install
README
apache
apache.exe
base64
crypt
htpasswd
httpd
htppd.tmpl

I use cygwin. I try to start the apache server by typing:

Expand|Select|Wrap|Line Numbers
  1. $ ./httpd start
  2.  
But it give me this:
Expand|Select|Wrap|Line Numbers
  1. Display protocol statistics and current TCP/IP network connections.
  2.  
  3. NETSTAT [-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]
  4.  
  5. -a    bla bla bla
  6. -e    bla bla bla 
  7. -n    bla bla bla
  8. .......
  9. .......
  10. .......
  11. Starting Apache Web Server: ./apache: ./apache: cannot execute binary file
  12.  
Why i can't start apache?
What's wrong with binary file?

Regards,
Nick.
Nov 27 '06 #1
13 14110
nickyeng
254 100+
In the steps of Compiling the source, I runs:

$ ./configure

and then

$ make

after that, i copy and rename the file

src/httpd

to

~/CSC2406/bin/apache

where i start the apache server in the directory of CSC2406/bin by typing
$ ./httpd start
Nov 27 '06 #2
sashi
1,754 Expert 1GB
I have the apache files in my directory:
Expand|Select|Wrap|Line Numbers
  1. /home/Nick/apache_1.3.33
  2.  
I have files :
Install
README
apache
apache.exe
base64
crypt
htpasswd
httpd
htppd.tmpl

I use cygwin. I try to start the apache server by typing:

Expand|Select|Wrap|Line Numbers
  1. $ ./httpd start
  2.  
But it give me this:
Expand|Select|Wrap|Line Numbers
  1. Display protocol statistics and current TCP/IP network connections.
  2.  
  3. NETSTAT [-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]
  4.  
  5. -a    bla bla bla
  6. -e    bla bla bla 
  7. -n    bla bla bla
  8. .......
  9. .......
  10. .......
  11. Starting Apache Web Server: ./apache: ./apache: cannot execute binary file
  12.  
Why i can't start apache?
What's wrong with binary file?

Regards,
Nick.
Hi there,

Check the binary file permission, make sure the execute check box is selected. Good luck & Take care.
Nov 27 '06 #3
nickyeng
254 100+
Hi there,

Check the binary file permission, make sure the execute check box is selected. Good luck & Take care.
how to check binary file permission?
i am totally new to Cygwin. Many command i dont know yet.
could you specify more detail?
Nov 27 '06 #4
Colloid Snake
144 100+
how to check binary file permission?
i am totally new to Cygwin. Many command i dont know yet.
could you specify more detail?
Check this out - it should help (I think the one you want is under Tutorial 5, but you might find the rest of them interesting as well).

http://www.ee.surrey.ac.uk/Teaching/Unix/index.html
Nov 27 '06 #5
nickyeng
254 100+
Check this out - it should help (I think the one you want is under Tutorial 5, but you might find the rest of them interesting as well).

http://www.ee.surrey.ac.uk/Teaching/Unix/index.html
thanks for the link, but my problem still no solved.
Nov 27 '06 #6
Colloid Snake
144 100+
thanks for the link, but my problem still no solved.
Sashi was suggesting you go through the Windows directories (usually C:\Cygwin\...) to find the apache binary file and then right-click it and choose security to see what options are allowed, and I would suggest doing the same in Cygwin (using an ls -alh, and looking for the 'x' option).

Do you have access to those?
Nov 27 '06 #7
nickyeng
254 100+
Sashi was suggesting you go through the Windows directories (usually C:\Cygwin\...) to find the apache binary file and then right-click it and choose security to see what options are allowed, and I would suggest doing the same in Cygwin (using an ls -alh, and looking for the 'x' option).

Do you have access to those?
yes i have it.
Here is the picture:



So, any wrong with permission of execute httpd?
Once i type ./httpd start, it lists this:



how come cannot execute binary file?
Nov 28 '06 #8
sashi
1,754 Expert 1GB
yes i have it.
Here is the picture:



So, any wrong with permission of execute httpd?
Once i type ./httpd start, it lists this:



how come cannot execute binary file?
Hi there,

Please execute the below command and tell us what you see. Take care.

Expand|Select|Wrap|Line Numbers
  1.   netstat -a
  2.  
Nov 28 '06 #9
nickyeng
254 100+
Hi there,

Please execute the below command and tell us what you see. Take care.

Expand|Select|Wrap|Line Numbers
  1.   netstat -a
  2.  
i dont think the problem i having now is anything to do with netstat -a, right?
what for want to know my active connection?
Are you guys helping me here?
Nov 28 '06 #10
nickyeng
254 100+
sigh...

i cannot do anything but to trust you guys here.
So, here is my result of writing that command.

Nov 28 '06 #11
sashi
1,754 Expert 1GB
i dont think the problem i having now is anything to do with netstat -a, right?
what for want to know my active connection?
Are you guys helping me here?
Hi there,

The question is, do you need help in the first place? The reason why i asked you to execute <netstat -a> is to make sure your port <80> is not being used by any other application. Whatelse do you think i can do by seeing you port status?
Nov 28 '06 #12
sashi
1,754 Expert 1GB
sigh...

i cannot do anything but to trust you guys here.
So, here is my result of writing that command.

Hi there,

Can you once again execute the same command out of <cygwin> shell? Please post your output. Take care.
Nov 28 '06 #13
nickyeng
254 100+
Hi there,

Can you once again execute the same command out of <cygwin> shell? Please post your output. Take care.
here is the 2nd :

Nov 28 '06 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jorgen Grahn | last post by:
I couldn't think of a good solution, and it's hard to Google for... I write python command-line programs under Win2k, and I use the bash shell from Cygwin. I cannot use Cygwin's python package...
0
by: Norm Wong | last post by:
If anyone is interested in using db2uext2 with Cygwin gcc compiler on Windows, I've modified the IBM provided sample with the attached file. There are two main modifications. The mkdir command...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
0
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location:...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
4
by: pizzetta72 | last post by:
Hi all, i just finish to install cygwin on windows XP adding also gcc compiler module. After I tried to execute a file called fstsg.0.3-sparc (www.fstha.com) used to cript a Unix shell, I receive...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.