Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2007 00:18:01 +0200
From:      Manolis Kiagias <sonicy@otenet.gr>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /usr/local/rc.d/apache22 start doesn't start Apache
Message-ID:  <47630119.4080005@otenet.gr>
In-Reply-To: <1197669823.4762fdbfcb44d@webmail.rawbw.com>
References:  <1197669823.4762fdbfcb44d@webmail.rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Yuri wrote:
> I installed Apache port.
> But when I run "/usr/local/etc/rc.d/apache22 start" nothing happens.
> 'ps ax | grep httpd' returns nothing.
> So server wasn't started.
>
> Why nothing is printed and server not started with the first command?
> What is the right way to start the server?
>
> Thanks,
> Yuri
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>
>   
Edit /etc/rc.conf and add:

apache22_enable="YES"

then retry your command above.
It is nominal for every port that acts as a daemon to have a
corresponding portsomething_enable="YES"  variable.
If you really need to start it without registering the variable (e.g.
for testing purposes), try

/usr/local/etc/rc.d/apache22 onestart


in this case however, it will not restart automatically after system reboot.

See also:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html


(section 27.7.3)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47630119.4080005>