Install Apache on FreeBSD

The following details how to install the Apache webserver on FreeBSD.

  1. Install Apache HTTP Server 2.20 by using FreeBSD Ports Collection:cd /usr/ports/www/apache22
    make install clean
  2. A Apache HTTP Server script apache22.sh is located at /usr/local/etc/rc.d to provide Apache HTTP Server start and shutdown service. To enable Apache web server to automatically starts whenever after server reboots, issue the following command at CLI:echo ‘apache22_enable =”YES”‘ >> /etc/ rc.conf
  3. To start Apache HTTP web server immediately, use:/usr/local/sbin/apachectl start

    or

    /usr/local/etc/rc.d/apache22.sh start

  4. Apache installation finished.

Related Posts

Tags: , ,

Leave a Reply

You must be logged in to post a comment.