FreeBSD 6.2 Setting up Web Server Tutorial Diagram

Time:2019-8-5

1. Install prozilla (Port Download Acceleration)

Of course, the installation and download are accelerated first, otherwise the installation below will be slow.

Installation uses the following instructions:

  #cd /usr/ports/ftp/prozilla

  #make install clean

In the middle, there will be:

This is the example and HTML format of the manual page, will not be used later to study can be added, and then select OK

After installation, edit or create/etc/make.conf:

  #ee /etc/make.conf

Annotate the original part with, if it is minimal installation, there is no file for the time being. Add the following:

  FETCH_CMD= proz

  FETCH_BEFORE_ARGS= -r -k=4 –s

  FETCH_AFTER_ARGS=

  DISABLE_SIZE= yes

If prozilla occasionally fails to download properly, we can # drop the content we added under / etc / make. conf.

2. Install Apache 2.2.X

Use the following instructions:

  # cd /usr/ports/www/apache22

  #make install clean

The following figure appears:

Choose the installation module according to your own. If you don’t know which modules to choose, then by default, answer OK directly.

Default is enough, so I answer OK here.

Installation is completed in a few minutes, depending on the speed of your network, because he downloaded the installation package online, (3) Installing PHP 5.2.1

Execute the following instructions:

  # cd /usr/ports/lang/php5

  make install clean

In the pop-up prompt box, use the following configuration

4. Continue to install some commonly used PHP modules after completion.

Please execute the following instructions:

  # cd /usr/ports/lang/php5-extensions/

  make install clean

In the pop-up prompt box, use the following configuration

In addition to the preset items, we have to select the following common items: CTYPE, CURL, EXIF, FOLTER, FTP, GD, GETEXT, GMP, MBSTRING, MCRYPT, MYQL, PDF, IMAP, PCR E, SESSION, SOCKETS, ZLIB, ZIP. These projects are very common, especially SESSION.

Then there will be a menu, just keep the default:

Then this one should be selected:

After all, this is what foreigners “hope” Chinese people use.

After installation, run CP RP / usr / local / etc / php. ini – dist / usr / local / etc / php. ini PHP5

5. Install MySQL

Use the following instructions

  # cd /usr/ports/databases/mysql50-server

  # make install clean

  # cd /usr/ports/databases/php5-mysql

  # make install clean

6. Apache 2.2.X Basic Settings

After installing Apache, we have to make some basic settings before we can start using it. In this section, we first introduce the commonly used settings, so that you can quickly set up the web server, and more detailed Apache settings will be described in the next section. Apache’s profile is located at:

Previous page12 Read the full text on the next page