DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2008
Rhadamanthos Rhadamanthos is offline
New User
 
Join Date: May 2008
Posts: 3
Default FreeBSD 6.2 w/HTTPD2.2.8

So although I'm fairly a newb at this I do know a bit of how to get around. I've been able to get FreeBSD 6.2 installed. I've been able to get SSH working with a sysadmin account for remote access. I've have downloaded two versions of Apache, 1.3, and 2.2. I would like to just use 2.2 which I think I think I have installed. One thing I'm looking for is how to edit the /etc/rc.conf file to allow apache/httpd to startup. If i go to /usr/local i have an -apache2- folder and an -httpd-2.2.8- folder. WHich i think both came from the HTTPD-2.2.8.tar.gz install. I can manually start up httpd if i go into the /usr/local/httpd-2.2.8/ directory. Is there a way i can find what ports are installed, and what name they reference in rc.conf? For example when i downloaded Apache1.3 it said to use apachect1 start, but now they say use apache2_enable="YES".
Reply With Quote
  #2   (View Single Post)  
Old 17th May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Quote:
Originally Posted by Rhadamanthos
I've have downloaded two versions of Apache, 1.3, and 2.2. I would like to just use 2.2 which I think I think I have installed.
Let's back up a moment -- I would strongly suggest that you install apache web server from ports.

Please read Chapter 4 of the FreeBSD handbook.
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 19th May 2008
Rhadamanthos Rhadamanthos is offline
New User
 
Join Date: May 2008
Posts: 3
Default ....not really the right answer but ok

So I've typed in 'find / -name apache' and nothing comes back. next please.

can i just download the newest version and place it in the /usr/ports directory? cause im going to need some dependancies like LIBXML also and PERL/PHP
Reply With Quote
  #4   (View Single Post)  
Old 19th May 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Installing Apache from ports will install you a startup script in /usr/local/etc/rc.d/. Within this startup script you will find the values you can put into your /etc/rc.conf to start/configure Apache at boot.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #5   (View Single Post)  
Old 20th May 2008
Rhadamanthos Rhadamanthos is offline
New User
 
Join Date: May 2008
Posts: 3
Default

Quote:
Originally Posted by stukov View Post
Installing Apache from ports will install you a startup script in /usr/local/etc/rc.d/. Within this startup script you will find the values you can put into your /etc/rc.conf to start/configure Apache at boot.
This is exactly what i was lookin for. Except I made a seperate /etc partition there doesnt seem to be an -etc folder- under the /usr/local/

However it looks like even though i tried to install all ports, they didnt make it over. I have downloaded the HTTPD2.2.8. directly from Apache.org and have tried extracting that into the /usr/ports/lang dir.

So here is my next newb Q: since sysinstall doesnt seem to want to install apache right, is the correct method:
chdir into /usr/ports/lang/httpd-2.2.8/;
./configure;
make;
make install clean

then this should install and configure the apache and httpd daemons for use, once i find the appropriate daemon starters under /etc/rc.d -to add-> to the rc.conf
Reply With Quote
  #6   (View Single Post)  
Old 4th June 2008
marco64 marco64 is offline
Real Name: Marco
Port Guard
 
Join Date: May 2008
Location: Italy
Posts: 15
Default

as suggested above ... install from ports. As root run:

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

edit /usr/local/etc/apache22/httpd.conf file:

ServerAdmin webmaster@your_domain.it
ServerName your_domain.it:80

edit /usr/local/etc/apache22/extra/httpd-default.conf file:

ServerTokens Prod
ServerSignature Off
HostnameLookups Off

echo 'apache22_enable="YES"' >> /etc/rc.conf

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

Test visiting "http://your_domain.it/”
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick