LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-19-2015, 03:03 AM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Rep: Reputation: Disabled
Question regarding apachectl


https://httpd.apache.org/docs/2.4/pr...apachectl.html

It is in the newest version of Apache, installed by default, and it works as I tested it on my hosting plan.

What is the purpose of it and is it something outdated and a backward compatibility thing? I think that all the things that it does can be achieved with systemctl too?

It is a "front end to the Apache server". "It is designed to help the administrator control the functioning of the Apache httpd daemon."

How does it work? There is no good info about it on the Internet.

Last edited by AdultFoundry; 12-19-2015 at 03:35 AM.
 
Old 12-19-2015, 04:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The page you pointed at is literally the manual page for the command. So unless you clarify what you mean with "There is no good info about it on the Internet" that's just plain wrong. Also, unless / until you can 'sudo systemctl configtest httpd.service;' 'sudo apachectl configtest;' still has its role to play.
 
Old 12-19-2015, 04:56 AM   #3
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Original Poster
Rep: Reputation: Disabled
I meant that I couldnt find info about why it is needed, but I guess the commands that you mentioned have its use. So, like 80% of what it does can be achieved with systemctl, and 20% is still useful, type of thing. So that 80% of what it does could be probably considered outdated, probably... I dont want to sound like I am too particular about things, but I am going over a book and some other materials, and I try to figure out all the smaller things like this (second one so far, there is not a lot of this) that I dont understand.

Last edited by AdultFoundry; 12-19-2015 at 05:18 AM.
 
Old 12-19-2015, 05:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Clear. Try to see it like this: 'systemctl' ships with systemd. That means it applies to Linux distribution versions that use systemd (so fore example Fedora-server, CentOS 7 but not CentOS 5 or 6). 'apachectl' OTOH is provided by the Apache foundation httpd package. It is a distro-agnostic command, and will work on any OS that exposes the command.
 
Old 12-19-2015, 11:23 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by AdultFoundry View Post
How does it work? There is no good info about it on the Internet.
It is just a shell script so you can peruse the source with "less" and even if you do not program still get something out of it. One of the reasons there is not much about it on the net is that it is pretty simple.

As unSpawn mentions, it's there for cross-platform compatibility. apachectl will be present on the Linuxes, the BSDs (even OS X), and Solaris. So if you use it, it will be the same more or less everywhere. While the disto you are actually using might have something that supercedes it, that will not be portable. But it's not a big deal either way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(apachectl vs httpd) mogman1 Linux - Server 4 12-11-2010 04:19 PM
Apache (apachectl) patoy Linux - Newbie 5 08-07-2008 08:34 PM
apachectl start error emsky Linux - Newbie 1 04-04-2004 12:16 AM
apachectl sopiaz57 Linux - Software 5 04-11-2003 06:11 PM
apachectl configtest ... blah punt Linux - Software 7 07-18-2001 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration