Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4

»»»Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4

The tutorial describes how to install Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a reliable web server.

Part 4 – Installing Apache HTTPD Web Server 2.2

  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.

By |2016-12-16T11:21:00+00:00December 16th, 2016|Categories: Web Servers|Tags: , |7 Comments

About the Author:

LK is a technology writer for Tech Journey with background of system and network administrator. He has be documenting his experiences in digital and technology world for over 15 years.Connect with LK through Tech Journey on Facebook, Twitter or Google+.