[ug-bosug] how to setup apache?

Isvaran Krishnamurthy Isvaran.Krishnamurthy at Sun.COM
Tue Apr 15 21:18:07 PDT 2008


Of course, apachectl stop would do fine.
As a rule of thumb, if you started with svcadm enable then stop with 
svcadm disable.
Not all application behave correctly with started and stop with non-SMF 
script and svcadm interchangeably.

IK.

sham pavman wrote:
> Hi,
>
> Thanks for your help,
> I just tried setting up apache 2.2 and the setup was flawless!! :-)
> I must say it was really easy!!
> When i tried accessing localhost from the browser it says "it works!!"
> When i did
> /usr/apache2/2.2/bin/apachectl configtest
> status OK
> And supposing that i want to disable it ,what do i do?
> should i just use svcadm and disable the service?
>
> PS:thanks a lot for you help :)
>
> Regards
> Shampavman
>
> On Tue, Apr 15, 2008 at 2:19 PM, Madhan Kumar Balasubramanian 
> <Madhan.Balasubramanian at sun.com 
> <mailto:Madhan.Balasubramanian at sun.com>> wrote:
>
>     Hi Sham,
>
>     Due to project webstack, apache can be out of the box config itself.
>
>     All you need to do is determine whether you want to run apache2.2 or
>     apache v1.0.
>
>     for apache2.2, execute /usr/apache2/2.2/bin/apachectl start and it
>     will
>     get started.
>
>     To change the bind address, edit the /etc/apache2/2.2/httpd.conf &
>     search for ServerName directive and give your hostname.
>
>     For apache1, you need to rename /etc/apache/httpd.conf-example to
>     /etc/apache/httpd.conf and start the apache server using
>     /usr/apache/bin/apachectl start.
>
>     Same procedure for changing servername directive.
>
>     To verify if the syntax of httpd.conf is correct, you can execute
>     configtest:
>
>     /usr/apache/bin/apachectl configtest
>
>     HTH!
>
>     Best Regards,
>     Madhan Kumar
>
>     sham pavman wrote:
>     > Hi all,
>     >
>     > We are trying to push solaris (79a) our way into the college
>     > computers....(Henceforth we will be using solaris itself).
>     > So for this reason currenly i have shown our HOD that all the progs,
>     > c/c++ ,perl,java, are running without any issues!!
>     >
>     > How ever it seems they want apache to be started up ,then we can
>     > finalize the deal.
>     > But i have Zero knowledge about configuring apache and would request
>     > your help!
>     >
>     > I did a "an apache"and am trying to figure out how to configure
>     it...
>     > Also i have come across the apache sever in the services
>     menu...(a bit
>     > hesitant in checkin it right away)
>     > So could i do that?
>     > Also if i just follow the man page will i be able to get apache
>     up and
>     > running!!
>     > I would like to have all the details that need to be known for
>     setting
>     > up apache!!
>     >
>     > PS: once apache is set up , we have solaris running running full
>     time
>     > in our college :-)
>     >
>     > Thanks
>     > Shampavman
>     >
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > ug-bosug mailing list
>     > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
>     <mailto:ug-bosug-unsubscribe at opensolaris.org>
>     > List-Owner: mailto:ug-bosug-owner at opensolaris.org
>     <mailto:ug-bosug-owner at opensolaris.org>
>     > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>     >
>     _______________________________________________
>     ug-bosug mailing list
>     List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
>     <mailto:ug-bosug-unsubscribe at opensolaris.org>
>     List-Owner: mailto:ug-bosug-owner at opensolaris.org
>     <mailto:ug-bosug-owner at opensolaris.org>
>     List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ug-bosug mailing list
> List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20080416/df6012d8/attachment.html 


More information about the ug-bosug mailing list