Installation configuration for Freebsd 7.0+APACHE2.2+MYSQL5+PHP5

Source: Internet
Author: User
Tags filter fully qualified domain name linux

Recently installed a Freebsd7.0, not very useful. Previously used a bit of Linux and Solaris, yesterday spent a day to install the software, a day of operation and experience, perhaps for the BSD like me to a new role.

I used to install the above software in Linux one at a time, with the Apache and MySQL installed by Pkgadd on Solaris, and then manually compiling the installed PHP.

began to search the Internet first some information on the configuration of this, since only recently played BSD, ports installation software is not familiar with, and my machine can only be used in the intranet, not connected to the extranet, perhaps the installation of these software in the CD (I installed the system after the CD-ROM, too lazy), To synthesize the above reasons I decided to download the software source package for the next manual installation.

I. Installation of apache2.2.8

First go to http://www.apache.org website download apache2.2.8 source code Package

Decompression

#tar ZXVF httpd-2.2.8.tar.gz

Get httpd-2.2.8 Folder

#cd httpd-2.2.8

Configuration

#./configure--prefix=/usr/local/apache--enable-so--enable-module=rewrite

Compile

#make

Installation

#make Install

Installation Complete

Test the installation effect

#cd/usr/local/apache

#cd bin

#./apachectl Start

Httpd:apr_sockaddr_info_get () failed for

Httpd:could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Thu Apr 03 09:37:41 2008] [Warn] (2) No such file or directory:failed to enable the ' Httpready ' Accept Filter

This prompt appears

#vi/usr/local/apache/conf/httpd.conf

Modify Severname one item to resolve (1) Error prompt

The reason for (2) is that the FreeBSD system also provides HTTP filter, which automatically filters out incomplete HTTP requests.

Workaround:

Kldload accf_http

Modify the/boot/defaults/loader.conf to start the Auto load module the next time

Accf_http_load= "YES"

In the browser is input Http://serverip

"It works!" indicates the Apache installation was successful

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.