You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dan Poirier <po...@pobox.com> on 2010/05/03 21:11:33 UTC

[users@httpd] Re: Virtual Hosts Problem - option '-S' to verify yourvirtual host configuration

On 2010-05-03 at 15:07, "Wang, Mary Y" <ma...@boeing.com> wrote:

> #/etc/init.d/httpd -S
> Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
>
> It returned that usage comment.  Am I missing something here?

/etc/init.d/httpd is not the apache web server, it's some startup script
provided by your distribution.  You probably want to find and run
"apachectl".


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Virtual Hosts Problem - option '-S' to verify yourvirtual host configuration

Posted by Sakthi Esakiappan <sa...@mercuryminds.com>.
Hello,

/etc/init.d/httpd is the startup/stop script for http deamon. It can be used
to verify the configuration files.

Configuration files can be tested through the following
/usr/sbin/httpd -S
/usr/sbin/apachectl -S

These 2 are the binaries of the web server. I personally recommend you to
use apachectl since it has more options that httpd. Try man apachectl for
more information.

On 4 May 2010 01:03, Frank Gingras <fr...@gmail.com> wrote:

> This looks debian-ish. Run apache2ctl -S instead.
>
> Frank.
>
>
> On 05/03/2010 03:11 PM, Dan Poirier wrote:
>
>> On 2010-05-03 at 15:07, "Wang, Mary Y"<ma...@boeing.com>  wrote:
>>
>>  #/etc/init.d/httpd -S
>>> Usage: httpd
>>> {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
>>>
>>> It returned that usage comment.  Am I missing something here?
>>>
>>
>> /etc/init.d/httpd is not the apache web server, it's some startup script
>> provided by your distribution.  You probably want to find and run
>> "apachectl".
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See<URL:http://httpd.apache.org/userslist.html>  for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
With Regards,
Sakthi Esakiappan.M
Server Administrator

MercuryMinds Technologies Pvt Ltd
www.mercuryminds.com "An E-Commerce mentor"
+91 44 45588587
sakthi.esakiappan@mercuryminds.com
www.mercuryminds.com

Disclaimer: This message is intended only for the use of the individual or
entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law. If
you have received this message in error, you are hereby notified that we do
not consent to any reading, dissemination, distribution or copying of this
message. If you have received this communication in error, please notify the
sender immediately and destroy the transmitted information.

Re: [users@httpd] Re: Virtual Hosts Problem - option '-S' to verify yourvirtual host configuration

Posted by Frank Gingras <fr...@gmail.com>.
This looks debian-ish. Run apache2ctl -S instead.

Frank.

On 05/03/2010 03:11 PM, Dan Poirier wrote:
> On 2010-05-03 at 15:07, "Wang, Mary Y"<ma...@boeing.com>  wrote:
>
>> #/etc/init.d/httpd -S
>> Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
>>
>> It returned that usage comment.  Am I missing something here?
>
> /etc/init.d/httpd is not the apache web server, it's some startup script
> provided by your distribution.  You probably want to find and run
> "apachectl".
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See<URL:http://httpd.apache.org/userslist.html>  for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org