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

  1. Install Apache HTTP Server 2.20 by using FreeBSD Ports Collection:

    cd /usr/ports/www/apache22
    make install clean

  2. 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

  3. To start Apache HTTP web server immediately, use:

    /usr/local/sbin/apachectl start

    or

    /usr/local/etc/rc.d/apache22.sh start

  4. Apache installation finished.

6 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4”

  1. tito
    March 16th, 2009 18:26
    6

    thank you very much for the information….

  2. Francis
    December 27th, 2008 08:06
    5

    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

  3. fred
    November 25th, 2008 10:28
    4

    I usually have to (at least) set ServerName in /usr/local/etc/apache22/httpd.conf

  4. dreaken
    September 8th, 2008 22:39
    3

    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.

  5. Aaron Martinez » Blog Archive » “apache22_enable: not found” fix
    July 12th, 2008 02:41
    2

    [...] 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 [...]

  6. Nisse
    May 22nd, 2008 16:23
    1

    ehhm and you dont config apache ??

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

apache freebsd - freebsd or apache install - how to install apache22 on freebsd - openbsd apache2 mysql php - apache22 freebsd performance make - can you instal apache on bsd - howto install apache in freebsd - dreaken übersetzung - freebsd install apache - install apache freebsd - install+apache+ports+freeBSD -