/usr/local/rc.d/apache22 start doesn't start Apache
Ivan "Rambius" Ivanov
rambiusparkisanius at gmail.com
Fri Dec 14 14:37:57 PST 2007
Hello Yuri,
On Dec 14, 2007 5:03 PM, Yuri <yuri at rawbw.com> 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?
I think you should add the line
apache2_enable="YES"
in your /etc/rc.conf. The starting script /usr/local/etc/rc.d/apache22
checks if the rcvar in rc.conf is set to YES and if so it starts the
server. You can see the exact name of the rc variable by executing
/usr/local/etc/rc.d/apache22 rcvar.
Regards
Rambius
--
Tangra Mega Rock: http://www.radiotangra.com
More information about the freebsd-questions
mailing list