Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4
Installing 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
- Install Apache HTTP Server 2.20 by using FreeBSD Ports Collection:
cd /usr/ports/www/apache22
make install clean - 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
- To start Apache HTTP web server immediately, use:
/usr/local/sbin/apachectl start
or
/usr/local/etc/rc.d/apache22.sh start
- Apache installation finished.
Related Articles
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 2
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD
- FreeBSD Apache HTTP Accept Filter Error
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page
- Request URL /server-status or 404 Page Not Found Apache Error










































March 16th, 2009 18:26
thank you very much for the information….
December 27th, 2008 08:06
Hi, I would just like to post my experiences following this guide. All went fine following the steps on this page except when I tested apache by accessing it’s URL. I was having hostname or servname not set problems and I could not not get it to work changing the different settings and stuff. After searching through the net, I stumbled upon an article on turning off IPv6 support. Here’s what I did:
ipv6_enable=”NO” – Added this in rc.conf
#::1 localhost localhost.my.domain – I commented this line in my /etc/hosts.conf
I also came across accf problems. I did this:
root@freebsd:# kldload accf_http
root@freebsd:# vi /boot/loader.conf
Edited this line: accf_http_load=”YES”
This somehow got me over the hump. I hope this helps anyone out there who encounters the same problems as min.
Francis
November 25th, 2008 10:28
I usually have to (at least) set ServerName in /usr/local/etc/apache22/httpd.conf
September 8th, 2008 22:39
For PC-BSD (and possibly other FreeBSD distros), you may recieve a conflict with another package when running “make install clean”. Run this instead “make -i install clean” to get past this issue.
July 12th, 2008 02:41
[...] The apache22/mysql/php install guide on mydigitallife is excellent, but if you copy/paste the snippet (as shown in the instructions) it adds an extra [...]
May 22nd, 2008 16:23
ehhm and you dont config apache ??