Click to See Complete Forum and Search --> : apachectl will not start


adneg
02-01-2003, 01:55 PM
I Installed Httpd-2.0.40
all appeared to go fine but when I try to start apachectl i get the error message

usr/local/httpd-2.0.40/bin/httpd no such file or directory.

I have checked and it is quite right the directory is not there.

This is driving alittle crazy, anybody shed any light on this?

Any
02-01-2003, 06:01 PM
Ermmm, obvious question but where did you install Apache?

adneg
02-02-2003, 12:21 PM
I installed it in to the usr/local directory.

I did gzip -d httpd-2.0.40.tar.gz
tar xvf httpd-2.0.40.tar
./configure --prefix=usr/local/httpd-2.0.40
make
make install


I kept it as simple as possible

adneg
02-02-2003, 01:03 PM
The usr/local/httpd-2.0.40/bin is there, but not usr/local/httpd-2.0.40/bin/httpd.

So during the istallation that directory is not make. I have reinstalled and still get the same problem so not quite sure what is going on here.

Any
02-02-2003, 01:39 PM
Tried looking in all the directorys in httpd-2.0.40? Maybe in sbin(just a guess, im not at my Linux server)?

Or maybe install it to the default location to see if that makes a difference?

sharth
02-02-2003, 01:52 PM
on debian, the deb installed daemon is at /usr/sbin/apache, so try /usr/local/sbin, or just do a find -name "apache"

adneg
02-02-2003, 02:13 PM
usr/local/sbin is empty.

whats the best way to unistall this stuff and then I will try again.

I fully do not understand where this is going wrong.

sharth
02-02-2003, 02:34 PM
in the source top level directory, run make uninstall or make clean, something along those lines.

Any
02-03-2003, 06:29 AM
Ive just had a look on mine and the file i use to start Apache is apachectl not httpd. Its just in my /apache/bin direectory.

adneg
02-03-2003, 06:45 AM
Any,

apachectl is in my bin directory the same as yours. When I run the command
/usr/local/httpd-2.0.44/bin apachectl start

then I get the error message /usr/local/httpd-2.0.44/bin/httpd is not a file or directory.

Something is pointing it there and the httpd directory is not there.

I have removed it again and now at the end of make install i get this message

MAKE[1]: ***[install-include] error 1


I get the feeling I will never get apache on this machine

Any
02-03-2003, 07:00 AM
/usr/local/httpd-2.0.44/bin/apachectl start

Is what you need, was the space between bin/ and apachectl a typo?

adneg
02-03-2003, 08:38 AM
it does not matter which way I do it i get the error message.

Now All I can think of is that something some where is pointing in the wrong place.

I shall keep looking

adneg
02-03-2003, 12:42 PM
ok cracked a part of this.

I reinstalled but this time i did not set a prefix i just left it at its default settings and bingo it works.


I still think the other way does work but I have to find the file that sets all the configurations and point it in the right direction.

vbp6us
02-03-2003, 04:42 PM
Probably cuz apache is one of the more used apps in Linux. I dont know if all .gzip or .tar files have predefined paths but apparently apache did.