Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. 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 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:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Apache2: apachectl command not found I am running Debian Linux 3. View Public Profile. View Review Entries. Find More Posts by hektor. View LQ Wiki Contributions. Find More Posts by druuna. Posting Rules. Similar Threads. Starting Apache2 using Service Command. Main Menu. Login Register. If you'd like to contribute content, let us know.
The systemctl status sub-command, as the name states is used to view the status of a service, you can use it for the above purpose like so:. If you are primarily using a terminal, then you also need a command line web browser such as lynx or links. Alternatively, use the URL below to view the Apache web server status information from a graphical web browser:. The sample output below shows that apache2 service has been running for 4 hours, 10 minutes and 28 seconds only consider the one started by root.
If you have any questions or thoughts to share, do that via the comment section below. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! It looks like apachectl is not in your path.
Add a comment. Active Oldest Votes. Resorath Resorath 1, 1 1 gold badge 12 12 silver badges 30 30 bronze badges. Jayden Lawson Jayden Lawson 2, 2 2 gold badges 20 20 silver badges 23 23 bronze badges. Mithrandir Mithrandir First kill all httpd service using After start apache sudo service httpd start — diegohsi. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント