How to start, stop, restart Apache Server on FreeBSD

How to start, stop, restart Apache Server on FreeBSD

To start Apache on a FreeBSD system, you can use the following command:

refer‮ual:ot ‬tturi.com
service apache24 start

To stop Apache, you can use the following command:

service apache24 stop

To restart Apache, you can use the following command:

service apache24 restart

You may need to use sudo to run these commands if you do not have sufficient privileges.

Alternatively, you can use the /usr/local/etc/rc.d/apache24 script to start, stop, and restart Apache. For example:

/usr/local/etc/rc.d/apache24 start
/usr/local/etc/rc.d/apache24 stop
/usr/local/etc/rc.d/apache24 restart

Again, you may need to use sudo to run these commands if you do not have sufficient privileges.

Created Time:2017-10-29 22:08:38  Author:lautturi