Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

httpd and apachectl won't run

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Problem : Apache 2.0.47 + Mandrake 9.1 -> httpd/apachectl .. - Hi, I have a problem. I installed Apache 2.0.47 and it. Next, I try to test-run it with apachectl However, httpd gives this error no matter what I do with it : error:

apachectl problem - Just installed apache on linux binary from Have problems starting apache. After running start I get the following error: bin]# start line 71:..

Permission Denied - apachectl start - When we try to start apache for the first time we get a denied error. This happens even when logged in as root. I'm sure this is probably a newbie Linux error but would any help. The Linux is Mandrake. TIA, George

Starting of Apache on reboot (apachectl startssl ?) - Is there a script to start apache on a sys reboot, and what about a secured server? How does one handle the challenge passwd input - leaving it exposed in ASCII plain text in the script? -- Adam --

Is apachectl restart safe for connected users and sessions? - I made some changes to the log format. I'd like to restart the web server, but people are currently access the web server -- including clients relying on PHP scripts with session cookies. Can I restart the web server without killing the..
Next:  Apache: ProxyPass within LocationMatch not working  
Author Message
user2737

External


Since: Apr 05, 2004
Posts: 5



(Msg. 1) Posted: Thu Sep 30, 2004 6:44 pm
Post subject: httpd and apachectl won't run
Archived from groups: alt>apache>configuration (more info?)

I've just upgraded to 2.0.52, but now find that amongst other things,
I can't run httpd or apachectl - I just get "command not found".

Heeeeeeelp

 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
drtebi

External


Since: Sep 30, 2004
Posts: 10



(Msg. 2) Posted: Fri Oct 01, 2004 3:55 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 30 Sep 2004 15:44:08 -0700, Richard Williamson wrote:

 > I've just upgraded to 2.0.52, but now find that amongst other things,
 > I can't run httpd or apachectl - I just get "command not found".
 >
 > Heeeeeeelp

Try this, update your locate database first:
updatedb
then do
locate apachectl

you will find it most likely (if you're on Linux) in one of these:
/usr/local/apache/sbin
/usr/apache/sbin

Then just try to run the command with it's full path:
/usr/local/apache/sbin/apachectl start

You can also asign an alias for it:
alias apachectl="/usr/local/apache/sbin/apachectl"

Or, even better, add it to you .bashrc file:
echo alias apachectl="/usr/local/apache/sbin/apachectl" > ~/.bashrc

On another note, some systems (like mine, Gentoo) add a script into
/etc/init.d
Check there if you have e.g. a apache2 script there, try to run it...

Good luck,
DrTebi<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
user2737

External


Since: Apr 05, 2004
Posts: 5



(Msg. 3) Posted: Fri Oct 01, 2004 3:55 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply, I'm just off to try all that. However, I know
where the binaries are and they won't run even when I'm in the same
directory Sad

DrTebi <DrTebi RemoveThis @yahoo.com> wrote in message news:<pan.2004.09.30.22.55.36.721000 RemoveThis @yahoo.com>...
 > On Thu, 30 Sep 2004 15:44:08 -0700, Richard Williamson wrote:
 >
  > > I've just upgraded to 2.0.52, but now find that amongst other things,
  > > I can't run httpd or apachectl - I just get "command not found".
  > >
  > > Heeeeeeelp
 >
 > Try this, update your locate database first:
 > updatedb
 > then do
 > locate apachectl
 >
 > you will find it most likely (if you're on Linux) in one of these:
 > /usr/local/apache/sbin
 > /usr/apache/sbin
 >
 > Then just try to run the command with it's full path:
 > /usr/local/apache/sbin/apachectl start
 >
 > You can also asign an alias for it:
 > alias apachectl="/usr/local/apache/sbin/apachectl"
 >
 > Or, even better, add it to you .bashrc file:
 > echo alias apachectl="/usr/local/apache/sbin/apachectl" > ~/.bashrc
 >
 > On another note, some systems (like mine, Gentoo) add a script into
 > /etc/init.d
 > Check there if you have e.g. a apache2 script there, try to run it...
 >
 > Good luck,
 > DrTebi<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
dinges_danges_

External


Since: Aug 03, 2004
Posts: 88



(Msg. 4) Posted: Fri Oct 01, 2004 5:27 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

DrTebi said the following on 01/10/2004 00:55:

 > On Thu, 30 Sep 2004 15:44:08 -0700, Richard Williamson wrote:
 >
  >>I've just upgraded to 2.0.52, but now find that amongst other things,
  >>I can't run httpd or apachectl - I just get "command not found".
 >
 > Try this, update your locate database first:
 > updatedb
 > then do
 > locate apachectl

Or "find / -type f -name apachectl" if locate still doesn't find it.

 > you will find it most likely (if you're on Linux) in one of these:
 > /usr/local/apache/sbin
 > /usr/apache/sbin

Or "/usr/sbin".

 > Then just try to run the command with it's full path:
 > /usr/local/apache/sbin/apachectl start
 >
 > You can also asign an alias for it:
 > alias apachectl="/usr/local/apache/sbin/apachectl"
 >
 > Or, even better, add it to you .bashrc file:
 > echo alias apachectl="/usr/local/apache/sbin/apachectl" > ~/.bashrc

echo alias apachectl=\"/usr/local/apache/sbin/apachectl\" >> ~/.bashrc

The quotes have to be escaped, otherwise they will be removed by echo
and ">" has to be changed to ">>" because otherwise your ~/.basrc is
emptied before adding that line. Seems to me that just editing the file
with your favorite editor would be better. I'd prefer ~/.profile (or
~/.bash_profile) above ~/.bashrc .

 > On another note, some systems (like mine, Gentoo) add a script into
 > /etc/init.d

Or /etc/rc.d or /etc/rc.d/init.d or whatever your system uses (the man
page of init and/or inittab will probably have a reference to it).

 > Check there if you have e.g. a apache2 script there, try to run it...

... by using an absoulte path, *don't* set the init directory in your
PATH or you'll probably get some surprises sooner or later (killall
comes to mind).

--
Regards
Harrie<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 5) Posted: Fri Oct 01, 2004 6:05 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Richard Williamson" <richard.williamson1 RemoveThis @ntlworld.com> schreef in bericht
news:62fa2974.0409301444.79c3a6a5@posting.google.com...
 > I've just upgraded to 2.0.52, but now find that amongst other things,
 > I can't run httpd or apachectl - I just get "command not found".
 >
 > Heeeeeeelp
Updated from 1.x??
Try apache2 and apache2ctl.

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
user2737

External


Since: Apr 05, 2004
Posts: 5



(Msg. 6) Posted: Fri Oct 01, 2004 6:05 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"HansH" <hans RemoveThis @niet.op.het.net> wrote in message news:<cjiagp$guc$1@news.cistron.nl>...
 > "Richard Williamson" <richard.williamson1 RemoveThis @ntlworld.com> schreef in bericht
 > news:62fa2974.0409301444.79c3a6a5@posting.google.com...
  > > I've just upgraded to 2.0.52, but now find that amongst other things,
  > > I can't run httpd or apachectl - I just get "command not found".
  > >
  > > Heeeeeeelp
 > Updated from 1.x??
 > Try apache2 and apache2ctl.
 >
 > HansH

I upgraded to 2.0.52. However, it's still apachectl, not apache2ctl.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
user2988

External


Since: Oct 01, 2004
Posts: 3



(Msg. 7) Posted: Fri Oct 01, 2004 11:25 am
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

If they are within the same directory, you'd have to type full path:

./httpd
./apachectl

instead of just typing

httpd
apachectl

This is Linux root security Wink

Andreas.

"Richard Williamson" <richard.williamson1.RemoveThis@ntlworld.com> schrieb im
Newsbeitrag news:62fa2974.0409302150.781c14e7@posting.google.com...
 > Thanks for the reply, I'm just off to try all that. However, I know
 > where the binaries are and they won't run even when I'm in the same
 > directory Sad
 >
 > DrTebi <DrTebi.RemoveThis@yahoo.com> wrote in message
 > news:<pan.2004.09.30.22.55.36.721000.RemoveThis@yahoo.com>...
  >> On Thu, 30 Sep 2004 15:44:08 -0700, Richard Williamson wrote:
  >>
   >> > I've just upgraded to 2.0.52, but now find that amongst other things,
   >> > I can't run httpd or apachectl - I just get "command not found".
   >> >
   >> > Heeeeeeelp
  >>
  >> Try this, update your locate database first:
  >> updatedb
  >> then do
  >> locate apachectl
  >>
  >> you will find it most likely (if you're on Linux) in one of these:
  >> /usr/local/apache/sbin
  >> /usr/apache/sbin
  >>
  >> Then just try to run the command with it's full path:
  >> /usr/local/apache/sbin/apachectl start
  >>
  >> You can also asign an alias for it:
  >> alias apachectl="/usr/local/apache/sbin/apachectl"
  >>
  >> Or, even better, add it to you .bashrc file:
  >> echo alias apachectl="/usr/local/apache/sbin/apachectl" > ~/.bashrc
  >>
  >> On another note, some systems (like mine, Gentoo) add a script into
  >> /etc/init.d
  >> Check there if you have e.g. a apache2 script there, try to run it...
  >>
  >> Good luck,
  >> DrTebi<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 8) Posted: Fri Oct 01, 2004 12:15 pm
Post subject: Re: httpd and apachectl won't run [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Richard Williamson" <richard.williamson1.RemoveThis@ntlworld.com> schreef in bericht
news:62fa2974.0409302305.6c3ac9f@posting.google.com...
 > "HansH" <hans.RemoveThis@niet.op.het.net> wrote in message
news:<cjiagp$guc$1@news.cistron.nl>...
  > > "Richard Williamson" <richard.williamson1.RemoveThis@ntlworld.com> schreef in
bericht
  > > news:62fa2974.0409301444.79c3a6a5@posting.google.com...
   > > > I've just upgraded to 2.0.52, but now find that amongst other things,
   > > > I can't run httpd or apachectl - I just get "command not found".
   > > > Heeeeeeelp
  > > Updated from 1.x??
  > > Try apache2 and apache2ctl.
 > I upgraded to 2.0.52. However, it's still apachectl, not apache2ctl.
Should have made a note that names may very per distribution:
eg apache2ctl is used at Debian-linux.

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd and apachectl won't run 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]