FreeBSD Apacher Server installation

Post everything else here

Moderators: Website/Forum Admins, Other/Off Topic Moderators

robertsong
Posts: 1
Joined: Mon Jun 21, 2004 11:29 pm

FreeBSD Apacher Server installation

Postby robertsong » Mon Jun 21, 2004 11:34 pm

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?

Thanks,

Robert
User avatar
corrupt
Site Admin
Posts: 81
Joined: Wed Jul 02, 2003 1:08 pm
Location: Danville, KY
Contact:

Postby corrupt » Tue Jun 22, 2004 3:52 am

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 http://www.freebsd.org/ports.[/code]
Josh Baird
[corrupt]@EFNet
O: irc.choopa.net
User avatar
munky
Site Admin
Posts: 826
Joined: Wed Jul 02, 2003 4:54 pm
Location: Phoenix AZ
Contact:

Postby munky » Tue Jun 22, 2004 12:28 pm

if /usr/ports does not exist, download ftp://ftp.freebsd.org/pub/FreeBSD/ports ... rts.tar.gz to /usr, and extract
i personally prefer apache 1.3, but it's up to you which you want to use
In God we trust,
Everyone else must have an X.509 certificate.
Shane
Posts: 8
Joined: Thu Jul 31, 2003 3:00 am
Location: Perth, Australia
Contact:

Postby Shane » Tue Jul 20, 2004 5:08 pm

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
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
alexus
Posts: 5
Joined: Tue Apr 19, 2005 11:00 pm
Location: Brooklyn, NY
Contact:

Postby alexus » Tue Apr 19, 2005 11:04 pm

why is that?

i use apache2 with php and few others just fine..
Shane
Posts: 8
Joined: Thu Jul 31, 2003 3:00 am
Location: Perth, Australia
Contact:

Postby Shane » Tue May 10, 2005 3:44 pm

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:

http://drbacchus.com/wordpress/index.php?p=844
User avatar
HM2K
Posts: 209
Joined: Thu Jul 24, 2003 5:34 pm
Location: UK
Contact:

Postby HM2K » Thu May 19, 2005 7:13 pm

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.

Who is online

Users browsing this forum: No registered users and 4 guests