You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Darryl Philip Baker <da...@northwestern.edu> on 2016/07/06 16:17:13 UTC

[users@httpd] Syntax checking an alternate configuration file

I want to syntax check an alternate configuration file in Apache 2.4 but I have hit a snag, "apachectl -t -f {full path name}" and "apachectl -f {full path name} configtest" give me an extra message which I don't need and don't want to see. I looked at the shell script that is apachectl and it looks like someone got lazy and if there is  a second argument it will always print the warning message. It may be a "feature" but it is a damn annoying one. Because I'm using RHEL I don't want to just comment out the test in apachectl but I'm not sure it is a reportable bug. Opinions?

[root@host build_conf]# apachectl -t -f /etc/httpd/build_conf/httpd.conf
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
httpd: "Here is the error message I am looking for"
[root@host build_conf]#

Darryl Baker
Sr. System Administrator
Distributed Application Platform Services (DAPS)
Project Management Office and Enabling Technologies (PMOET)
Northwestern | Information Technology (Formerly NUIT)
1800 Sherman Ave., Suite 600
Evanston, IL  60201-3715
(847) 467-6674
www.it.northwestern.edu


Re: [users@httpd] Syntax checking an alternate configuration file

Posted by Rich Bowen <rb...@rcbowen.com>.

On 07/06/2016 12:17 PM, Darryl Philip Baker wrote:
> I want to syntax check an alternate configuration file in Apache 2.4 but
> I have hit a snag, apachectl t f {full path name} and apachectl f
> {full path name} configtest give me an extra message which I dont need
> and dont want to see. I looked at the shell script that is apachectl
> and it looks like someone got lazy and if there is  a second argument it
> will always print the warning message. It may be a feature but it is a
> damn annoying one. Because Im using RHEL I dont want to just comment
> out the test in apachectl but Im not sure it is a reportable bug. Opinions?

You should report this bug in Red Hat Bugilla, as that's where it's
likely to get addressed. Or possibly in Fedora Bugzilla, since that's
the upstream for the packages that land in RHEL. Or perhaps ask Joe
Orton directly. :-)

--Rich

> 
>  
> 
> [root@host build_conf]# apachectl -t -f /etc/httpd/build_conf/httpd.conf
> 
> Passing arguments to httpd using apachectl is no longer supported.
> 
> You can only start/stop/restart httpd using this script.
> 
> If you want to pass extra arguments to httpd, edit the
> 
> /etc/sysconfig/httpd config file.
> 
> httpd: Here is the error message I am looking for
> 
> [root@host build_conf]#
> 
>  
> 
> *Darryl Baker*
> 
> *Sr. System Administrator***
> 
> Distributed Application Platform Services (DAPS)
> 
> Project Management Office and Enabling Technologies (PMOET)
> 
> *Northwestern*| Information Technology(Formerly NUIT)
> 
> 1800 Sherman Ave., Suite 600
> 
> Evanston, IL  60201-3715
> 
> *(847) 467-6674*
> 
> www.it.northwestern.edu
> 
>  
> 


-- 
Rich Bowen - rbowen@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Syntax checking an alternate configuration file

Posted by Yehuda Katz <ye...@ymkatz.net>.
That is a change RedHat made to the script - it isn't in the regular
distribution.
RedHat explicitly discourages using a non-default-location configuration
file.

Ref: https://access.redhat.com/discussions/1605003

- Y

On Wed, Jul 6, 2016 at 12:17 PM, Darryl Philip Baker <
darryl.baker@northwestern.edu> wrote:

> I want to syntax check an alternate configuration file in Apache 2.4 but I
> have hit a snag, “apachectl –t –f {full path name}” and “apachectl –f {full
> path name} configtest” give me an extra message which I don’t need and
> don’t want to see. I looked at the shell script that is apachectl and it
> looks like someone got lazy and if there is  a second argument it will
> always print the warning message. It may be a “feature” but it is a damn
> annoying one. Because I’m using RHEL I don’t want to just comment out the
> test in apachectl but I’m not sure it is a reportable bug. Opinions?
>
>
>
> [root@host build_conf]# apachectl -t -f /etc/httpd/build_conf/httpd.conf
>
> Passing arguments to httpd using apachectl is no longer supported.
>
> You can only start/stop/restart httpd using this script.
>
> If you want to pass extra arguments to httpd, edit the
>
> /etc/sysconfig/httpd config file.
>
> httpd: “Here is the error message I am looking for”
>
> [root@host build_conf]#
>
>
>
> *Darryl Baker*
>
> *Sr. System Administrator*
>
> Distributed Application Platform Services (DAPS)
>
> Project Management Office and Enabling Technologies (PMOET)
>
> *Northwestern* | Information Technology (Formerly NUIT)
>
> 1800 Sherman Ave., Suite 600
>
> Evanston, IL  60201-3715
>
> *(847) 467-6674 <%28847%29%20467-6674>*
>
> www.it.northwestern.edu
>
>
>