/usr/local/rc.d/apache22 start doesn't start Apache

Manolis Kiagias sonicy at otenet.gr
Fri Dec 14 14:18:05 PST 2007



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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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)


More information about the freebsd-questions mailing list