Click to See Complete Forum and Search --> : Apache on freeBSD
r3b007
07-24-2003, 03:21 PM
Im going to install Apache on an internal BSD box but i have no internet connection on that box and ive tried mounting the cdrom drive mount /cdrom then cd'ing to the apache2 dir and then typing make but it keeps trying to fetch the tarball from an ftp server and this failing.
Am i doing something wrong here?
If not would it be possible to download the tarball to another box and rcp <filename> to the BSD box then install like tar xvf <filename>?
All help appreciated.
z0mbix
07-24-2003, 03:42 PM
You can just download the Apache source from apache.org then, scp/rcp it accross and compile it as you would on any other platform. If you want to use ports/packages, you can just install off the cdrom. The handbook is great:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
z0mbix
07-24-2003, 03:43 PM
You can get the apache packages from here:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/www
r3b007
07-25-2003, 04:08 AM
Thanks for the replies z0mbix.
I just wanted to make sure i could compile normally instead of using ports, bit of a BSD newbie.
I tried porting from the CD but instead of looking in /cdrom for Apache it was trying to fetch from the FTP server.
I tried mounting the cdrom like follows:
mount /cdrom and i also tried mount /dev/ccd0a /cdrom but none of those worked, is that the right way to mount?
Ive also had a good look at the handbook, very good read.
xulfralos
07-26-2003, 06:34 AM
Ummm, if you're going to scp (please don't use rcp, even if it is a private network, get in the habit of using scp) the files over, can't you just set up your box that's connected to the Internet as a router?
Also, what version of FreeBSD is this? Since there are two branches (4.x and 5.x), it's rather important that we know what we're dealing with here.
The easiest way to get apache2 installed is to allow your FreeBSD box to access the Internet, then simply type 'pkg_add -r apache2' as root and it will go get everything (including dependencies) and install them. Much quicker than using ports.
If you still want to do it manually off of the CD, use /stand/sysinstall and point it to the CD-ROM instead of specifying an FTP server and it should work. I never use this method, so I can't guarantee that it will work, especially if you need multiple CDs for dependencies.
r3b007
07-28-2003, 04:09 AM
Sorry for the delay in replying.
Ive setup an internet connection on the freeBSD 4.8 box and ive tried pkg_add -r apache2 but it gives me a message about not being able to find apache2?
Ive also tried make in the apache2 dir but it still isnt connecting to ANY FTP server, just says connection refused or something like that!
Any ideas guys?
xulfralos
07-29-2003, 09:43 AM
Verify that this box has the capability to reach the Internet manually, then try again.