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.
- 08-03-2004 #1Just 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.
- 08-03-2004 #2Linux 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.
- 08-03-2004 #3Just 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.
- 08-03-2004 #4Linux 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)
- 08-03-2004 #5Just 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
- 08-03-2004 #6Linux 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.
- 08-03-2004 #7Just Joined!
- Join Date
- Jul 2004
- Posts
- 22
I can't see it!
- 08-03-2004 #8
- 08-03-2004 #9Linux 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
- 08-03-2004 #10Linux Engineer
- Join Date
- Jul 2003
- Location
- Farnborough, UK
- Posts
- 1,305
Originally Posted by jasonlambert
My respect for you has just increased


Reply With Quote
