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