Page 1 of 1

FreeBSD Apacher Server installation

Posted: Mon Jun 21, 2004 11:34 pm
by robertsong
Hi all,

I am a new comer using FreeBSD.

Having installed the freeBSD 5.2.1(minimal installation), how to install and configurate the Apache server? Do i need to download it from Apache website or it alreadly included in BSD installtion CDs?



Posted: Tue Jun 22, 2004 3:52 am
by corrupt
Though this is not the correct place to ask such a question, here is the answer. The easiest way for you to install Apache is using the ports collection that is included with your FreeBSD distribution.

Code: Select all

cd /usr/ports/www
cd apache2 (for Apache 2.0)
make install clean
For more information on the ports collection visit[/code]

Posted: Tue Jun 22, 2004 12:28 pm
by munky
if /usr/ports does not exist, download ... rts.tar.gz to /usr, and extract
i personally prefer apache 1.3, but it's up to you which you want to use

Posted: Tue Jul 20, 2004 5:08 pm
by Shane
If you'll be using PHP and apache (a popular combo), it is preferable to use apache 1.3

I usually install apache-modssl:

Code: Select all

cd /usr/ports/www/apache13-modssl
make certificate
Follow the prompts to create the certificate.

To remove the pass phrase from the RSA key so that we don't need to type
in the pass phrase everytime we reboot the server (handy if you don't always have physical access to the box):

Code: Select all

cd /usr/ports/www/apache13-modssl/work/apache_1.3.29/conf/ssl.key/
openssl rsa -in server.key -out server.pem
Go back to the port directory to continue the install:

Code: Select all

cd /usr/ports/www/apache13-modssl
make install clean

Posted: Tue Apr 19, 2005 11:04 pm
by alexus
why is that?

i use apache2 with php and few others just fine..

Posted: Tue May 10, 2005 3:44 pm
by Shane
Wow, that's resurecting an old thread :P

The php docs used to state that apache2 was not recommended for use with php. However, a quick google search gave me this thread from December 2004:

Posted: Thu May 19, 2005 7:13 pm
by HM2K
yeah, this is an old thread.

In addition to that, most places (I think even apache themselves) say that apache 2.0 is beta. I'd use apache 1.3, you can't really go wrong with that.