apache start

hirohitosan

Well-Known Member

Reaction score: 3
Messages: 279

Hi there. I installed Apache on my FreeBSD but I don't know how to enable it.

How can I start at boot apache?

Thanks
 

bsddaemon

Active Member

Reaction score: 16
Messages: 101

hirohitosan said:
Hi there. I installed Apache on my FreeBSD but I don't know how to enable it.

How can I start at boot apache?

Thanks
Please take a look at the startup file for apache, by default, its located in:

/usr/local/etc/rc.d

The startup file will give you a hint what you should put in the rc.conf for starting up apache at boot time. E.g. for apache 1.3

apache.sh
apache_enable=
apache_flags="-DSSL"
The 2nd one is only used in the rc.conf if you need ssl support.
 
OP
hirohitosan

hirohitosan

Well-Known Member

Reaction score: 3
Messages: 279

Thanx guys

I started apache
# /usr/local/sbin/apachectl start

and I add in
/etc/rc.conf

apache22_enable="YES"

an it works :)
 
Top