Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
HI, Yet another question from a newbie! :S I've got apache ready and raring to go. Problem I'm having is that when I go to start the service ($apachectl start ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    22

    Apachectl - bash: start: command not found


    HI,

    Yet another question from a newbie! :S

    I've got apache ready and raring to go. Problem I'm having is that when I go to start the service ($apachectl start AND $/usr/local/apache2/bin/apachectl start) I get the following error:

    bash: start: command not found.

    Does anyone have any ideas?

    Neil.

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Are you sure its saying "start" not found, and not "apachectrl" not found?

    if you installed apache from RPM then the apachectrl script may be in /usr/sbin.

    You will of course need to be root to start apache.

  3. #3
    Just Joined!
    Join Date
    Jul 2004
    Posts
    22
    Yes, I've just tried again to confirm. The error message is

    bash: start: command not found.

    Apache is a pre compiled binary which was taken from http://apache.rmplc.co.uk/dist/httpd/binaries/linux

    the downloaded file is httpd-2.0.48-x86_64-unknown-linux-gnu.tar.gz

    I am logged on as root in Konsole and the directory the script is in is /usr/local/apache2/bin

    To confirm I listed the directory(ls) here and apachectl is in this directory. I also checked, to verify, that the script doesnt exist in /usr/sbin

    Neil.

  4. #4
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    mclemon, your first post has $apachectl

    If you were root then it would be #apachectl

    Also don't forget to switch to root with su -

    (Don't forget the dash at the end)
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  5. #5
    Just Joined!
    Join Date
    Jul 2004
    Posts
    22
    Hmm.

    Yes I'd already logged in under root on Konsole.

    Ok, I tried #apachectl start...it didn't error, but didnt do anything else...

    Should it say something like service started? Also, the webpage doesnt display, so one assumes it isnt working.

    Neil

  6. #6
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    apachectl start will only give output if there's an error. A successful start will give no info.

    Type ps aux and see if httpd is running. If it is then the command worked.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  7. #7
    Just Joined!
    Join Date
    Jul 2004
    Posts
    22
    I can't see it!

  8. #8
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    try this from scratch, uninstall apache, re-install it.type in apachectrl start, then the ps -aux and see if httpd is running. Post every error that you get each step of the way. (warnings too!)
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  9. #9
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Ive seen the problem!

    When you type in the command, DONT type in the "$" or the "#" before it

    Jason

  10. #10
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Quote Originally Posted by jasonlambert
    Ive seen the problem!

    When you type in the command, DONT type in the "$" or the "#" before it

    Jason

    My respect for you has just increased
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •