Apachectl Command Not Found Error
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business
Error Invoking Apachectl Start Command
Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users apachectl command not found mac Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes
Bash Apachectl Command Not Found
a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top What does “apache2ctl:: command not found” mean if Apache IS installed linux apachectl and running? up vote 0 down vote favorite Trying to run the command "apache2ctl restart" and just got this message "apache2ctl:: command not found" -- thing is, Apache IS installed, running, and I'm actively doing development on the server right now... any ideas? CONTEXT: sudo access on CentOS-5.5 on VM UPDATE: Good news, restarted Apache, bad news 500 error, still it's progress... :-) [username@VMname /]$ sudo /etc/init.d/httpd restart [username@VMname /]$ sudo /etc/init.d/httpd restart Stopping httpd: [ httpd command not found OK ] Starting httpd: [ OK ] linux apache-2.2 web-server configuration share|improve this question edited Oct 15 '10 at 3:24 asked Oct 15 '10 at 2:21 blunders 40221126 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Looks like apache2ctl isn't in your path. Try this instead: $ sudo /usr/sbin/apache2ctl restart The above location reflects the location of apache2ctl in Ubuntu. I'm not sure where the default location is on CentOS. If the above command doesn't work, you can find the location by running the following as root: $ which apache2ctl share|improve this answer answered Oct 15 '10 at 2:26 EEAA♦ 84.7k12104181 @ErikA: Thanks! So, I did a find as sudo of the whole computer for a apache2ctl, and nothing. There is a apachectl, but that's not for Apache2 I don't believe (info.php is reporting the system as Apache2); "which apache2ctl", didn't work either, but appears to have confirmed it check in the bin directories; sbin was not listed, but that's where I found apachectl. Really have no idea. Are there any httpd conf that would point to it, guessing not but have no idea at this point. "sudo /usr/sbin/apachectl restart echo $?" did appear to execute and return what appears to be a httpd help page. –blunders Oct 15 '10 at 3:10 If all you're tryin
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software Apache2: apachectl command not found User Name Remember Me? Password Linux - Software This forum is for Software issues. Having a
Install Apachectl
problem installing a new program? Want to know which application is best for the job? Post apachect1 command not found mac your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest.
Install Apache2ctl
By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! http://serverfault.com/questions/191180/what-does-apache2ctl-command-not-found-mean-if-apache-is-installed-and-runni Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux http://www.linuxquestions.org/questions/linux-software-2/apache2-apachectl-command-not-found-277668/ - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 01-14-2005, 07:06 AM #1 hektor LQ Newbie Registered: Dec 2004 Location: Greeley, CO, USA Distribution: DebianEdu/Skolelinux 2.0r0 i386 Posts: 9 Rep: Apache2: apachectl command not found I am running Debian Linux 3.1, Apache 2.0.52, and Webmin 1.170 When attempting to start/restart/stop my Apache webserver as root using apachectl or httpd (eg. apachectl start or httpd start) I get: sh: line 1: apachectl: command not found or sh: line 1: httpd: command not found I receive these errors even if I am in /usr/local/apache2/bin and can see these files in an ls. If, however, I use ./apachectl start or ./httpd start, the scripts run successfully.
Today's Posts Advanced Search Find the answer to your Linux question: Entire Site Articles Downloads Forums Linux Hosting Forum GNU Linux Zone Newbie Apachectl - bash: start: command not found If this is your first visit, be sure to check out http://www.linuxforums.org/forum/newbie/11655-apachectl-bash-start-command-not-found.html the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. ** If you are logged in, most ads will not be displayed. ** Linuxforums now supports the Tapatalk app for your mobile device. Page 1 of 2 1 2 Last Jump to page: Results 1 to 10 of 20 command not Thread: Apachectl - bash: start: command not found Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Enjoy an ad free experience by logging in. Not a member yet? Register. 08-03-2004 #1 mcslemon View Profile View Forum Posts Private Message View Articles Just Joined! Join Date Jul 2004 Posts 22 Apachectl - bash: start: command not found HI, Yet another question from a newbie! :S command not found 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. Reply With Quote 08-03-2004 #2 jasonlambert View Profile View Forum Posts Private Message View Articles 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. Reply With Quote 08-03-2004 #3 mcslemon View Profile View Forum Posts Private Message View Articles 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. Reply With Quote $spacer_open $spacer_close 08-03-2004 #4 Chris H View Profile View Forum Posts Private Message View Articles Linux Engineer Join Date Jul 2003 Location Farnborough, UK Posts 1,305 mclemon, your fi