FreeBSD platform installation Configuration Web server

Source: Internet
Author: User

Note: It is recommended to turn off squid before doing this, because the cache of squid in the home update test will make the updated homepage not reflected in time.

In order not to use squid, in addition to turn off squid, also delete ipfw transparent proxy port forwarding statements:

# CD/USR/LOCAL/ETC/RC.D

#./squid.sh Stop

# MV Squid.sh Squid.sh.bak

# IPFW del fwd 127.0.0.1,3128 TCP from 192.168.0.0/24 to any 80

This section of this Web server becomes:

Apache 1.3.27

Modssl

Mod_php4

Mod_gzip

mod_fastcgi

Mod_perl

mysql3.23

In order to simplify the installation process and play the advantages of FreeBSD installation software, the following sections of this article will use ports installation. Ports makes it easy to install a variety of software under FreeBSD.

First install ports: (If the/usr/ports directory is already installed)

#/stand/sysinstall

The selected configure-distributions-ports,ports will be installed in the/usr/ports directory.

Install apache1.3.27 + MODSSL below:

# Cd/usr/ports/www/apache13-modssl

# make Install

The installation package is automatically downloaded and installed.

After installation, the system will automatically generate the startup script apache.sh, in the/USR/LOCAL/ETC/RC.D directory. Can be run by running

Apache.sh start|stop to start or stop Apache.

Install mysql3.23:

# Cd/usr/ports/databases/mysql323-server

# make Install

Generate startup scripts after installation/usr/local/etc/rc.d/mysql-server.sh

Install the Apache module MOD_PHP4:

# CD/USR/PORTS/WWW/MOD_PHP4

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.