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

install apache freebsd - freebsd install apache - apache freebsd - install apache on freebsd - freebsd apache - freebsd apache install - freebsd apache22 - apache22 freebsd - how to install apache on freebsd - freebsd restart apache22 - installing apache on freebsd - how to install apache freebsd - freebsd apache installation - freebsd ports install apache - php + apache freebsd - integrate php with apache22 in freebsd - starting apache22 on freebsd - freebsd apache start - apache 2.2 freebsd - how to restart apache22 in bsd - restart apache freebsd - installare apache su freebsd - apache22 freebsd установка - freebsd apache installieren - install apache on freebsd use ports - how to install apache in freebsd - freebsd apache 2.2 - apache freebsd install - uninstall a apache on freebsd - Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - freebsd service restart apache - freebsd apache2 install - freebsd install apache22 - freebsd apache php - apache install freebsd - apache to freebsd - freebsd apache restart - instalar apache en freebsd - pfsense install apache - apache and freebsd - bsd install apache - freebsd apache22 allow - freebsd apache web server - instlal apache freebsd - установка апача freebsd - apache22 freebsd - apache22 freebsd php - apachi 2.2 mysql 6 - freebsd installl apache2 - hot to make apache22 start at boot on FreeBSD -