Can't Execute httpd on Apache Server

Can't Execute httpd on Apache Server

Post by Dave_Wals » Fri, 26 Mar 1999 04:00:00



Hi.  I am quite a newbie to Linux and Unix in general.  I have installed
a Linux box here on a PC and have been doing some interesting stuff.  I
decided to try getting it to run a HTTP server and heard that Apache was
clearly the best.  Again, being a newbie, I didn't want to get into
compiling and all that sort of thing, so I downloaded the binary version
off the WWW.APACHE.ORG site.  (version 1.3.6).

I expanded the file and went about configuring the httpd.conf file.
Strangely though when I try to execute the server by running
/usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf, I get
a message: "bash: /usr/local/apache/bin/httpd: No such file or
directory".  Now I know this is the same message you get when you try to
execute a file that's not there, but it is there.  I know it is.  I can
rename it, I can perform a strings command on it.  I just can't execute
it for some reason.  I am logged in as root and all permissions seem
correct:
-rwxr-xr-x   1 root     root       291913 Mar 25 09:57 httpd*

This is very strange.  Anyone have any ideas.  I am running a rather old
kernel (i.e. version 2.0.27.  Could this be the problem?

Dave

  Dave_J_Walsh.vcf
< 1K Download
 
 
 

Can't Execute httpd on Apache Server

Post by Jim Rober » Fri, 26 Mar 1999 04:00:00


The error is probably because httpd can't find a file it is looking
for during start-up. Check the errorlog in the "log" subdir of the
apache tree.

Also, you should probably start apache with the "apachectl" control
script with "# /usr/local/apache/bin/apachectl start "

> Hi.  I am quite a newbie to Linux and Unix in general.  I have installed
> a Linux box here on a PC and have been doing some interesting stuff.  I
> decided to try getting it to run a HTTP server and heard that Apache was
> clearly the best.  Again, being a newbie, I didn't want to get into
> compiling and all that sort of thing, so I downloaded the binary version
> off the WWW.APACHE.ORG site.  (version 1.3.6).

> I expanded the file and went about configuring the httpd.conf file.
> Strangely though when I try to execute the server by running
> /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf, I get
> a message: "bash: /usr/local/apache/bin/httpd: No such file or
> directory".  Now I know this is the same message you get when you try to
> execute a file that's not there, but it is there.  I know it is.  I can
> rename it, I can perform a strings command on it.  I just can't execute
> it for some reason.  I am logged in as root and all permissions seem
> correct:
> -rwxr-xr-x   1 root     root       291913 Mar 25 09:57 httpd*

> This is very strange.  Anyone have any ideas.  I am running a rather old
> kernel (i.e. version 2.0.27.  Could this be the problem?

> Dave

> --------------398E835B929ED50C5FFB2683
> Content-Type: text/x-vcard; charset=us-ascii;
>  name="Dave_J_Walsh.vcf"
> Content-Transfer-Encoding: 7bit
> Content-Description: Card for Dave_Walsh
> Content-Disposition: attachment;
>  filename="Dave_J_Walsh.vcf"

> begin:vcard
> n:Walsh;Dave
> x-mozilla-html:FALSE
> org:Keane Canada
> version:2.1

> title:Network Administrator
> tel;fax:902 422 6059
> tel;work:902 422 6036 x 249
> adr;quoted-printable:;;2000 Barrington Street=0D=0ASuite 300;Halifax;Nova Scotia;B3J  3K1;Canada
> x-mozilla-cpt:;0
> fn:Dave Walsh
> end:vcard

> --------------398E835B929ED50C5FFB2683--

--
Jim Roberts         Never enough time!


 
 
 

Can't Execute httpd on Apache Server

Post by Brian McCaule » Sat, 27 Mar 1999 04:00:00



> Hi.  I am quite a newbie to Linux and Unix in general.  I have installed
> a Linux box here on a PC and have been doing some interesting stuff.  I
> decided to try getting it to run a HTTP server and heard that Apache was
> clearly the best.  Again, being a newbie, I didn't want to get into
> compiling and all that sort of thing, so I downloaded the binary version
> off the WWW.APACHE.ORG site.  (version 1.3.6).

> I expanded the file and went about configuring the httpd.conf file.
> Strangely though when I try to execute the server by running
> /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf, I get
> a message: "bash: /usr/local/apache/bin/httpd: No such file or
> directory".  Now I know this is the same message you get when you try to
> execute a file that's not there, but it is there.  I know it is.  I can
> rename it, I can perform a strings command on it.  I just can't execute
> it for some reason.

This means that the bianry is looking for a dynamic linker you don't have.

Quote:> This is very strange.  Anyone have any ideas.  I am running a rather old
> kernel (i.e. version 2.0.27.  Could this be the problem?

No, it'll be the dynamic linker version.  You probably need glibc2 and
the associated dynamic linker.

--

  .  _\\__[oo   faeces from    | Phones: +44 121 471 3789 (home)

 .  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
  # ll  l\\  ~~~~ ~   ~ ~    ~ | http://www.wcl.bham.ac.uk/~bam/
 ###LL  LL\\ (Brian McCauley)  |

 
 
 

1. httpd.h in Apache httpd server src tree

RE: line 72

#define Document_Location "/path"

Is "/path"intended to be the default location of the .conf files or the
default DocumentRoot to load a starting html index from if no DocumentRoot
is defined in srm.conf?


Fyi, a look at the source shows hard-coded paths and hrefs in the cgi-bin
sources as well, so one should probably run strings on the binaries before
using them, and make sure that those paths and URLs are what you actually
want for default behavior.

2. VLB SCSI-2 ? Summary

3. Apache executing under Virtual server's owner ID ???

4. Programing

5. Newbie Q: (apache)httpd running but client can't access server

6. TCP in TIME_WAIT response to dup FIN

7. httpd dead but subsys locked'''----> COnfigure APache

8. info on ASTER*X and NExpert

9. How to execute "apache internet server" on booting my Linux server ?

10. CGI: apache canned response

11. APACHE CGI's won't execute (forbidden) whats the deal?

12. It's not bad canned meat...