User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 456,432 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,604 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 2359 | Replies: 2
Reply
Join Date: Mar 2005
Location: Nebraska, U.S.
Posts: 191
Reputation: stupidenator is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

apachectl Command Not Found

  #1  
Jun 7th, 2007
Hi everyone,

I am taking a web programming class and for one of the assignments, we have to install and configure an Apache web server on a certain port. I have downloaded apache, customized the httpd.conf file, and now I am ready to start the server. Per our class handouts, we should type

apachectl start

to start the server. When I type this in, I get

nick@blizzard:~/obagoshi/conf$ apachectl start
-bash: apachectl: command not found

Does anyone have any ideas as to why I can't use this? I had originally installed the web server, configured it a little, and then tried to start it and it did work, but I needed to recompile it with some extra modules, so I deleted the file I installed it to and then tried reinstalling it and since then, the apachectl command has not worked. Thanks for any help in advance.

Thanks,

Nick
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,534
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 17
Solved Threads: 283
Moderator
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: apachectl Command Not Found

  #2  
Jun 7th, 2007
What does find / -name 'apachectl' turn up?
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Join Date: Mar 2005
Location: Nebraska, U.S.
Posts: 191
Reputation: stupidenator is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Re: apachectl Command Not Found

  #3  
Jun 8th, 2007
I actually just found the problem. I am an idiot! I forgot that I had to call it like this:

ServerRoot/bin/apachectl start

I was in the wrong directory.

Thanks for the help!

--
Nick
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Linux Servers and Apache Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Linux Servers and Apache Forum

All times are GMT -4. The time now is 1:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC